/* Grouped platform controls with separate account and sharing actions. */
html body .tb-install-panel{container-type:inline-size;box-sizing:border-box;display:block!important;padding:28px 32px;margin:24px 0;border:1px solid #343b3d;border-radius:14px;background:#171b1c;color:#f1f3ef}
html body.partner-entry .tb-install-panel{width:100%}
html body .tb-app-offer.tb-install-panel{margin:0 0 20px}
html body .tb-install-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:center}
html body .tb-install-panel .tb-install-heading{display:block;min-width:0;margin:0}
html body .tb-install-panel .tb-install-heading :is(h2,strong){display:block;white-space:normal;font:600 20px/1.4 Roboto,Arial,sans-serif!important;color:#fff!important;margin:0!important;max-width:none}
html body .tb-install-panel .tb-install-heading p{font:400 14px/1.5 Roboto,Arial,sans-serif!important;color:#bfc9c1!important;margin:6px 0 0!important}
html body .tb-install-options{box-sizing:border-box;container:tb-platform-options / inline-size;min-width:0;width:100%;padding-top:22px;border-top:1px solid #343b3d}
html body .tb-install-panel .tb-install-label{margin:0 0 12px!important;color:#c5cec7!important;font:500 14px/1.4 Roboto,Arial,sans-serif!important}
html body .tb-install-panel .tb-action-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:1fr;gap:10px!important;border:0!important;overflow:visible;min-width:0;width:100%;margin:0;justify-self:stretch}
html body .tb-install-panel .tb-action-grid>.tb-app-action{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;justify-self:stretch;gap:12px;width:100%;min-width:0;min-height:76px;height:100%;margin:0;padding:14px 16px;border:1px solid #4b5a50;border-radius:9px;background:#111814;color:#f1f3ef;font:600 16px/1.3 Roboto,Arial,sans-serif;letter-spacing:0;text-align:left;text-decoration:none;cursor:pointer;grid-column:auto;transition:background .15s,border-color .15s}
html body .tb-install-panel .tb-action-grid .tb-app-action>span{display:block;min-width:0;font:inherit;overflow-wrap:normal;white-space:normal}
html body .tb-install-panel .tb-app-action small{display:block;margin-top:4px;color:#bfc9c1;font:400 13px/1.35 Roboto,Arial,sans-serif;white-space:nowrap}
html body .tb-install-panel .tb-app-action .platform-logo{display:block;flex:0 0 26px;width:26px;height:28px;min-width:0;min-height:0;color:inherit}
html body .tb-install-panel .tb-register-action{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:14px;width:fit-content;max-width:100%;min-height:48px;margin:20px 0 0;padding:12px 18px;border:1px solid #cedc00;border-radius:8px;background:#cedc00;color:#172013;font:600 14px/1.4 Roboto,Arial,sans-serif;text-decoration:none;text-align:left;white-space:normal;transition:background .15s,border-color .15s}
html body .tb-install-panel .tb-register-action .icon{flex:none;width:18px;height:18px}
html body .tb-install-panel .tb-app-action:hover{background:#243329;border-color:#b7c975}
html body .tb-install-panel .tb-register-action:hover{background:#deeb35;border-color:#deeb35}
html body :is(.tb-install-panel .tb-app-action,.tb-share-row .tb-app-share):focus-visible{outline:3px solid #d9e884;outline-offset:3px}
html body .tb-share-row{display:flex;justify-content:flex-start;margin:0 0 12px;min-width:0}
html body .tb-share-row .tb-app-share{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;margin:0;padding:10px 0;border:1px solid transparent;border-radius:8px;background:transparent;color:#cad3cc;font:500 14px/1.4 Roboto,Arial,sans-serif;cursor:pointer;transition:background .15s,border-color .15s}
html body .tb-share-row .tb-app-share svg{flex:none;width:18px;height:18px}
html body .tb-share-row .tb-app-share:hover{background:#171b1c;border-color:#343b3d;color:#f1f3ef}
@container(min-width:42rem){html body .tb-install-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px}html body .tb-install-options{justify-self:end;max-width:480px;border-top:0;border-left:1px solid #343b3d;padding:0 0 0 32px}}
@container(min-width:64rem){html body .tb-install-layout{grid-template-columns:minmax(14rem,.8fr) minmax(0,2fr)}html body .tb-install-options{max-width:none}html body .tb-install-panel .tb-platform-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}html body .tb-install-heading .tb-share-row{margin-bottom:6px}html body .tb-install-panel .tb-register-action{margin-top:12px}}
@media(max-width:480px){html body .tb-install-panel{padding:20px 16px}html body .tb-install-panel .tb-install-heading :is(h2,strong){font-size:18px!important}html body .tb-install-panel .tb-action-grid>.tb-app-action{gap:8px;padding:12px 10px;font-size:14px}html body .tb-install-panel .tb-app-action small{font-size:12px}html body .tb-install-panel .tb-app-action .platform-logo{flex-basis:23px;width:23px;height:26px}}
/* Fit each icon and its complete OS label to the available panel width. */
@container tb-platform-options (max-width:23rem){
 html body .tb-install-panel .tb-platform-grid>.tb-app-action{flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;padding:10px}
 html body .tb-install-panel .tb-platform-grid .platform-logo{flex:none}
}
@container tb-platform-options (max-width:16.5rem){
 html body .tb-install-panel .tb-platform-grid{grid-template-columns:minmax(0,1fr)!important}
 html body .tb-install-panel .tb-platform-grid>.tb-app-action{flex-direction:row;align-items:center;justify-content:flex-start}
}
@container tb-platform-options (min-width:23.01rem) and (max-width:46rem){
 html body .tb-install-panel .tb-platform-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
.tb-suite-dialog h2:has(.tb-brand-dot){color:#fff}
.tb-brand-dot{color:#CEDC00}
.tb-suite-dialog .tb-install-choice{white-space:nowrap}
.tb-install-minimum{padding:12px 14px;border:1px solid #52634f;border-radius:8px;background:#101710;color:#e2eadc;font-size:14px;line-height:1.6;margin:0 0 20px}
.tb-suite-dialog .tb-install-guide select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23d5e64a' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:40px!important}
html[data-supplier-shell] body .report-card .report-platforms,html body .report-platforms{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;border:0;overflow:visible}
html[data-supplier-shell] body .report-card .report-platforms .tb-app-action{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px;border:1px solid #bac4b6;border-radius:8px;color:#18201d;background:white;text-decoration:none;font-size:14px;width:auto!important}
html body .report-platforms .platform-logo{color:#18201d;flex:none;width:23px;height:23px}
html body .report-platforms .tb-platform-name,html body .report-platforms .tb-platform-summary{display:block}
html body .report-platforms .tb-platform-summary{white-space:nowrap;margin-top:2px;font:400 12px/1.3 Roboto,Arial,sans-serif;color:#465950}
html body .report-app-invite{container:tb-report-invite / inline-size}
@container tb-report-invite (max-width:39rem){
 html[data-supplier-shell] body .report-card .report-platforms{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container tb-report-invite (max-width:18.5rem){
 html[data-supplier-shell] body .report-card .report-platforms{grid-template-columns:minmax(0,1fr)}
}
@media print{html[data-supplier-shell] body .report-card .report-platforms{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){html body .tb-install-panel .tb-app-action{transition:none}}

@media print{html body .tb-install-panel:not(.cm-app-invite){display:none!important}}

/* Size each platform group from the width available to this panel. */
@media screen {
  html body .tb-install-panel:not(.tb-app-offer) .tb-platform-grid {
    width: min(100%, 26.75rem); margin-inline: auto 0; justify-self: end;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: .25rem !important;
  }
  html body .tb-install-panel:not(.tb-app-offer) .tb-platform-grid > .tb-app-action {
    width: 100%; height: auto;
    font-size: .875rem; line-height: 1.1;
  }
  html body .tb-install-panel .tb-platform-grid small.tb-platform-summary {
    display: block; margin-top: 0; font-size: .75rem; line-height: 1.1; white-space: nowrap;
  }
  html body .tb-install-panel:not(.tb-app-offer) .tb-platform-grid .platform-logo {
    width: .875rem; height: .875rem; flex: 0 0 .875rem;
  }
  html body .tb-install-panel > .tb-install-options:only-child {
    width: 100%; max-width: none; padding: 0; border: 0;
  }
  @container tb-platform-options (max-width: 28rem) {
    html body .tb-install-panel:not(.tb-app-offer) .tb-platform-grid {
      width: min(100%, 13.25rem); grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }
  }
}

/* Keep four choices alongside the heading when the panel has room for both. */
@media screen and (min-width: 761px) {
  @container (min-width: 42rem) {
    html body .tb-install-panel:not(.tb-app-offer) .tb-install-layout {
      grid-template-columns: minmax(0,1fr) minmax(31rem,1.6fr);
    }
    html body .tb-install-panel:not(.tb-app-offer) .tb-install-layout > .tb-install-options {
      max-width: none;
    }
  }
}

/* Keep the on-screen supplier report invitation grouped inside its own panel. */
@media screen {
  html[data-supplier-shell] body .report-card .report-app-invite { grid-template-columns: minmax(0,1fr); }
  html[data-supplier-shell] body .report-card .report-platforms {
    width: min(100%, 26.75rem); gap: .25rem; justify-self: end; margin-inline-start: auto;
  }
  html[data-supplier-shell] body .report-card .report-platforms .tb-app-action span { margin: 0; }
  @container tb-report-invite (max-width:39rem) {
    html[data-supplier-shell] body .report-card .report-platforms {
      width: min(100%, 13.25rem); grid-template-columns: repeat(2,minmax(0,1fr));
    }
  }
}

/* Place the longest minimum OS on its own line while keeping equal button widths. */
@media screen {
  html body .tb-install-panel:not(.tb-app-offer) .tb-platform-grid > .tb-app-action,
  html[data-supplier-shell] body .report-card .report-platforms .tb-app-action {
    display: grid; grid-template-columns: auto auto; justify-content: center; align-content: center;
    align-items: center; min-height: 2rem; padding: 0 .125rem; gap: 0 .2rem;
  }
  html body .tb-install-panel:not(.tb-app-offer) .tb-platform-grid .tb-app-action > span,
  html[data-supplier-shell] body .report-card .report-platforms .tb-app-action > span { display: contents; }
  html body .tb-install-panel:not(.tb-app-offer) .tb-platform-grid .tb-platform-summary,
  html[data-supplier-shell] body .report-card .report-platforms .tb-platform-summary {
    grid-column: 1 / -1; margin: 0; line-height: 1.1; text-align: center;
  }
  html[data-supplier-shell] body .report-card .report-platforms .platform-logo { width: .875rem; height: .875rem; }
}

/* Phone controls keep the platform name beside its icon. The install guide includes OS details. */
@media screen and (max-width: 760px) {
  html body .tb-install-panel .tb-action-grid.tb-platform-grid {
    width: min(100%, 9.75rem); max-width: 100%; margin-inline: auto 0;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 1rem .25rem !important;
  }
  html body .tb-install-panel .tb-platform-grid > .tb-app-action:has(.tb-platform-summary) {
    display: grid; grid-template-columns: auto auto; grid-template-rows: auto;
    column-gap: .22rem; row-gap: .12rem; justify-content: center; align-content: center; align-items: center;
    width: auto; min-height: 1.875rem; padding: .125rem .25rem; font-size: .8125rem; line-height: 1.16;
  }
  html body .tb-install-panel .tb-platform-grid .tb-app-action > span { display: contents; }
  html body .tb-install-panel .tb-platform-grid .platform-logo { grid-area: 1 / 1; width: .875rem; height: .875rem; }
  html body .tb-install-panel .tb-platform-grid .tb-platform-name { grid-area: 1 / 2; white-space: nowrap; }
  html body .tb-install-panel .tb-platform-grid small.tb-platform-summary,
  html[data-supplier-shell] body .report-card .report-platforms small.tb-platform-summary { display: none; }
  html[data-supplier-shell] body .report-card .report-platforms {
    width: min(100%, 9.75rem); grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem .25rem;
  }
  html[data-supplier-shell] body .report-card .report-platforms .tb-app-action {
    min-height: 1.875rem; gap: .25rem; padding: .125rem .25rem;
  }
  html[data-supplier-shell] body .report-card .report-platforms .platform-logo { width: .875rem; height: .875rem; }
  html[data-supplier-shell] body .report-card .report-platforms .tb-platform-name { white-space: nowrap; }
}

/* A transparent extension belongs to the same link. Adjacent rows leave room for it. */
@media screen and (max-width: 760px), screen and (any-pointer: coarse) {
  html body :is(.tb-platform-grid,.report-platforms) > a.tb-app-action { position: relative; }
  html body :is(.tb-platform-grid,.report-platforms) > a.tb-app-action::after {
    content: ""; position: absolute; inset: min(0px, calc((100% - 2.75rem) / 2)) 0;
  }
  html body .tb-install-panel .tb-action-grid.tb-platform-grid,
  html[data-supplier-shell] body .report-card .report-platforms { row-gap: 1rem !important; }
}

/* Keep the registration action close to its install choices on transaction cards. */
html[data-supplier-shell] body .report-card .report-app-invite {
 display:grid;
 grid-template-columns:minmax(0,1fr);
 gap:6px;
 padding:8px 12px;
}
html[data-supplier-shell] body .report-card .report-invite-button {
 min-height:36px;
 margin:0;
 padding:5px 12px;
}
@media screen {
 html body .tb-install-panel:is([data-supplier-install],.cm-app-invite) {
  padding:10px 14px;
 }
 html body .tb-install-panel:is([data-supplier-install],.cm-app-invite) .tb-install-layout {
  gap:6px 12px;
 }
 html body .tb-install-panel:is([data-supplier-install],.cm-app-invite) .tb-install-options {
  padding:0;
  border:0;
 }
 html body .tb-install-panel:is([data-supplier-install],.cm-app-invite) .tb-register-action {
  min-height:36px;
  margin-top:4px;
  padding:5px 12px;
 }
 html body .tb-install-panel:is([data-supplier-install],.cm-app-invite) .tb-install-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:4px 8px;
 }
}
@media screen and (max-width:760px), screen and (any-pointer:coarse) {
 html body .tb-install-panel:is([data-supplier-install],.cm-app-invite) .tb-register-action,
 html[data-supplier-shell] body .report-card .report-invite-button {min-height:44px}
 html body .tb-install-panel:is([data-supplier-install],.cm-app-invite) .tb-platform-grid,
 html[data-supplier-shell] body .report-card .report-platforms {
  row-gap:4px !important;
 }
 html body .tb-install-panel:is([data-supplier-install],.cm-app-invite) .tb-platform-grid > a.tb-app-action,
 html[data-supplier-shell] body .report-card .report-platforms > a.tb-app-action {min-height:44px}
}
@media screen and (max-width:760px) {
 @container tb-report-invite (min-width:15.75rem) {
  html[data-supplier-shell] body .report-card .report-platforms {
   width:min(100%,21rem);
   grid-template-columns:repeat(4,minmax(0,1fr));
  }
 }
 @container tb-platform-options (min-width:17rem) {
  html body .tb-install-panel:is([data-supplier-install],.cm-app-invite) .tb-action-grid.tb-platform-grid {
   width:min(100%,21rem);
   grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }
 }
}
@media screen and (max-width:760px) {
 html[data-supplier-shell] body .report-card .report-invite-top {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:6px;
 }
 @container tb-report-invite (min-width:15.75rem) and (max-width:19rem) {
  html[data-supplier-shell] body .report-card .report-platforms > a.tb-app-action {
   grid-template-columns:minmax(0,1fr);
   grid-template-rows:auto auto;
   justify-items:center;
   gap:2px;
  }
  html[data-supplier-shell] body .report-card .report-platforms .tb-platform-name {grid-area:2 / 1}
 }
}
@media screen {
 html[data-supplier-shell] form button:is([type="submit"],:not([type])):enabled:is(:hover,:active,:focus-visible),
 html body :is([data-save-review],[data-invoice-proof] button[type="submit"],#cm-doc-form button[type="submit"]):enabled:is(:hover,:active,:focus-visible) {
  outline:2px solid var(--lime,#cedc00);
  outline-offset:1px;
 }
}
