:root{--navy:#06142d;--navy2:#0b2347;--line:#25456e;--blue:#2587ff;--white:#f7fbff;--muted:#9eb1c9;--card:#0b1d38}*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#07152d,#020812 75%);color:var(--white);font-family:Inter,Arial,sans-serif;min-height:100vh}header{height:76px;border-bottom:1px solid #17365e;background:#07142aee;backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:space-between;padding:0 5%;position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:14px}.brand img{width:46px;height:46px;object-fit:cover;border-radius:50%;border:1px solid #2e5480}.brand b{display:block;font-size:17px}.brand span{display:block;color:var(--muted);font-size:12px;margin-top:3px}.admin,.home,.btn,.actions button{background:#10284b;color:white;border:1px solid #2b4c75;border-radius:8px;padding:9px 13px;cursor:pointer}.admin:hover,.home:hover,.btn:hover{border-color:#4b83bd;background:#15345f}.hidden{display:none!important}main{width:min(1180px,92%);margin:0 auto;padding:58px 0 90px}.hero{text-align:center;margin-bottom:55px}.hero img{width:150px;height:150px;border-radius:50%;object-fit:cover;box-shadow:0 0 55px #2587ff25}.hero h1{font-size:clamp(34px,5vw,62px);margin:24px 0 8px}.hero p{color:var(--muted);font-size:18px}.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}.card{background:linear-gradient(135deg,#0d213f,#07152a);border:1px solid #1e3e65;border-radius:13px;padding:27px;cursor:pointer;min-height:180px;transition:.18s}.card:hover{transform:translateY(-3px);border-color:#3476b8;box-shadow:0 15px 35px #0008}.icon{font-size:34px}.card h2{font-size:21px;margin:16px 0 9px}.card p,.muted{color:var(--muted);line-height:1.55}.pageTitle{border-bottom:1px solid #21466f;padding-bottom:25px;margin-bottom:28px}.pageTitle h1{font-size:34px;margin:0 0 8px}.search{width:100%;padding:14px 16px;border-radius:9px;border:1px solid #244c76;background:#06152b;color:white;margin:5px 0 24px;font-size:15px}.section,.accordion{background:#091a33;border:1px solid #1d3b60;border-radius:10px;margin:13px 0;overflow:hidden}.section{padding:22px}.section h3{margin-top:0}.accordionHead{padding:18px 20px;display:flex;justify-content:space-between;cursor:pointer;font-weight:700}.accordionBody{padding:0 20px 20px;border-top:1px solid #193757}.tag{display:inline-block;padding:4px 8px;border-radius:5px;background:#17385e;color:#b9d9ff;font-size:12px;font-weight:700}.rule{padding:14px 0;border-bottom:1px solid #173454}.rule:last-child{border:0}.rule b{display:block;margin-bottom:6px}.steps{counter-reset:step;padding:0}.steps li{list-style:none;margin:12px 0;padding:15px 15px 15px 54px;background:#07162d;border:1px solid #193a61;border-radius:8px;position:relative}.steps li:before{counter-increment:step;content:counter(step);position:absolute;left:14px;top:13px;background:#1f69ad;width:27px;height:27px;border-radius:50%;display:grid;place-items:center;font-weight:700}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;padding:13px;border-bottom:1px solid #1b385d}.table th{color:#a8c7e9}.editbar{display:flex;gap:8px;margin-top:14px}.edit{outline:2px dashed #3778b9;outline-offset:4px}.modal{position:fixed;inset:0;background:#000b;display:grid;place-items:center;z-index:30}.modalbox{width:min(400px,90%);background:#0b1c36;border:1px solid #31547d;border-radius:12px;padding:24px}.modalbox input{width:100%;padding:12px;background:#061328;border:1px solid #31547d;border-radius:7px;color:white}.actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}.modalbox small{display:block;color:#8298b4;margin-top:14px}.note{border-left:3px solid #2587ff;padding:12px 15px;background:#0b2444;color:#c7dcf5;margin:15px 0}@media(max-width:700px){header{padding:0 3%}.brand span{display:none}.brand b{font-size:13px}.grid{grid-template-columns:1fr}main{padding-top:35px}.hero{margin-bottom:35px}.hero img{width:110px;height:110px}.card{min-height:145px}.table{font-size:13px}}
.codegrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.codebox{border:1px solid #34445e;border-radius:10px;padding:14px;display:flex;align-items:center;gap:12px;background:#111a2b}.state{min-width:92px;text-align:center;padding:8px 10px;border-radius:6px;font-weight:800;font-size:13px;color:#fff}.state.blue{background:#2868ed}.state.red{background:#ef2c32}.state.purple{background:#7c31e8}.lawrow{display:flex;gap:12px;align-items:center;background:#0d1420;border-left:3px solid #596779;border-radius:8px;padding:12px 14px;margin:8px 0}.lawrow strong{color:#ff9f00}.lawrow.power{border-left-color:#4da3ff}.lawrow.danger{border-left-color:#ff3038}.quote{background:#0a111e;border-left:4px solid #20c997;border-radius:7px;padding:20px 22px;margin:14px 0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;line-height:1.7}.quote.warn,.note.warn{border-left-color:#ffae00}.return{margin:24px 0 40px}h4{color:#55a2ff;font-size:1.15rem;margin-top:28px}.section li{margin:9px 0;line-height:1.55}@media(max-width:760px){.codegrid{grid-template-columns:1fr}.lawrow{align-items:flex-start;flex-wrap:wrap}.state{min-width:82px}}
.rule{display:grid;grid-template-columns:minmax(170px,260px) 1fr;gap:18px;align-items:start}.rule span{line-height:1.55}.atm{display:grid;gap:12px;margin:18px 0}.atm>div{padding:18px;border:1px solid #27456b;border-radius:10px;background:#0c1d33;display:grid;grid-template-columns:140px 1fr;gap:14px}.rankGroup{border-left:4px solid #3d7dd8;padding:10px 18px;margin:14px 0;background:#0c1d33;border-radius:0 10px 10px 0}.rankGroup h4{margin-top:0}.rankGroup p{line-height:1.9}.chips{display:flex;flex-wrap:wrap;gap:10px}.chips span,.powerTag{display:inline-block;padding:6px 10px;border-radius:999px;background:#173d6d;border:1px solid #2c609d;font-size:12px;font-weight:700}.lawrow{grid-template-columns:120px 1fr auto!important}.lawrow strong{font-weight:600}.emptyState{text-align:center;padding:35px;border:1px dashed #365a86;border-radius:12px;background:#0b1a2d}.intro{max-width:1000px;margin-left:auto;margin-right:auto}@media(max-width:700px){.rule,.atm>div{grid-template-columns:1fr}.lawrow{grid-template-columns:1fr!important}}
.editbar{position:relative;z-index:5;padding-top:14px;border-top:1px solid #173454}.edit [contenteditable="true"]{cursor:text}.edit [contenteditable="true"]:focus{outline:1px solid #4a91d8;background:#0d2442;border-radius:4px}.editbar,.editbar *{user-select:none}.editbar button{contenteditable:false!important}

.saveStatus{position:fixed;right:18px;bottom:18px;background:#12365f;border:1px solid #3476b8;color:#fff;padding:10px 14px;border-radius:9px;opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s;z-index:50}.saveStatus.show{opacity:1;transform:none}
