/* =============================================================================
   Módulos: espacio de trabajo (estilo ContainerWeb), misión gamificada,
   celebraciones, avisos en tiempo real y progreso del profesor.
   ============================================================================= */
body.is-wide .student.wide { max-width: none; padding: 0; }
body.is-wide .main.wide { padding: 0; }
body.is-wide .main.wide > .inner { max-width: none; }
body.is-wide .main.wide .flash, body.is-wide .student.wide .flash { margin: .6rem; }

/* ------------------------------------------------ espacio de trabajo (siempre oscuro) */
.ws { --ws-bg: #1A1B1F; --ws-panel: #202227; --ws-panel-2: #26292F; --ws-line: #30343C; --ws-text: #D9DCE1; --ws-muted: #8B9099;
  --ws-teal: #2FA4B9; --ws-node: #2A2D33; --ws-node-line: #3C4048;
  display: grid; grid-template-rows: 48px 1fr auto; height: calc(100vh - 57px); background: var(--ws-bg); color: var(--ws-text); font-size: 14px; }
.app .ws { height: 100vh; }
@media (max-width: 980px) { .app .ws { height: calc(100vh - 53px); } }
.ws-bar { display: flex; align-items: center; gap: .6rem; padding: 0 .7rem; background: var(--ws-panel); border-bottom: 1px solid var(--ws-line); min-width: 0; }
.ws-title { min-width: 0; line-height: 1.15; margin-right: auto; }
.ws-title b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-title small { color: var(--ws-muted); font-size: .76rem; }
.ws-tools { display: flex; gap: .45rem; overflow-x: auto; }
.ws-group { display: flex; gap: 2px; padding: 2px; background: var(--ws-bg); border: 1px solid var(--ws-line); border-radius: 9px; }
.ws-btn { display: grid; place-items: center; width: 32px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--ws-text); cursor: pointer; }
.ws-btn:hover { background: var(--ws-panel-2); color: #fff; text-decoration: none; }
.ws-btn.on { background: var(--ws-teal); color: #fff; }
.ws-btn .i { width: 17px; height: 17px; }
.ws-body { display: grid; grid-template-columns: 250px 1fr 330px; min-height: 0; }
.ws.no-left .ws-body { grid-template-columns: 0 1fr 330px; }
.ws.no-right .ws-body { grid-template-columns: 250px 1fr 0; }
.ws.no-left.no-right .ws-body { grid-template-columns: 0 1fr 0; }
.ws-left, .ws-right { background: var(--ws-panel); overflow: auto; min-width: 0; transition: opacity .15s; }
.ws-left { border-right: 1px solid var(--ws-line); padding: .7rem; }
.ws-right { border-left: 1px solid var(--ws-line); }
.ws.no-left .ws-left, .ws.no-right .ws-right { opacity: 0; pointer-events: none; padding: 0; border: 0; }
.ws-search { position: relative; margin-bottom: .6rem; }
.ws-search .i { position: absolute; left: .6rem; top: 9px; color: var(--ws-muted); width: 16px; height: 16px; }
.ws-search input { width: 100%; height: 34px !important; padding-left: 2rem !important; background: var(--ws-bg) !important; border: 1px solid var(--ws-line) !important;
  color: var(--ws-text) !important; border-radius: 8px !important; font-size: .85rem !important; }
.ex-node { display: flex; align-items: center; gap: .5rem; padding: .45rem .5rem; border-radius: 7px; cursor: pointer; margin-top: .2rem; }
.ex-node:hover, .ex-node.on { background: var(--ws-panel-2); }
.ex-node.on { box-shadow: inset 2px 0 var(--ws-teal); }
.ex-node b { flex: 1; font-weight: 600; }
.ex-node small { color: var(--ws-muted); font-family: var(--mono); font-size: .72rem; }
.ex-if { display: flex; align-items: center; gap: .4rem; padding: .22rem .5rem .22rem 1.6rem; color: var(--ws-muted); font-size: .8rem; cursor: pointer; border-radius: 6px; }
.ex-if:hover { background: var(--ws-panel-2); color: var(--ws-text); }
.ex-if .i { width: 13px; height: 13px; }
.ex-if code { background: none; color: var(--ws-text); padding: 0; }
.ex-if small { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st { font-size: .68rem; font-weight: 700; padding: .05rem .4rem; border-radius: 5px; text-transform: uppercase; }
.st.up { background: rgba(63,178,127,.18); color: #4FD195; }
.st.down { background: rgba(255,107,125,.15); color: #FF7B8B; }
.ws-hint { color: var(--ws-muted); font-size: .76rem; margin: .8rem .2rem; line-height: 1.45; }

/* Lienzo */
.ws-canvas { position: relative; overflow: hidden; min-width: 0; }
#ws-map { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; user-select: none; }
#ws-map.panning { cursor: grabbing; }
.ws-grid { fill: var(--ws-bg); }
#ws-map .dot { fill: #34373E; }
.lk-hit { stroke: transparent; stroke-width: 18; cursor: context-menu; }
.lk-line { stroke: #5E636C; stroke-width: 5; stroke-linecap: round; pointer-events: none; }
.lk:hover .lk-line { stroke: #8B9099; }
.lk-line.down { stroke: #B4434F; stroke-dasharray: 7 6; }
.lk-ep rect { fill: #24272C; stroke: #3C4048; }
.lk-ep text { fill: var(--ws-text); font: 600 12px var(--font); pointer-events: none; }
.nd { cursor: pointer; }
.nd-box { fill: var(--ws-node); stroke: var(--ws-node-line); stroke-width: 1.5; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); transition: stroke .12s; }
.nd:hover .nd-box { stroke: #6B717B; }
.nd.sel .nd-box { stroke: var(--ws-teal); stroke-width: 2.5; }
.nd-ic { fill: none; stroke: var(--ws-teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nd.off .nd-ic { stroke: #6B717B; }
.nd-name { fill: #EEF0F3; font: 700 15px var(--font); }
.nd-ip { fill: var(--ws-muted); font: 500 11px var(--mono); }
.nd-st circle { fill: #3FB27F; stroke: var(--ws-node); stroke-width: 3; }
.nd.off .nd-st circle { fill: #E5484D; }
.nd-st path { stroke: #fff; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nd-st rect { fill: #fff; }
.ws-zoom { position: absolute; right: .7rem; bottom: .6rem; color: var(--ws-muted); font: .75rem var(--mono); background: var(--ws-panel); padding: .15rem .45rem; border-radius: 6px; border: 1px solid var(--ws-line); }
.ws-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .3rem; color: var(--ws-muted); pointer-events: none; }
.ws-empty[hidden] { display: none; }
.ws-empty b { color: var(--ws-text); }
.ws-tip { position: absolute; z-index: 5; min-width: 200px; padding: .65rem .8rem; background: #26292F; border: 1px solid #3C4048; border-radius: 9px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45); pointer-events: none; font-size: .8rem; }
.ws-tip b { display: block; margin-bottom: .35rem; font-size: .9rem; }
.ws-tip dl { display: grid; grid-template-columns: auto 1fr; gap: .15rem .8rem; margin: 0; }
.ws-tip dt { color: var(--ws-muted); } .ws-tip dd { margin: 0; font-family: var(--mono); font-size: .76rem; word-break: break-all; }
.ws-menu { position: absolute; z-index: 10; min-width: 230px; overflow-y: auto; overscroll-behavior: contain; padding: .3rem; background: #26292F; border: 1px solid #3C4048; border-radius: 10px; box-shadow: 0 14px 34px rgba(0,0,0,.5); }
.ws-menu button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .48rem .6rem; border: 0; background: none; color: var(--ws-text); border-radius: 7px; cursor: pointer; font: 500 .86rem var(--font); text-align: left; }
.ws-menu button:hover { background: #30343C; color: #fff; }
.ws-menu button.danger { color: #FF8A96; }
.ws-menu button .i { width: 16px; height: 16px; color: var(--ws-muted); }
.ws-menu .ws-check { margin-left: auto; color: var(--ws-teal); font-weight: 700; }
.ws-menu hr { border: 0; border-top: 1px solid #3C4048; margin: .3rem 0; }
.ws-menu-h { padding: .35rem .6rem .25rem; font-size: .72rem; color: var(--ws-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }

/* Terminales */
.ws-dock { position: relative; height: 300px; background: #0D1117; border-top: 1px solid var(--ws-line); display: grid; grid-template-rows: 34px 1fr; }
.ws-dock[hidden] { display: none; }
.ws-dock-handle { position: absolute; top: -4px; left: 0; right: 0; height: 8px; cursor: ns-resize; z-index: 2; }
.ws-tabs { display: flex; align-items: stretch; gap: 2px; background: var(--ws-panel); border-bottom: 1px solid var(--ws-line); overflow-x: auto; }
.ws-tabs-title { display: flex; align-items: center; gap: .4rem; padding: 0 .8rem; color: var(--ws-muted); font-size: .78rem; font-weight: 600; }
.ws-tab { display: flex; align-items: center; gap: .4rem; padding: 0 .4rem 0 .75rem; color: var(--ws-muted); cursor: pointer; font: 600 .8rem var(--mono); border-top: 2px solid transparent; }
.ws-tab.on { background: #0D1117; color: #fff; border-top-color: var(--ws-teal); }
.ws-tab.dead span { text-decoration: line-through; opacity: .6; }
.ws-tab .i { width: 14px; height: 14px; }
.ws-tab button { border: 0; background: none; color: inherit; font-size: 1rem; cursor: pointer; padding: 0 .3rem; border-radius: 4px; }
.ws-tab button:hover { background: #30343C; }
.ws-terms { position: relative; min-height: 0; }
.ws-term { position: absolute; inset: 0; padding: .4rem .5rem; }
.ws-term[hidden] { display: none; }

/* Modal */
.ws-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0,0,0,.55); padding: 1rem; }
.ws-modal[hidden] { display: none; }
.ws-modal-box { width: min(760px, 100%); max-height: 80vh; display: flex; flex-direction: column; background: #202227; color: #D9DCE1; border: 1px solid #30343C; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.ws-modal-box header { display: flex; align-items: center; justify-content: space-between; padding: .7rem .9rem; border-bottom: 1px solid #30343C; }
.ws-modal-box .ws-btn { color: #D9DCE1; }
.ws-modal-body { padding: .9rem; overflow: auto; }
.ws-pre { margin: 0; background: #0D1117; color: #E6EDF3; padding: .9rem; border-radius: 9px; font: .8rem/1.5 var(--mono); white-space: pre-wrap; max-height: 60vh; overflow: auto; }
.ws-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.ws-table th { text-align: left; color: #8B9099; font-weight: 600; font-size: .72rem; text-transform: uppercase; padding: .4rem .5rem; border-bottom: 1px solid #30343C; }
.ws-table td { padding: .45rem .5rem; border-bottom: 1px solid #2A2D33; }
.ws-table code { background: #2A2D33; color: #D9DCE1; }
.ws-modal .err, .ws-modal .muted { color: #8B9099; }

/* -------------------------------------------------------------- misión */
.mission { padding: .9rem; }
.lvl { display: flex; gap: .85rem; align-items: center; padding: .9rem; border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 85%, #000), #3A0A16); color: #fff; box-shadow: 0 10px 24px -12px var(--brand); }
.lvl-badge { position: relative; width: 58px; height: 58px; flex: none; display: grid; place-items: center; }
.lvl-badge::before { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, #FFD86B, #F4A000); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.lvl-badge span { position: relative; font: 800 1.35rem var(--font); color: #5A3A00; }
.lvl-info { flex: 1; min-width: 0; line-height: 1.25; }
.lvl-info small { opacity: .85; font-size: .74rem; }
.lvl-info b { display: block; font-size: 1.05rem; margin: .1rem 0 .45rem; }
.xpbar { height: 9px; background: rgba(255,255,255,.18); border-radius: 99px; overflow: hidden; }
.xpbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #FFE08A, #FFB300); border-radius: 99px; transition: width 1.2s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 12px rgba(255,200,60,.7); }
.xp-num { display: block; margin-top: .35rem; }
.m-head { display: flex; align-items: center; justify-content: space-between; margin: 1.1rem 0 .5rem; }
.m-head b { display: block; } .m-head small { color: var(--ws-muted, var(--text-2)); font-size: .76rem; }
.m-btn { display: inline-flex; align-items: center; gap: .35rem; height: 30px; padding: 0 .75rem; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font: 600 .8rem var(--font); cursor: pointer; }
.m-btn:hover { filter: brightness(1.1); } .m-btn[disabled] { opacity: .6; cursor: wait; }
.m-btn.sm { height: 26px; padding: 0 .6rem; font-size: .76rem; }
.m-btn .i { width: 14px; height: 14px; }
.m-progress { height: 5px; background: #2A2D33; border-radius: 99px; overflow: hidden; margin-bottom: .6rem; }
.m-progress i { display: block; height: 100%; width: 0; background: #3FB27F; transition: width .9s ease; }
.m-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.m-item { display: flex; gap: .65rem; padding: .7rem; border-radius: 11px; background: var(--ws-panel-2, var(--surface-2)); border: 1px solid var(--ws-line, var(--line)); }
.m-item.superado { border-color: rgba(63,178,127,.45); background: linear-gradient(90deg, rgba(63,178,127,.12), transparent 70%); }
.m-item.fallido { border-color: rgba(229,72,77,.35); }
.m-num { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 .78rem var(--font); background: #30343C; color: #D9DCE1; }
.m-item.superado .m-num { background: #3FB27F; color: #fff; }
.m-num .i { width: 15px; height: 15px; stroke-width: 2.6; }
.m-body { flex: 1; min-width: 0; }
.m-body b { display: block; font-size: .88rem; }
.m-body p { margin: .2rem 0 0; color: var(--ws-muted, var(--text-2)); font-size: .8rem; }
.m-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .45rem; }
.pts { font: 700 .74rem var(--font); color: #FFC83D; }
.m-fail { font-size: .74rem; color: #FF8A96; }
.m-ok { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; color: #4FD195; font-weight: 600; }
.m-ok .i { width: 15px; height: 15px; }
.m-body details { margin-top: .4rem; font-size: .76rem; color: var(--ws-muted); }
.m-body pre { background: #0D1117; color: #E6EDF3; padding: .5rem; border-radius: 7px; white-space: pre-wrap; font: .72rem var(--mono); max-height: 160px; overflow: auto; }
.spin { width: 12px; height: 12px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.ach, .hero-ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: .45rem; }
.ach-i { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; padding: .55rem .3rem; border-radius: 10px; background: var(--ws-panel-2, var(--surface-2)); opacity: .45; filter: grayscale(1); }
.ach-i span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #3A3E46; color: #9BA1AA; }
.ach-i small { font-size: .68rem; line-height: 1.2; }
.ach-i.got { opacity: 1; filter: none; }
.ach-i.got span { background: radial-gradient(circle at 35% 30%, #FFE9A6, #F4A000 70%); color: #5A3A00; box-shadow: 0 0 0 3px rgba(255,200,60,.25), 0 6px 14px -6px #F4A000; }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.bdg { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(145deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)); color: #fff; }
.bdg .i { width: 17px; height: 17px; }

/* -------------------------------------------------------------- celebración */
.celebrate { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(5,8,12,.62); overflow: hidden; animation: in .2s ease; }
.celebrate[hidden] { display: none; }
.cel-box { position: relative; z-index: 2; width: min(420px, 92vw); padding: 2rem 1.6rem 1.4rem; text-align: center; border-radius: 22px; color: #fff;
  background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--brand) 70%, #000), #14161A 70%); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: pop .55s cubic-bezier(.2,1.6,.4,1); margin-top: 3rem; }
.cel-box h2 { font-size: 1.5rem; margin: .8rem 0 .2rem; }
.cel-box p { opacity: .8; margin-bottom: .6rem; }
.cel-medal { width: 104px; height: 104px; margin: -4.4rem auto 0; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF1C2, #F4A000 65%, #B86E00); color: #5A3A00; box-shadow: 0 0 0 6px rgba(255,200,60,.25), 0 0 40px rgba(255,190,40,.7);
  animation: medal 1s cubic-bezier(.2,1.4,.4,1) both; }
.cel-medal .i { width: 52px; height: 52px; stroke-width: 1.7; }
.cel-xp { display: inline-block; font: 800 1.9rem var(--font); color: #FFD24D; text-shadow: 0 0 18px rgba(255,190,40,.7); animation: rise 1.2s ease both .25s; }
.cel-level { margin: .6rem auto; padding: .45rem .8rem; border-radius: 99px; background: rgba(63,178,127,.18); color: #7BE0AE; font-weight: 600; display: inline-block; }
.cel-ach { display: grid; gap: .45rem; margin: .8rem 0; text-align: left; }
.cel-ach span { display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: center; padding: .55rem .7rem; border-radius: 12px; background: rgba(255,255,255,.06); }
.cel-ach .i { grid-row: span 2; width: 26px; height: 26px; color: #FFD24D; }
.cel-ach small { opacity: .75; font-size: .76rem; }
.cel-box .xpbar { margin: .9rem 0 .35rem; height: 11px; }
.cel-box .xpbar i { transition-duration: 1.6s; }
.cel-box .muted { color: rgba(255,255,255,.65); }
.cel-box .m-btn { margin-top: 1rem; height: 38px; padding: 0 1.4rem; font-size: .9rem; }
.conf { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; z-index: 1; animation: fall linear forwards; opacity: .95; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes medal { from { transform: scale(0) rotate(-200deg); } }
@keyframes rise { from { transform: translateY(14px) scale(.7); opacity: 0; } }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }

/* -------------------------------------------------------------- avisos */
#toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 70; display: grid; gap: .5rem; width: min(360px, calc(100vw - 2rem)); }
.toast { display: block; padding: .75rem .9rem; border-radius: 12px; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--info); animation: slide .3s cubic-bezier(.2,1.2,.4,1); text-decoration: none !important; transition: opacity .4s, transform .4s; }
.toast b { display: block; font-size: .88rem; } .toast span { display: block; color: var(--text-2); font-size: .8rem; margin-top: .15rem; }
.toast.ok { border-left-color: var(--ok); } .toast.error { border-left-color: var(--err); }
.toast.gold { border-left-color: #F4A000; background: linear-gradient(90deg, rgba(255,200,60,.15), var(--surface) 60%); }
.toast.out { opacity: 0; transform: translateX(20px); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; display: inline-grid; place-items: center; }
.count[hidden] { display: none; }
.bell { position: relative; } .bell .count { position: absolute; top: -4px; right: -6px; margin: 0; }
.live::before { animation: pulse 1.4s infinite; }

/* -------------------------------------------------------------- progreso (profesor) */
.pg .pc-h { text-align: center; width: 34px; padding-left: .3rem; padding-right: .3rem; }
.pc { text-align: center; font-weight: 800; width: 34px; padding: .5rem .2rem !important; }
.pc.superado { color: var(--ok); background: var(--ok-soft); }
.pc.fallido { color: var(--err); }
.pc.pendiente { color: var(--muted); }
.flash-cell { animation: cellpop 1.4s ease; }
@keyframes cellpop { 0% { background: #FFD24D; } }
.pg-cell { min-width: 140px; } .pg-cell .progress { margin-bottom: .25rem; }
.pg-fill { transition: width .9s ease; }
.ch-legend { padding-left: 1.2rem; margin: 0; display: grid; gap: .35rem; }
.feed .dot.ok { background: var(--ok); } .feed .dot.gold { background: #F4A000; }
.feed li.unread b { color: var(--brand); }
.grid.one { grid-template-columns: 1fr; }

/* -------------------------------------------------------------- retos (profesor) */
.reto { padding: 1rem 1.1rem; }
.reto-head { display: flex; align-items: center; gap: .7rem; }
.reto-head form { margin: 0; }
.reto-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)); color: #fff; }
.reto-txt { flex: 1; min-width: 0; line-height: 1.3; } .reto-txt b { display: block; } .reto-txt small { color: var(--text-2); }
.reto p { margin: .55rem 0 0; }
.reto .row { margin-top: .7rem; }
.try-out { margin: .6rem 0 0; padding: .6rem .8rem; border-radius: 9px; background: #0D1117; color: #E6EDF3; font: .78rem var(--mono); white-space: pre-wrap; max-height: 200px; overflow: auto; }
.try-out.ok { box-shadow: inset 3px 0 var(--ok); } .try-out.err { box-shadow: inset 3px 0 var(--err); }
.hint.ok { color: var(--ok); } .hint.err { color: var(--err); }
details.card > summary { display: flex; align-items: center; gap: .4rem; }
.dropdown { position: relative; }
.dropdown > summary { list-style: none; } .dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px; padding: .3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); }
.dropdown-menu a { display: block; padding: .5rem .7rem; border-radius: 7px; color: var(--text); }
.dropdown-menu a:hover { background: var(--surface-2); text-decoration: none; }
.file-btn { cursor: pointer; }
.hero-xp { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 1rem; align-items: center; margin-bottom: 1.4rem; }
.hero-xp .ach-i { background: var(--surface-2); }
.hero-xp .ach-i span { background: var(--line); color: var(--muted); }
.hero-xp .ach-i.got span { background: radial-gradient(circle at 35% 30%, #FFE9A6, #F4A000 70%); color: #5A3A00; }

@media (max-width: 1100px) {
  .ws-body { grid-template-columns: 0 1fr 300px; }
  .ws .ws-left { opacity: 0; pointer-events: none; padding: 0; border: 0; }
  .ws.no-left .ws-body { grid-template-columns: 0 1fr 300px; }
}
@media (max-width: 760px) {
  .ws-body, .ws.no-left .ws-body, .ws.no-right .ws-body { grid-template-columns: 0 1fr 0; }
  .ws .ws-right { opacity: 0; pointer-events: none; }
  .hero-xp { grid-template-columns: 1fr; }
  .ws-title small { display: none; }
}
