/* The picture of the app (templates/website/_app_picture.html).

   A miniature of the client dashboard's home screen. Its tokens mirror the
   `.cd` block in templates/compliance/client_page.html, so the picture and the
   app read as the same thing. The rounded corners belong to the app and live
   only inside `.app-pic-frame`. */
.app-pic { display: block; container-type: inline-size; color: #0a1628; text-decoration: none; font-variant-numeric: tabular-nums; }
:where(.app-pic) :where(span, b, i, small, em) { display: block; font-style: normal; }
.app-pic svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-pic-frame {
  display: grid; grid-template-columns: 150px minmax(0, 1fr);
  background: #f3f6fa; border-radius: 14px; overflow: hidden;
  font-size: 11px; line-height: 1.4; text-align: left;
  box-shadow: 0 1px 2px rgba(10, 22, 40, .12), 0 30px 60px -24px rgba(10, 22, 40, .55);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s cubic-bezier(.16, 1, .3, 1);
}
.app-pic:hover .app-pic-frame { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(10, 22, 40, .12), 0 40px 70px -26px rgba(10, 22, 40, .6); }
.app-pic:focus-visible { outline: 2px solid #0a1628; outline-offset: 4px; }

/* Sidebar: the one navy surface */
.app-pic-rail { background: linear-gradient(180deg, #0d1b31, #0a1628 40%); color: #c3cfe0; display: flex; flex-direction: column; padding-bottom: 0; }
.app-pic-logo { padding: 14px 14px 10px; }
.app-pic-logo img { height: 15px; width: auto; display: block; }
.app-pic-org { margin: 0 8px 8px; padding: 7px 8px; display: flex; gap: 7px; align-items: center; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; }
.app-pic-av { width: 22px; height: 22px; flex: none; border-radius: 50%; background: #f59e0b; color: #0a1628; font-weight: 700; font-size: 9px; display: grid; place-items: center; }
.app-pic-org b { color: #fff; font-weight: 600; font-size: 10px; line-height: 1.25; }
.app-pic-org small { color: #93a3bb; font-size: 9px; line-height: 1.3; }
.app-pic-nav { padding: 0 8px; display: flex; flex-direction: column; gap: 2px; }
.app-pic-nav > span { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 7px; font-weight: 500; }
.app-pic-nav > span.on { background: #fff; color: #0a1628; font-weight: 600; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); }
.app-pic-nav > span.on svg { color: #8a4a05; }
.app-pic-nav i { margin-left: auto; min-width: 16px; padding: 0 5px; border-radius: 999px; text-align: center; font-size: 9.5px; font-weight: 600; color: #8596af; }
.app-pic-nav .on i { color: #5b6a82; }
.app-pic-nav i.alert, .app-pic-nav .on i.alert { background: #f59e0b; color: #0a1628; font-weight: 700; }
.app-pic-cover { margin-top: auto; padding: 10px 14px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; gap: 8px; align-items: center; font-size: 9.5px; color: #93a3bb; }
.app-pic-cover i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; flex: none; }
.app-pic-cover b { color: #fff; font-weight: 500; font-size: 10px; }

/* Main area */
.app-pic-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 16px; background: #fff; border-bottom: 1px solid #e5eaf1; }
.app-pic-crumb { color: #5b6a82; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-pic-crumb b { display: inline; color: #0a1628; font-weight: 600; }
.app-pic-btn { display: flex; align-items: center; gap: 5px; flex: none; padding: 5px 10px; border-radius: 8px; background: #f59e0b; color: #0a1628; font-weight: 600; font-size: 10px; box-shadow: 0 6px 12px -7px rgba(217, 119, 6, .7); }
.app-pic-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.app-pic-h { font-size: 18px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.app-pic-lede { margin-top: -6px; color: #33425a; font-size: 11px; }
.app-pic-panel { background: #fff; border: 1px solid #e5eaf1; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(10, 22, 40, .04), 0 10px 24px -14px rgba(10, 22, 40, .16); }
.app-pic-panel-head { padding: 9px 12px; border-bottom: 1px solid #e5eaf1; font-weight: 600; font-size: 11px; }

/* Countdown and the line of dates */
.app-pic-tl { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
.app-pic-next { padding: 12px; border-right: 1px solid #e5eaf1; background: linear-gradient(140deg, #fff3da, #fffaf0 70%); }
.app-pic-next > b { display: flex; align-items: baseline; gap: 4px; font-size: 30px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.app-pic-next small { font-size: 10px; font-weight: 600; letter-spacing: 0; color: #8a4a05; }
.app-pic-next > span { margin-top: 6px; font-size: 9.5px; color: #33425a; line-height: 1.35; }
.app-pic-line { position: relative; height: 84px; margin: 0 14px; }
.app-pic-axis { position: absolute; left: 0; right: 0; top: 50px; height: 2px; background: #e5eaf1; }
.app-pic-axis.past { right: auto; background: #9fb0c7; }
.app-pic-ms { position: absolute; top: 14px; transform: translateX(-50%); width: 70px; text-align: center; }
.app-pic-ms b { font-size: 9px; font-weight: 600; white-space: nowrap; }
.app-pic-ms i { position: absolute; left: 50%; top: 32px; margin-left: -5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #7f93b0; }
.app-pic-ms.done i { background: #c3cedd; border-color: #c3cedd; }
.app-pic-ms.done b { color: #5b6a82; }
.app-pic-ms.next i { background: #f59e0b; border-color: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .2); }
.app-pic-today { position: absolute; top: 42px; width: 2px; height: 18px; margin-left: -1px; background: #0a1628; }
.app-pic-today span { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font-size: 9px; font-weight: 600; white-space: nowrap; }

/* Figures */
.app-pic-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.app-pic-stats > span { padding: 8px 10px; background: #fff; border: 1px solid #e5eaf1; border-radius: 10px; }
.app-pic-stats small { color: #5b6a82; font-size: 9px; font-weight: 500; line-height: 1.25; }
.app-pic-stats b { margin-top: 2px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; display: flex; align-items: baseline; gap: 3px; }
.app-pic-stats em { font-size: 9.5px; font-weight: 500; color: #5b6a82; letter-spacing: 0; }

/* Tool rows */
.app-pic-row { display: flex; align-items: center; gap: 8px; padding: 7px 12px; }
.app-pic-row + .app-pic-row { border-top: 1px solid #eef2f7; }
.app-pic-lg { width: 18px; height: 18px; flex: none; border-radius: 6px; background: #eaf0f8; color: #33425a; font-weight: 700; font-size: 9px; display: grid; place-items: center; }
.app-pic-name { font-weight: 500; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-pic-chip { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 9.5px; font-weight: 600; white-space: nowrap; background: #eaf0f8; color: #33425a; }
.app-pic-chip.red { background: #fdecec; color: #b42a2a; }
.app-pic-chip.amber { background: #fff3dc; color: #8a4a05; }
.app-pic-chip.green { background: #e6f6ee; color: #0b7a52; }
.app-pic-chip.quiet { background: transparent; color: #5b6a82; box-shadow: inset 0 0 0 1px #d6deea; }

/* A mid-width column keeps the sidebar (it is the look) and thins the date
   labels instead, which would otherwise print on top of each other. */
@container (max-width: 560px) {
  .app-pic-frame { grid-template-columns: 132px minmax(0, 1fr); }
  .app-pic-tl { grid-template-columns: 96px minmax(0, 1fr); }
  .app-pic-ms.ahead b, .app-pic-ms.done b { display: none; }
  .app-pic-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-pic-crumb { display: none; }
  .app-pic-top { justify-content: flex-end; }
}
/* Only a phone-width column drops the sidebar, as the app itself does. */
@container (max-width: 400px) {
  .app-pic-frame { grid-template-columns: minmax(0, 1fr); }
  .app-pic-rail { display: none; }
  .app-pic-crumb { display: block; }
  .app-pic-top { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .app-pic-frame { transition: none; }
  .app-pic:hover .app-pic-frame { transform: none; }
}
