/* Visual pass 33 (owner, third testnet pass 28.09 - РЕШЕНИЯ-ВЛАДЕЛЬЦА «Третий проход»). */

/* ---------------------------------------------------------------- Mine
   One geometry for every mining state. The broken screen (owner 16.webp: found Ticket + restart) was the feedback slot
   (take-over / verification / proof notices) placed on the scene row WITHOUT a column: the grid opened a second implicit
   column and squeezed the whole left frame into ~20 px. Every child now has its explicit cell; the notices float over the
   bottom of the scene (never move a frame). The chance figures moved into an (i); Recent activity takes their row. */
@media (min-width:960px){
  #app#app .workspace.page-mine .mine-grid>section:first-child>*{grid-column:1!important}
  #app#app .workspace.page-mine .mine-grid>section:first-child>.device-tabs{grid-row:1!important}
  #app#app .workspace.page-mine .mine-grid>section:first-child>.owner-mine12{grid-row:2!important}
  #app#app .workspace.page-mine .mine-grid>section:first-child>.mining-controls{grid-row:3 / span 2!important}
  #app#app .workspace.page-mine .mine-grid>section:first-child>.mine-activity33{grid-row:5 / span 2!important;align-self:stretch;margin:0 10px!important;min-height:0;overflow:hidden}
  #app#app .workspace.page-mine .mine-grid>section:first-child>.mine-feedback{grid-row:2!important;align-self:end!important;justify-self:stretch;position:relative;z-index:5;margin:0 10px 10px!important;
    display:flex!important;flex-direction:column;gap:6px;height:auto!important;max-height:calc(100% - 20px);overflow:auto;pointer-events:auto}
  #app#app .workspace.page-mine .mine-grid>section:first-child>.mine-feedback:not(:has(>:not([hidden]))){display:none!important}
  #app#app .workspace.page-mine .mine-grid>section:first-child>.mine-feedback>:not([hidden]){margin:0!important;padding:8px 12px!important;border:1px solid #8a6cd8;border-radius:8px;
    background:#0b0a26eb!important;font-size:13px;line-height:1.35;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
}
@media (max-width:959px){
  #app#app .workspace.page-mine .mine-grid>section:first-child>.mine-activity33{margin:8px 10px 10px!important}
  /* the notices float over the bottom of the scene (260 px phones, 330 px tablets): nothing below them moves */
  #app#app .workspace.page-mine .mine-grid>section:first-child{position:relative}
  #app#app .workspace.page-mine .mine-grid>section:first-child>.mine-feedback{position:absolute!important;left:10px;right:10px;top:auto;bottom:calc(100% - var(--m33-scene,330px) + 10px);z-index:5;
    display:flex!important;flex-direction:column;gap:6px;height:auto!important;max-height:calc(var(--m33-scene,330px) - 20px);overflow:auto;margin:0!important;flex:none!important}
  #app#app .workspace.page-mine .mine-grid>section:first-child>.mine-feedback:not(:has(>:not([hidden]))){display:none!important}
  #app#app .workspace.page-mine .mine-grid>section:first-child>.mine-feedback>:not([hidden]){margin:0!important;padding:8px 12px!important;border:1px solid #8a6cd8;border-radius:8px;background:#0b0a26eb!important;font-size:13px;line-height:1.35}
}
@media (max-width:700px){#app#app .workspace.page-mine .mine-grid>section:first-child{--m33-scene:260px}}
/* the status word never pushes the metrics / button: fixed box, ellipsis (the button already has a fixed width) */
#app .mining-controls>.mine-chance33{flex:0 0 auto;display:inline-flex;align-items:center;align-self:center}
#app .mining-controls>.mine-chance33 details.info>.tooltip{width:min(320px,80vw);text-align:left}
#app .mine-chance33 [data-miner-chance]{display:flex;flex-direction:column;gap:3px}
#app .mine-chance33 .mc33-row{display:flex;justify-content:space-between;gap:10px}
#app .mine-chance33 .mc33-row strong{font-variant-numeric:tabular-nums;white-space:nowrap;color:#ffe08a}
#app .mine-chance33 .mc33-note{color:#b9aee4;line-height:1.3}
/* Recent activity */
#app .mine-activity33{display:flex;flex-direction:column;gap:4px;padding:8px 12px;border:1px solid var(--ui-frame-ink,#67528f);border-radius:8px;background:#0a0b2699}
#app .mine-activity33>h3{margin:0;font:400 15px/1.1 Pixel,Interface,sans-serif;letter-spacing:.4px;color:#d9ccff}
#app .mine-activity33>ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;min-height:0;overflow:hidden}
#app .mine-activity33 li{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:8px;height:26px;font-size:13px;color:#efe8ff}
#app .mine-activity33 li>img{width:26px;height:26px;object-fit:contain;image-rendering:auto}
#app .mine-activity33 .ma33-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#app .mine-activity33 .ma33-when{color:#b9aee4;font-variant-numeric:tabular-nums;white-space:nowrap}
#app .mine-activity33 li.ma33-empty{display:block;height:auto;color:#b9aee4;line-height:1.35}
/* "In wallet · N Tickets": Open Tickets at the right edge */
#app .claim-card>.wallet-count{display:flex!important;align-items:center}
#app .claim-card>.wallet-count>a,#app .claim-card>.wallet-count>.btn{margin-left:auto!important}

/* ---------------------------------------------------------------- one corner style for every frame (owner: «углы рамок единые:
   не сверху скруглённые, а снизу прямые») - the 08 panels were 8px on top and square at the bottom, Account 9px, Lucky 6px */
#app#app .panel,#app#app section.panel,#app#app .l17-panel,#app#app>.sidebar,#app#app>.workspace{border-radius:8px!important}

/* ---------------------------------------------------------------- no frame inside a frame (owner: «рамка в рамке — убрать,
   особенно внизу»): inner boxes keep their rows and dividers, not a second border */
#app .mine-activity33{border:0!important;background:none!important;padding:4px 2px 0!important}
#app .l17-panel .l17-field,#app .l17-panel .l17-hlist,#app .l17-panel .l17-empty{border-color:transparent!important;box-shadow:none!important}
#app .acc-burn .acc-breakdown{border:0!important;box-shadow:none!important;background:#0a0b2659!important}
#app#app .rewards17 .claimable16 .claim-half17{border-color:transparent!important;box-shadow:none!important}
#app .rewards17 .identity15 .identity-art15{border:0!important}
#app .hunt-draws18 .draws18{border:0!important;box-shadow:none!important}
#app .empty-fox-panel30 .ef30-line{border:0!important}

/* ---------------------------------------------------------------- the composition already paints these objects behind the
   frames (owner: «раз сзади общая картина — внутри табличек отдельные картинки не нужны»): Account's gift and fire pictures */
/* (kept in the grid as zero-width cells: the basket and burn grids keep their columns) */
html[data-c32=account] #app [data-account-root] .acc-basket-art,html[data-c32=account] #app [data-account-root] .acc-burn-art{visibility:hidden!important;width:0!important;min-width:0!important;max-width:0!important;margin:0!important;padding:0!important}
html[data-c32=account] #app [data-account-root] .acc-basket{column-gap:0!important}
html[data-c32=account] #app [data-account-root] .acc-basket>*:not(.acc-basket-art):not(:last-child){margin-right:20px}
html[data-c32=account] #app [data-account-root] .acc-burn-sum{column-gap:0!important}

/* ---------------------------------------------------------------- Tickets portal (owner, third pass: «убрать свечение/огонёк
   вокруг портала»): no breathing light halo around the arch, no orbiting light; the vortex itself turns as one disc over the
   whole opening (code-scenes-32.mjs .cs32-swirl) */
#app .tickets12 .portal-life30>.pl30-glow{display:none!important}
#app .cs32 .cs32-ring{display:none!important}
#app .hunt-portrait08 .hunt-square08{border-color:transparent!important;box-shadow:none!important}
#app .inventory .trait-detail,#app .selected-detail08{border-color:transparent!important;box-shadow:none!important;background:#0a0b2680!important}
/* Mine: the status word has one fixed line box in every state (a status dot never grows the row by a pixel) */
#app .mining-controls>:first-child:not(.metric):not(.btn){height:24px!important;line-height:24px!important;display:flex!important;align-items:center;gap:6px}
/* the Start / Stop / "Mining in another tab" / "Take over" button keeps one box in every state (a two-line label never grows
   the controls row): fixed height, the label wraps inside it */
#app#app .mining-controls>.btn[data-action="toggle-mining"]{height:47px!important;min-height:0!important;max-height:47px;padding-top:3px!important;padding-bottom:3px!important;overflow:hidden;font-size:15px;line-height:1.1}
@media (min-width:960px) and (max-height:800px){#app#app .mining-controls>.btn[data-action="toggle-mining"]{height:40px!important;max-height:40px;font-size:14px}}
