:root{--ink:#26364a;--muted:#6b7a8c;--bg:#f5f3ef;--card:#fff;--accent:#e0852f;--accent-soft:#fbeedd;--navy:#2c3e50;--line:#e6e1d8}
*{box-sizing:border-box}
body{font-family:"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);margin:0;color:var(--ink);line-height:1.45}
.topnav{background:var(--navy);display:flex;flex-wrap:wrap;gap:4px;padding:0 12px}
.topnav a{color:#ecf0f1;text-decoration:none;padding:14px 16px;font-size:15px}
.topnav a:hover,.topnav a.active{background:#1f2d3a}
header.hero{background:linear-gradient(135deg,#2c3e50,#3d5670);color:#fff;padding:28px 20px;text-align:center}
header.hero h1{margin:0;font-size:26px}
header.hero p{margin:8px 0 0;color:#cfd8e0}
main{max-width:1000px;margin:28px auto;padding:0 20px}

.tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}
.tab{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--card);padding:9px 14px;border-radius:999px;cursor:pointer;font:inherit;font-size:14px;color:var(--ink);transition:.15s}
.tab:hover{border-color:var(--accent)}
.tab.active{background:var(--navy);border-color:var(--navy);color:#fff}
.tab .cnt{min-width:22px;padding:1px 7px;border-radius:999px;background:var(--accent-soft);color:#a65a14;font-size:12px;text-align:center}
.tab.active .cnt{background:var(--accent);color:#fff}
.tab.zero{opacity:.6}

.sec-head{display:flex;align-items:center;gap:12px;margin:0 0 16px}
.sec-head .ico{width:44px;height:44px;border-radius:12px;background:var(--accent-soft);display:grid;place-items:center;font-size:22px}
.sec-head h2{margin:0;font-size:20px}
.sec-head small{color:var(--muted)}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}
.card{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:20px;text-decoration:none;color:var(--ink);box-shadow:0 1px 3px rgba(40,30,10,.06);transition:transform .2s,box-shadow .2s,border-color .2s;border-top:4px solid var(--accent)}
.card:hover{transform:translateY(-4px);box-shadow:0 10px 24px rgba(40,30,10,.12);border-color:var(--accent)}
.card h3{margin:0 0 8px;font-size:17px;line-height:1.3}
.card p{margin:0 0 14px;font-size:14px;color:var(--muted);flex:1}
.card .foot{display:flex;align-items:center;justify-content:space-between;gap:8px}
.badge{display:inline-block;margin-right:6px;padding:2px 9px;border-radius:999px;background:#eef1f4;font-size:12px;color:#4a5b6d;font-style:normal}
.go{font-size:14px;font-weight:600;color:var(--accent);white-space:nowrap}
.card:hover .go{text-decoration:underline}
.empty{background:var(--card);border:1px dashed #cfc8ba;border-radius:14px;padding:28px;text-align:center;color:var(--muted)}
.empty b{display:block;font-size:30px;margin-bottom:6px}

iframe.applet{width:100%;height:calc(100vh - 170px);min-height:480px;border:1px solid var(--line);background:#fff;border-radius:14px}
.back{display:inline-block;margin-bottom:10px;color:var(--navy);text-decoration:none;font-weight:600}
.back:hover{color:var(--accent)}
main h2#title{margin:4px 0 14px;font-size:20px}

.embed .topnav,.embed header.hero{display:none}
.embed body{background:transparent}
.embed main{margin:0 auto;padding:0}
.embed iframe.applet{height:820px}
@media(max-width:600px){main{padding:0 12px}.embed iframe.applet{height:700px}}
.toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.toolbar .back{margin:0}
.actions{display:flex;flex-wrap:wrap;gap:8px}
.btn{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:999px;border:1px solid var(--accent);background:var(--accent);color:#fff;font:inherit;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer;transition:.15s}
.btn:hover{background:#c9731f;border-color:#c9731f}
.btn#fs{background:#fff;color:var(--accent)}
.btn#fs:hover{background:var(--accent-soft)}
main.wide{max-width:none;margin:16px auto;padding:0 16px}
main.wide iframe.applet{height:calc(100vh - 190px);min-height:560px}
.embed main.wide iframe.applet{height:820px}
.card .badges{margin:0 0 14px}
.card .foot{flex-wrap:wrap}
.alt{font-size:13px;color:var(--muted)}
.alt:hover{color:var(--accent)}
