/* Judiciary Exam app layer (owner, 20 Nov 2026). Only active when the site runs as the installed app
   (html.is-app, set by /js/app.js), or for a preview with ?app=1. The normal website is unchanged. */
.apptop,.apptabs{display:none}
html.is-app .hdr,html.is-app .ftr,html.is-app .totop,html.is-app .skip,html.is-app .sub,html.is-app .welcome{display:none!important}
html.is-app body{padding-top:calc(56px + env(safe-area-inset-top));padding-bottom:calc(64px + env(safe-area-inset-bottom));background:#f6f6fb}
html.is-app .apptop{display:flex;position:fixed;top:0;left:0;right:0;z-index:80;height:calc(56px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 14px 0;align-items:center;gap:10px;background:#201453;color:#fff}
.apptop__back{display:none;background:none;border:0;color:#fff;font-size:28px;line-height:1;padding:0 4px 4px 0;cursor:pointer}
html.is-app.app-sub .apptop__back{display:block}
.apptop__logo{width:32px;height:32px;border-radius:50%;background:#fff}
html.is-app.app-sub .apptop__logo{display:none}
.apptop__t{flex:1;font:700 17px/1.2 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.apptop__me{display:flex;align-items:center;gap:6px;background:#00D7BB;color:#201453;border:0;border-radius:18px;padding:6px 12px;font:700 13px system-ui,Arial,sans-serif;max-width:40vw;cursor:pointer}
.apptop__me span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.is-app .apptabs{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:80;background:#fff;border-top:1px solid #e4e2ee;padding:6px 4px calc(8px + env(safe-area-inset-bottom))}
.apptabs a{flex:1;text-align:center;font:500 11px system-ui,-apple-system,Arial,sans-serif;color:#8a85a8;text-decoration:none;padding:2px 0}
.apptabs svg{display:block;margin:0 auto 2px;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.apptabs a.on{color:#201453;font-weight:700}
html.is-app .jump{top:calc(56px + env(safe-area-inset-top))!important}
html.is-app .sp section[id]{scroll-margin-top:calc(118px + env(safe-area-inset-top))}
@media (min-width:900px){html.is-app body{padding-bottom:0}html.is-app .apptabs{top:calc(56px + env(safe-area-inset-top));bottom:auto;justify-content:center;gap:28px;border:0;border-bottom:1px solid #e4e2ee}html.is-app .apptabs a{flex:0 0 auto;display:flex;gap:6px;align-items:center;font-size:14px}html.is-app .apptabs svg{margin:0;width:20px;height:20px}html.is-app body{padding-top:calc(102px + env(safe-area-inset-top))}html.is-app .jump{top:calc(102px + env(safe-area-inset-top))!important}}

/* App screens (/app/...) */
.ap{max-width:720px;margin:0 auto;padding:14px 14px 24px;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
.ap h1{font-size:22px;color:#201453;margin:4px 2px 2px}
.ap .apsub{color:#5b5287;font-size:13.5px;margin:0 2px 14px}
.ap .sh{display:flex;justify-content:space-between;align-items:baseline;font-weight:800;color:#201453;font-size:15px;margin:18px 2px 8px}
.ap .sh a{font-weight:600;font-size:13px;color:#5b5287}
.ap .card{display:block;background:#fff;border:1px solid #e4e2ee;border-radius:14px;padding:12px 14px;margin-bottom:10px;text-decoration:none;color:#1d1b2b}
.ap .card b{display:block;color:#201453;font-size:15px}
.ap .card small{color:#5b5287;font-size:12.5px}
.ap .feed{background:#201453;border-color:#201453}.ap .feed b{color:#fff}.ap .feed small{color:#00D7BB}
.ap .tag{display:inline-block;font:700 10.5px system-ui,Arial,sans-serif;background:#00D7BB;color:#201453;border-radius:10px;padding:1px 8px;margin-bottom:5px}
.ap .new{border-left:5px solid #00D7BB}
.ap .art{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid #e4e2ee;border-radius:14px;padding:9px;margin-bottom:9px;text-decoration:none}
.ap .art img,.ap .art .th{flex:0 0 64px;width:64px;height:64px;border-radius:10px;object-fit:cover;background:linear-gradient(135deg,#00D7BB,#201453)}
.ap .art b{display:block;color:#201453;font-size:14px;line-height:1.3}
.ap .art small{color:#5b5287;font-size:12px}
.ap .grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ap .tile{display:block;background:#fff;border:1px solid #e4e2ee;border-radius:14px;padding:12px;font-weight:700;color:#201453;font-size:14px;text-decoration:none}
.ap .tile span{display:block;font-weight:400;color:#5b5287;font-size:12px}
.ap .lst{background:#fff;border:1px solid #e4e2ee;border-radius:14px;overflow:hidden;margin-bottom:10px}
.ap .lst a,.ap .lst div{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border-top:1px solid #e4e2ee;color:#1d1b2b;text-decoration:none;font-size:14.5px}
.ap .lst>:first-child{border-top:0}
.ap .lst a::after{content:"›";color:#8a85a8;font-size:20px}
.ap .lst .mine{background:#d9fbf6;font-weight:700;color:#201453}
.ap .pickst{display:flex;gap:8px;align-items:center;margin:0 2px 10px}
.ap select{flex:1;font-size:15px;padding:9px;border:1px solid #c9c5dc;border-radius:10px;background:#fff}
.ap .btn{display:inline-block;background:#00D7BB;color:#201453;font-weight:800;border:0;border-radius:11px;padding:10px 16px;text-decoration:none;cursor:pointer;font-size:14.5px}
.ap .btn--line{background:#fff;border:1px solid #201453}
.ap .prof{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid #e4e2ee;border-radius:14px;padding:14px;margin-bottom:12px}
.ap .av{width:46px;height:46px;border-radius:50%;background:#00D7BB;color:#201453;display:grid;place-items:center;font-weight:800;font-size:19px}
.ap .install{display:none}
.apptop__me svg{width:18px;height:18px;flex:0 0 18px}
.apptop__me{flex:0 0 auto;min-width:84px;justify-content:center}
html .apptop .apptop__me{flex:0 0 auto;min-width:88px;width:auto;height:auto;justify-content:center}
html .apptop .apptop__me span{display:inline;overflow:visible;max-width:none;font-size:13px}
