/* THE PLAYERS' INBOX (design 2026-11-30-player-inbox, sections 4 and 5): the page /inbox and the account menu's line. Only the client's tokens, no look
   rules of its own, nothing that moves at rest. Starts from the approved mock-up; every class here begins with ib-. */
.ib-body{display:flex;flex-direction:column;gap:inherit}
.ib-list{display:flex;flex-direction:column;gap:8px}
.ib-card{border-radius:14px;border:1px solid var(--cp-edge);background:var(--cp-plate);box-shadow:var(--cp-hi);color:var(--ink);padding:14px 18px;display:flex;flex-direction:column;gap:12px}
.ib-d>summary{cursor:pointer;list-style:none}
.ib-d>summary::-webkit-details-marker{display:none}
.ib-top,.ib-card>.ib-top{display:grid;grid-template-columns:64px minmax(0,1fr) auto auto 14px;align-items:center;gap:16px}
.ib-kind{font:700 15px var(--display);letter-spacing:.03em;color:var(--ink2)}
.ib-text{font-size:16px;line-height:1.4;overflow-wrap:anywhere;white-space:pre-line}
.ib-d:not([open])>summary .ib-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.ib-date{font-size:14px;color:var(--ink2);white-space:nowrap}
.ib-st{font:700 15px var(--display);letter-spacing:.03em;min-width:64px;text-align:right}
.ib-st.ib-closed{color:var(--cp-win)}
.ib-chev{width:8px;height:8px;border-right:2px solid var(--ink2);border-bottom:2px solid var(--ink2);transform:rotate(45deg);justify-self:center;margin-top:-4px}
.ib-d[open]>summary .ib-chev{transform:rotate(-135deg);margin-top:4px}
.ib-d>summary:focus-visible{outline:2px solid var(--gold);outline-offset:4px;border-radius:8px}
.ib-d>.ib-up{margin-top:12px}
.ib-up{display:grid;grid-template-columns:64px minmax(0,1fr);gap:16px;border-top:1px solid var(--line2);padding-top:12px}
.ib-dotc{display:flex;justify-content:flex-start;padding-top:7px}
.ib-dot{width:10px;height:10px;border-radius:50%;background:var(--gold)}
.ib-up p{margin:0;font-size:16px;line-height:1.45;overflow-wrap:anywhere;white-space:pre-line}
.ib-up p.ib-title{font:700 16px var(--display);letter-spacing:.02em;margin-bottom:4px}
.ib-meta{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:5px;font-size:14px;color:var(--ink2)}
.ib-meta a{color:var(--gold2,var(--gold))}
.ib-note .ib-up{border-top:0;padding-top:0}
.ib-empty{margin:0;padding:14px 18px;border-radius:14px;border:1px solid var(--cp-edge);background:var(--cp-plate);box-shadow:var(--cp-hi);color:var(--ink2);font-size:16px}   /* the look of the cards: its text may stand on a bright picture */
.shell .menu .dd a.ib-menu{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ib-slot:empty{display:none}
body:has(#fb:not([hidden])) #toast:not(:has(.card)){z-index:71}   /* a short message is readable while a Feedback window (z-index 70) is open; revealed cards (showMill) have the class card and stay behind it */
#fb .ib-sent{margin:0;font-size:16px;line-height:1.45}
#fb .ib-sent a{color:var(--gold)}
/* the Reports page (admin): the seventh column, the Told line, the section, a failed list, the bar, the window */
.ib-headr{display:flex;gap:14px;align-items:center}
.ib-rep td.ib-actc{white-space:nowrap;text-align:right;vertical-align:top;background:var(--panel)}
/* a finished row is dimmed in its content only (the older rule dims the whole cell): a line that needs a person and the button's cell stay solid */
table.ib-rep tr[class~="done"] td{opacity:1}
table.ib-rep tr[class~="done"] td:not([class]){opacity:.5}
table.ib-rep tr[class~="done"] .ib-rtext,table.ib-rep tr[class~="done"] .ib-told:not(.ib-need),table.ib-rep tr[class~="done"] td.ib-actc>*{opacity:.5}
table.ib-rep tr[class~="done"] td.ib-actc>:disabled{opacity:.25}   /* off must look off here too */
.ib-fail{margin:12px 0;padding:10px 14px;border:1px solid var(--line2);border-radius:10px;background:var(--felt);font-size:14px;line-height:1.45}   /* on its own ground: the page behind it is a picture */
.ib-fail .btn{margin-left:8px}
.err:has(+ #ib-err){display:table;max-width:100%;margin:0;padding:10px 14px;border:1px solid var(--line2);border-radius:10px;background:var(--felt);font-size:15px;line-height:1.45}   /* the reason on the error page: a box like the failed list's */
#ib-err{margin:12px 0 0}
/* the bar: --felt is the ground on which the client's error colour is readable in every look; empty it takes no room, but it is there, so that a new entry is read out */
.ib-bar{position:fixed;left:0;right:0;bottom:0;z-index:40;box-sizing:border-box;max-height:50dvh;overflow:auto;padding:0 20px env(safe-area-inset-bottom);border-top:1px solid var(--line2);background:var(--felt);color:var(--ink);box-shadow:0 -12px 30px var(--shadow2)}
.ib-bar:empty{padding:0;border:0;box-shadow:none}
.shell:has(+ .ib-bar:not(:empty)){padding-bottom:50dvh}   /* the last row can always be scrolled above the bar */
.ib-bar-e{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;max-width:1040px;margin:0 auto;padding:12px 0}
.ib-bar-e+.ib-bar-e{border-top:1px solid var(--line)}
.ib-bar p{margin:0}
.ib-bar .err{font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.ib-bar p.ib-bar-x{margin-top:6px;font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.ib-sentrow:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.ib-bar-e:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}   /* inside it: the bar cuts off what overflows */
.ib-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ib-can{display:inline-block;max-width:210px;white-space:normal;text-align:left;font-size:13px;color:var(--ink2)}
.ib-told{margin-top:6px;font-size:13px;line-height:1.45;color:var(--ink2);white-space:normal}
.ib-told b{color:var(--ink)}
.ib-told .ib-act{margin-left:8px}
.ib-warn{margin-left:8px}
.ib-h2{margin:24px 0 12px;font:700 22px var(--display)}
.ib-sentrow{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;align-items:baseline;padding:10px 0;border-bottom:1px solid var(--line)}
.ib-sentrow:last-child{border-bottom:0}
.ib-to{overflow-wrap:anywhere}
.ib-sentrow .ib-told{margin-top:0}
dialog.ib-win{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:auto;padding:0;border:1px solid var(--line2);border-radius:16px;background:var(--panel);color:var(--ink);box-shadow:0 18px 50px var(--shadow2)}
dialog.ib-win::backdrop{background:var(--overlay)}
.ib-w-body{display:flex;flex-direction:column;gap:16px;padding:26px 28px}   /* the padding is here, not on the dialog: a click beside a field is a click inside the window */
.ib-w-title{margin:0;font:700 26px var(--display)}
.ib-w-quote{margin:0;max-height:7.5em;overflow:auto;color:var(--ink2);font-size:15px;line-height:1.45;overflow-wrap:anywhere;white-space:pre-line}
.ib-w-in{box-sizing:border-box;width:100%;padding:12px;border-radius:10px;border:1px solid var(--line2);background:var(--panel2);color:var(--ink);font:inherit;font-size:16px}
input.ib-w-in{height:44px;padding:0 12px}
textarea.ib-w-in{resize:vertical;min-height:110px}
.ib-w-in:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.ib-w-tick{display:flex;gap:10px;align-items:flex-start;font-size:16px;line-height:1.4}
.ib-w-tick input{margin-top:4px}
.ib-w-off{color:var(--ink2)}
.ib-w-err{margin:0;font-size:15px;line-height:1.4}
.ib-w-err:empty{margin-top:-16px}   /* it is always there for a screen reader, but empty it adds no gap */
.ib-w-err:focus{outline:none}
.ib-w-sub{font-size:14px;color:var(--ink2)}
.ib-w-foot{display:flex;justify-content:flex-end;gap:10px}
@media (max-width:640px){
  .ib-card{padding:14px}
  .ib-top,.ib-card>.ib-top{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}
  .ib-text{grid-column:1/-1;grid-row:2}
  .ib-kind{grid-row:1}
  .ib-date{grid-row:3}
  .ib-st{grid-row:1}
  .ib-chev{grid-row:3;grid-column:2}
  .ib-up{grid-template-columns:18px minmax(0,1fr);gap:8px}
  .ib-up.ib-nodot{grid-template-columns:minmax(0,1fr)}
  .ib-up.ib-nodot .ib-dotc{display:none}
  .lobby.users table.ib-rep{display:block;overflow:visible}   /* each report is a block: the tick, the kind, the name and the date on one line, the message over the whole width, then where and Update */
  .ib-rep thead{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .ib-rep tbody{display:block}
  .ib-rep tr[data-fb]{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:8px 12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}
  .ib-rep tr[data-fb]:first-child{padding-top:0}
  .ib-rep tr[data-fb]:last-child{padding-bottom:0;border-bottom:0}
  .lobby.users .ib-rep tr[data-fb]>td{padding:0;border-bottom:0}
  .ib-rep tr[data-fb]>td:nth-child(1) input{width:20px;height:20px;margin:0;display:block}
  .ib-rep tr[data-fb]>td:nth-child(3){font-weight:700;overflow-wrap:anywhere}
  .ib-rep tr[data-fb]>td:nth-child(4){color:var(--ink2);white-space:nowrap}
  .ib-rep tr[data-fb]>td.txt{grid-area:2/1/auto/-1;max-width:none;font-size:15px;line-height:1.45;overflow-wrap:anywhere}
  .ib-rep tr[data-fb]>td:nth-child(5){grid-area:3/1/auto/4;color:var(--ink2);overflow-wrap:anywhere}
  .ib-rep tr[data-fb]>td.ib-actc{grid-area:3/4/auto/5;background:none}
  .ib-rep tr[data-fb]>td.ib-actc:has(.ib-can){grid-area:4/1/auto/-1;text-align:left}   /* a sentence where the button would be: a line of its own, so that it does not push the others apart */
  .ib-rep .ib-can{max-width:none}
  .ib-told{font-size:14px}
  .ib-told .ib-act{margin:8px 8px 0 0}
  .ib-warn{margin-left:0}
  .ib-fail .btn{display:block;margin:8px 0 0}
  .ib-sentrow{grid-template-columns:minmax(0,1fr)}
  .ib-w-body{padding:20px}
  .ib-w-title{font-size:22px}
}
