/* The four products' working screens (front/screens.js), each a .win: every rule is scoped under .win.
   A screen fills whatever box its window is given (Business' recap sheet sizes it): it is a column as high as the box, its button (or bar) at
   the foot. The screen (.ui) is a size container too, and the rules in the @container block at the end open its rows up as the box grows (1cqh
   is a hundredth of the screen's height). A browser without container queries (iOS 15) skips only that block: its rows keep their base
   spacing, still a column filling the box with the button at the foot, and the window clips what does not fit (at the smallest sheet, a 320 x
   568 phone's, everything fits). */
@keyframes bz-pop { from { transform: scale(.2); } }

.win { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px -18px rgba(0,0,0,.35); border: 1px solid rgba(0,0,0,.08); background: #fff; text-align: left; }
.win button { -webkit-tap-highlight-color: transparent; }
.win .win-bar { flex: none; height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 11.5px; color: #8A8B90; background: #F4F4F2; border-bottom: 1px solid rgba(0,0,0,.06); -webkit-user-select: none; user-select: none; }
.win .win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #DDDCD8; }
.win .win-bar span { margin-left: 8px; }
.win.dark .win-bar { background: #1B1B1D; color: #77787E; border-color: rgba(255,255,255,.06); } .win.dark .win-bar i { background: #38383C; }
.win .ui { flex: 1; min-height: 0; display: flex; container: win-ui / size; }
.win .ui > div { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }

/* (AltınDesk's table is the tallest screen: set close, so that its seven rows and its button fit the smallest sheet, a 320 x 568 phone's) */
.win .ad { background: #16140F; color: #EDE6D3; padding: 11px 16px 12px; font-size: 12.5px; position: relative; overflow: hidden; }
.win .ad-top { display: flex; justify-content: space-between; color: #A99C7A; margin-bottom: 4px; }
.win .ad table { width: 100%; border-collapse: collapse; font-family: "JetBrains Mono", monospace; font-size: 12px; line-height: 1.2; margin-bottom: 7px; }
.win .ad th { text-align: right; color: #7F765F; font-weight: 400; padding: 2px 0; font-family: "Inter", system-ui; }
.win .ad td { padding: 2px 0; border-top: 1px solid rgba(235,201,119,.12); text-align: right; transition: color .25s; }
.win .ad td:first-child { text-align: left; font-family: "Inter", system-ui; color: #EDE6D3; }
.win .ad td.up { color: #7CE38B; } .win .ad td.down { color: #FF8A7A; }
.win .ad-btn { margin-top: auto; flex: none; width: 100%; border: 0; border-radius: 9px; padding: 8px; font: 12.5px "Inter", system-ui; color: #1C1608; background: linear-gradient(#EBC977, #B08A3E); cursor: pointer; }
.win .ad-rc { position: absolute; left: 50%; bottom: 14px; width: 170px; margin-left: -85px; background: #FBF8F0; color: #222; font-family: "JetBrains Mono", monospace; font-size: 10.5px; line-height: 1.5; padding: 10px 12px; border-radius: 4px; box-shadow: 0 10px 24px rgba(0,0,0,.4); transform: translateY(130%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.win .ad-rc.on { transform: translateY(0); }
.win .ad-rc hr { border: 0; border-top: 1px dashed #bbb; margin: 5px 0; }
.win .po { background: #0E120F; color: #E7EDE2; padding: 14px 16px 16px; font-size: 12.5px; }
.win .po-top { display: flex; justify-content: space-between; margin-bottom: 8px; } .win .po-top span { color: #C6F36B; }
.win .po ul { list-style: none; margin: 0; padding: 0; }
.win .po li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; padding: 4px 0; border-top: 1px solid rgba(198,243,107,.12); cursor: pointer; }
.win .po li:focus { outline: none; }
.win .po li:focus-visible { outline: 2px solid #C6F36B; outline-offset: -2px; border-radius: 4px; }
.win .po li .bx { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #5D6B55; display: grid; place-items: center; }
.win .po li.ok .bx { background: #C6F36B; border-color: #C6F36B; }
.win .po li.ok .bx::after { content: ""; width: 7px; height: 4px; border: 2px solid #0E120F; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.win .po li .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win .po li small { color: #7E8B76; font-family: "JetBrains Mono", monospace; }
.win .po li.ok .t { color: #93A08B; text-decoration: line-through; text-decoration-color: rgba(198,243,107,.5); }
.win .po-bar { flex: none; height: 5px; border-radius: 3px; background: #243022; margin-top: auto; overflow: hidden; } .win .po-bar i { display: block; height: 100%; background: #C6F36B; transition: width .4s; }
.win .pr { background: #fff; color: #1F1F1F; padding: 16px 18px; font-size: 12.5px; text-align: center; justify-content: center; }
.win .pr-time { font-size: 38px; line-height: 1.15; letter-spacing: -.02em; }
.win .pr-date { color: #8A8A86; margin-bottom: 12px; }
.win .pr-btn { align-self: center; border: 0; border-radius: 10px; padding: 10px 18px; font: 13px "Inter", system-ui; color: #fff; background: #2383E2; cursor: pointer; transition: background .2s; }
.win .pr-btn.out { background: #1F1F1F; }
.win .pr-who { margin-top: 14px; text-align: left; }
.win .pr-label { color: #8A8A86; font-size: 11.5px; }
.win .avs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.win .avs b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 500; color: #37352F; background: #EFEEEA; }
.win .avs b.me { background: #2383E2; color: #fff; animation: bz-pop .4s cubic-bezier(.2,1.6,.4,1); }
.win .li { background: #0A0A0A; color: #EDEDED; padding: 14px 16px 16px; font-family: "JetBrains Mono", monospace; font-size: 11.5px; line-height: 1.4; }
.win .li-top { display: flex; justify-content: space-between; letter-spacing: .06em; color: #8D8D8D; margin-bottom: 8px; } .win .li-top b { color: #FF6A2B; font-weight: 500; }
.win .li-row { display: grid; grid-template-columns: 96px 1fr 58px; gap: 8px; align-items: center; padding: 3px 0; }
.win .li-row .bar { height: 7px; background: #1E1E1E; } .win .li-row .bar i { display: block; height: 100%; background: #FF6A2B; transition: width .5s; }
.win .li-row span:last-child { text-align: right; }
.win .li svg { flex: 1 1 46px; width: 100%; min-height: 30px; max-height: 80px; display: block; margin: 8px 0; }
.win .li svg path { fill: none; stroke: #FF6A2B; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.win .li-btn { flex: none; margin-top: auto; width: 100%; border: 1px solid #FF6A2B; background: none; color: #FF6A2B; padding: 8px; font: inherit; letter-spacing: .06em; cursor: pointer; }

/* the rows spaced by the box's height (the one part that needs container queries; without them the rows keep the base spacing above, which is
   each clamp's smallest: a screen looks as it does in the smallest sheet, its rows close and its button at the foot) */
@container win-ui (min-height: 0px) {
  .win .ad td { padding: clamp(2px, 2.6cqh - 3.5px, 9px) 0; }
  .win .po li { padding: clamp(4px, 3.2cqh - 2px, 13px) 0; }
  .win .li-row { padding: clamp(3px, 2.6cqh - 2px, 10px) 0; }
}
/* a box shorter than any sheet gives (the side panel of a phone held sideways): AltınDesk shows one row fewer, Linea's chart gives way */
@container win-ui (max-height: 210px) {
  .win .ad tr:last-child { display: none; }
  .win .li svg { min-height: 0; margin: 4px 0; }
}
