/* PluginStore-PowerPDF, styled per Tungsten Automation Brand Book (November 2026, S1.31.0). */

/* Red Hat Display (SIL OFL 1.1, /fonts/OFL.txt), served by the store itself: before S1.31.0 only
   visitors who had the font installed saw it */
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/RedHatDisplay-Light.ttf") format("truetype"); }
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/RedHatDisplay-Regular.ttf") format("truetype"); }
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/RedHatDisplay-Medium.ttf") format("truetype"); }
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("/fonts/RedHatDisplay-Bold.ttf") format("truetype"); }

/* Colours: theme "Tungsten Automation 2026" of the official template (dk1 #231F20, dk2 #002854, lt2 #FAFAFA,
   accents #00A0FB #D030E8 #FF6D69 #FFC600 #00EB86). The steps below are mixed from these colours only. */
:root {
  --tun-navy: #002854;
  --tun-navy-deep: #003A6D;      /* hover: navy 85 % + blue */
  --tun-ink: #231F20;
  --tun-blue: #00A0FB;
  --tun-blue-ink: #0072BC;       /* blue 62 % + navy: links and blue text on white (contrast 5:1) */
  --tun-blue-light: #99D9FD;     /* blue 40 % + white */
  --tun-on-navy: #BFE7FE;        /* secondary text on navy */
  --tun-tint: #E8F6FF;           /* blue 9 % + white: callouts */
  --tun-green: #00EB86;
  --tun-yellow: #FFC600;
  --tun-coral: #FF6D69;
  --tun-magenta: #D030E8;
  --tun-ok: #016839;             /* success text (dark of the green accent, 6.9:1) */
  --tun-err: #B3261E;            /* error text (dark of the coral accent, 6.5:1) */
  --tun-gray-100: #FAFAFA;
  --tun-gray-150: #F0F0F0;
  --tun-gray-200: #E0E5EA;       /* lines: navy 12 % + white */
  --tun-gray-blue: #F0F2F5;      /* table heads: navy 6 % + white */
  --tun-slate: #476484;          /* secondary text: navy 72 % + white (contrast 6:1) */
  --tun-domain-blue: #002854;
  --tun-accent-pdf: linear-gradient(90deg, #00EB86 0%, #00A0FB 100%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Red Hat Display", Arial, sans-serif;
  background: #fff;
  color: var(--tun-ink);
  line-height: 1.45;
  /* the navy footer at the bottom of the window also on short pages */
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { width: 100%; flex: 1 0 auto; }
body > .shell { flex: 1 0 auto; }
a { color: var(--tun-blue-ink); }

/* white top bar, the 2026 logo in navy (Brand Book p. 13) */
header.site {
  background: #fff;
  color: var(--tun-navy);
  border-bottom: 1px solid var(--tun-gray-200);
}
header.site .bar {
  max-width: 1280px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
header.site img.logo { height: 30px; display: block; }
header.site .title { font-weight: 400; font-size: 1.08rem; line-height: 1.15; color: var(--tun-navy);
  padding-inline-start: 16px; border-inline-start: 1px solid var(--tun-gray-200); }
header.site .title small { display: block; font-weight: 400; color: var(--tun-slate); font-size: .74rem; }
header.site nav { margin-inline-start: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
header.site nav a { color: var(--tun-navy); text-decoration: none; font-weight: 500; font-size: .9rem; }
header.site nav a:hover { color: var(--tun-blue-ink); }
header.site nav select { border-color: var(--tun-gray-200); color: var(--tun-navy); }
.accent-line { display: none; }

/* 1280px (S1.4.1): the management lists have up to eight columns with badges and buttons */
main { max-width: 1280px; margin: 0 auto; padding: 32px 20px 60px; }

/* headings in light weight, primary blue; subheadings regular navy (Brand Book p. 22) */
h1 { color: var(--tun-blue); font-weight: 300; font-size: 2.1rem; line-height: 1.18; margin: 0 0 8px; }
h2 { color: var(--tun-navy); font-weight: 400; font-size: 1.35rem; line-height: 1.25; margin: 28px 0 12px; }
h3 { color: var(--tun-navy); font-weight: 500; }
p.lead { color: var(--tun-slate); margin-top: 0; }

/* flat light tiles (Brand Book p. 3) */
.card {
  background: var(--tun-gray-100); border: 1px solid var(--tun-gray-200); border-radius: 6px;
  padding: 18px 20px; margin-bottom: 16px;
}
/* callout: light blue, a line on the start side, medium weight (Brand Book p. 22) */
.callout { background: var(--tun-tint); border-inline-start: 4px solid var(--tun-blue); border-radius: 0 6px 6px 0;
  padding: 12px 16px; margin-bottom: 16px; color: var(--tun-navy); font-weight: 500; font-size: .92rem; }
[dir=rtl] .callout { border-radius: 6px 0 0 6px; }
.callout.quiet { font-weight: 400; font-size: .86rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

/* validation report */
.report { border: 1px solid var(--tun-gray-200); border-radius: 8px; margin: 10px 0; background: var(--tun-gray-100); }
.report > summary { cursor: pointer; padding: 10px 14px; list-style: none; display: flex; gap: 8px; align-items: center; }
.report > summary::-webkit-details-marker { display: none; }
/* "New customer": a button that reveals the form (no script) */
/* approval with conditions (S1.0.10) */
details.approve-box > summary { list-style: none; display: inline-block; }
details.approve-box > summary::-webkit-details-marker { display: none; }
details.approve-box[open] { flex-basis: 100%; background: #fff; border: 1px solid var(--tun-gray-200); border-radius: 6px; padding: 8px 10px; }
details.approve-box[open] > summary { opacity: .75; }
.cond-id { font-family: Consolas, monospace; font-weight: 700; color: var(--tun-navy); white-space: nowrap; }
.cond-edited { font-size: .75rem; color: var(--tun-slate); }
details.newcust { margin-bottom: 16px; }
details.newcust > summary::-webkit-details-marker { display: none; }
details.newcust > summary::marker { content: ""; }
details.newcust[open] > summary { opacity: .75; }
.report-ok { border-left: 4px solid var(--tun-green); }
.report-warning { border-left: 4px solid var(--tun-yellow); }
.report-error { border-left: 4px solid var(--tun-coral); }
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; padding: 0 14px 10px; }
.report-area { background: #fff; border: 1px solid var(--tun-gray-200); border-radius: 6px; padding: 8px 10px; }
/* long codes, paths and hosts wrap instead of widening the page (S1.4.1); grid items may shrink */
.report-area, ul.findings li, .card { min-width: 0; overflow-wrap: break-word; }
ul.findings li, ul.findings .hint { overflow-wrap: anywhere; }
.report-label { font-weight: 500; color: var(--tun-navy); font-size: .9rem; }
.report-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
  border-radius: 50%; font-size: .75rem; font-weight: 700; color: #fff; margin-right: 6px; flex: none;
}
.report-icon.ok { background: #016839; }
.report-icon.info { background: var(--tun-blue); }
.report-icon.warning { background: #634E12; }
.report-icon.error { background: #B3261E; }
.report-note { color: var(--tun-slate); font-size: .78rem; padding: 0 14px 10px; margin: 0; }

.catalog-tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.catalog-tools input[type=search] { max-width: 260px; border-radius: 999px; padding: 8px 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
/* S1.29.1: card head in the review queue: the add-on first */
.review-head { display: flex; gap: 14px; align-items: flex-start; }
.review-icon { flex: none; width: 52px; height: 52px; border-radius: 12px; object-fit: contain; background: var(--tun-gray-50, #f4f6f9); display: inline-flex; align-items: center; justify-content: center; color: var(--tun-navy); font-size: 1.5rem; font-weight: 700; }
.review-title { margin: 0; font-size: 1.3rem; line-height: 1.25; color: var(--tun-navy); }
.review-title a { color: inherit; text-decoration: none; }
.review-title a:hover { text-decoration: underline; }
.review-meta { color: var(--tun-slate); font-size: .85rem; margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.review-desc { margin: 6px 0 0; color: var(--tun-slate); }
/* S1.28.2: submitter block in the review queue */
.submitter { display: flex; gap: 10px; align-items: center; margin: 8px 0 2px; padding: 8px 10px; border-radius: 10px; background: var(--tun-gray-50, #f4f6f9); }
.submitter .initial { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--tun-navy); color: #fff; font-weight: 700; overflow: hidden; }
.submitter .initial img { width: 100%; height: 100%; object-fit: cover; }
.catalog-tools .author-pick { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--tun-navy); }
.catalog-tools .author-pick select { width: auto; min-width: 160px; max-width: 240px; border-radius: 999px; padding: 7px 14px; }
.chip {
  border: 1px solid var(--tun-gray-200); background: #fff; color: var(--tun-navy);
  font-family: inherit; font-weight: 500; font-size: .82rem;
  padding: 5px 14px; border-radius: 999px; cursor: pointer;
}
.chip:hover { border-color: var(--tun-blue); }
.chip.active { background: var(--tun-navy); color: #fff; border-color: var(--tun-navy); }

.pkg { display: flex; flex-direction: column; gap: 6px; transition: border-color .15s; }
.pkg:hover { border-color: var(--tun-blue); }
.pkg-top { display: flex; gap: 14px; align-items: center; }
.pkg-icon { width: 48px; height: 48px; flex: none; border-radius: 10px; background: #fff; object-fit: contain; }
.pkg .name { font-weight: 500; color: var(--tun-navy); font-size: 1.08rem; }
.pkg .meta { color: var(--tun-slate); font-size: .82rem; }
/* S2.0.1: tiles of equal height: at most twelve lines of description (full text on the add-on page),
   author line at the bottom */
.pkg .desc { font-size: .92rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 12; line-clamp: 12; overflow: hidden; }
.pkg .desc + .meta { margin-top: auto; }
.chip img { width: 20px; height: 20px; margin-inline-end: 6px; vertical-align: -5px; }
.chip.active img { filter: brightness(0) invert(1); }

table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: start; padding: 9px 12px; border-bottom: 1px solid var(--tun-gray-200); font-size: .9rem; vertical-align: top; }
th { color: var(--tun-navy); font-weight: 500; background: var(--tun-gray-blue); }
tr:hover td { background: var(--tun-gray-100); }

/* buttons: sentence case, medium weight, quiet corners */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  background: var(--tun-navy); color: #fff; font-family: inherit; line-height: 1.3;
  font-weight: 500; font-size: .92rem; padding: 9px 18px; border-radius: 4px;
}
.btn:hover { background: var(--tun-navy-deep); }
.btn:focus-visible { outline: 2px solid var(--tun-blue); outline-offset: 2px; }
.btn.secondary { background: #fff; color: var(--tun-navy); box-shadow: inset 0 0 0 1px var(--tun-gray-200); }
.btn.secondary:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--tun-blue); }
/* bright blue with navy text: white on #00A0FB would miss the contrast minimum */
.btn.cta { background: var(--tun-blue); color: var(--tun-navy); }
.btn.cta:hover { background: var(--tun-blue-light); }
.btn.danger { background: var(--tun-coral); color: var(--tun-ink); }
.btn.danger:hover { background: #FF8A87; }
.btn.small { padding: 5px 12px; font-size: .82rem; }

form.stack { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
label { font-weight: 500; font-size: .88rem; color: var(--tun-navy); display: block; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], input[type=search], input[type=file], textarea, select {
  width: 100%; padding: 9px 11px; border: 1px solid var(--tun-gray-200); border-radius: 6px;
  font-family: inherit; font-size: .92rem; background: #fff; color: var(--tun-ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--tun-blue); border-color: var(--tun-blue); }

.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 700;
}
.badge.live { background: #B6FFDE; color: #016839; }
.badge.beta { background: #FFDF85; color: #634E12; }
.badge.rejected { background: #FFBDBD; color: #421F1F; }
.badge.withdrawn { background: var(--tun-gray-200); color: var(--tun-slate); }
.badge.submitted { background: var(--tun-blue-light); color: var(--tun-navy); }
.badge.pending { background: #FFDF85; color: #634E12; }
.badge.active { background: #B6FFDE; color: #016839; }
.badge.disabled { background: var(--tun-gray-200); color: var(--tun-slate); }

/* notices in the callout form: a light tint of the accent colour, the colour as a line */
.alert { border-radius: 0 6px 6px 0; padding: 12px 16px; margin-bottom: 16px; font-size: .92rem; border-inline-start: 4px solid; }
[dir=rtl] .alert { border-radius: 6px 0 0 6px; }
.alert.ok { background: #E6FDF3; color: #016839; border-color: var(--tun-green); }
.alert.warn { background: #FFF5D1; color: #634E12; border-color: var(--tun-yellow); }
.alert.error { background: #FFEBEA; color: #421F1F; border-color: var(--tun-coral); }
.alert.info { background: var(--tun-tint); color: var(--tun-navy); border-color: var(--tun-blue); }
/* UAT (S1.21.0): fixed note on every page of a test store */
.uat-band { background: #FFDF85; color: #634E12; text-align: center; font-weight: 700; font-size: .85rem; padding: 5px 12px; letter-spacing: .02em; }
.alert code { word-break: break-all; }

ul.findings { list-style: none; padding: 0; margin: 10px 0 0; }
ul.findings li { padding: 8px 12px; border-left: 4px solid var(--tun-gray-200); background: #fff; margin-bottom: 6px; font-size: .88rem; }
ul.findings li.error { border-color: var(--tun-coral); }
ul.findings li.warning { border-color: var(--tun-yellow); }
ul.findings li.info { border-color: var(--tun-blue); }
ul.findings .code { font-weight: 700; color: var(--tun-navy); margin-right: 6px; }
ul.findings .hint { color: var(--tun-slate); display: block; margin-top: 2px; }

/* navy band, the white logo (Brand Book p. 13) */
footer.site {
  background: var(--tun-navy); color: var(--tun-on-navy);
  font-size: .82rem; display: flex; gap: 16px 20px; align-items: center; flex-wrap: wrap;
  padding: 22px max(20px, calc((100% - 1240px) / 2));
}
footer.site img { height: 26px; display: block; }
footer.site .spacer { margin-inline-start: auto; }
footer.site a { color: #fff; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site .btn.secondary { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
footer.site .btn.secondary:hover { box-shadow: inset 0 0 0 1px #fff; text-decoration: none; }
/* bot trap on the access request form: off screen, not display:none (some bots skip hidden fields) */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.token-reveal {
  font-family: Consolas, monospace; background: var(--tun-navy); color: var(--tun-green);
  padding: 10px 14px; border-radius: 6px; word-break: break-all; font-size: .95rem;
}

/* navy block; the flow lines of the 2026 template only as an accent in the free space on the right,
   never behind text (Brand Book p. 26): from 900px down they are left out */
.hero {
  background: var(--tun-navy) url("/img/flowlines-title.svg") no-repeat right -110px center / 560px auto;
  color: #fff; border-radius: 8px; padding: 40px 36px 34px; margin-bottom: 24px; position: relative;
  overflow: visible;   /* the Windows-warning bubble below the download button reaches out of the block */
}
[dir=rtl] .hero { background-position: left -110px center; }
.hero > * { max-width: 600px; position: relative; }
.hero h1 { color: #fff; font-size: 2.5rem; margin-bottom: 10px; }
.hero p { color: var(--tun-on-navy); }
.hero .eyebrow { margin: 0 0 12px; font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--tun-blue); }
.hero .hero-lockup { display: block; height: 38px; margin: 26px 0 0; }
.hero-facts { display: flex; gap: 14px 30px; flex-wrap: wrap; margin-top: 26px; padding: 0; list-style: none; }
.hero-facts li { font-size: .85rem; color: var(--tun-on-navy); }
.hero-facts b { display: block; font-weight: 300; font-size: 1.9rem; color: #fff; line-height: 1.1; }
.hero img.product { position: absolute; right: 28px; top: 24px; height: 84px; }
@media (max-width: 1180px) { .hero { background-image: none; } }
@media (max-width: 700px) { .hero img.product { display: none; } }

pre.code {
  background: var(--tun-navy); color: #fff; padding: 12px 14px; border-radius: 6px;
  font-family: Consolas, "Cascadia Mono", monospace; font-size: .85rem;
  white-space: pre-wrap; word-break: break-all;
}
.table-wrap { overflow-x: auto; max-width: 100%; }
/* tables (S1.4.1): badges, buttons and dates never break inside; a cell with several
   controls wraps them as a group; the last column (actions) stays as narrow as it can */
td .badge, td .btn, td.nowrap, th.nowrap { white-space: nowrap; }
td .cell-actions { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin: 0; }
td.actions { width: 1%; white-space: nowrap; text-align: end; }
td .pid { color: var(--tun-slate); font-size: .8rem; overflow-wrap: anywhere; }
td.wrap { overflow-wrap: anywhere; }

/* ---- phones and small tablets ------------------------------------------------ */
.nav-toggle { display: none; }
.chip { text-decoration: none; }
@media (max-width: 760px) {
  header.site .bar { padding: 10px 16px; gap: 12px; flex-wrap: nowrap; }
  header.site img.logo { height: 26px; }
  header.site .title { font-size: .95rem; }
  header.site .title { padding-inline-start: 12px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-inline-start: auto; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 8px;
    background: var(--tun-gray-150); cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--tun-navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
  header.site.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  header.site.open .nav-toggle span:nth-child(2) { opacity: 0; }
  header.site.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  header.site nav { display: none; }
  header.site.open nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 64px; z-index: 50;
    background: #fff; padding: 6px 16px 16px; box-shadow: 0 10px 24px rgba(0, 40, 84, .18); border-bottom: 1px solid var(--tun-gray-200);
  }
  header.site { position: relative; }
  header.site.open nav a { padding: 12px 4px; font-size: 1rem; border-bottom: 1px solid var(--tun-gray-200); }
  header.site.open nav form, header.site.open nav select { margin-top: 12px; }
  header.site.open nav form .btn { width: 100%; padding: 12px; }
  header.site.open nav select { width: 100% !important; padding: 10px !important; font-size: 1rem !important; }
  header.site.open nav img { display: none; }
  header.site.open nav .nav-drop > summary, header.site.open nav .user-menu > summary {
    display: flex; justify-content: space-between; padding: 12px 4px; font-size: 1rem; border-radius: 0; border-bottom: 1px solid var(--tun-gray-200);
  }
  header.site.open nav .user-menu summary:hover, header.site.open nav .user-menu[open] summary { background: none; }
  header.site.open nav .user-menu .who { display: inline; max-width: none; }
  header.site.open nav .user-menu .initial { display: none; }
  header.site.open nav .user-pop { position: static; min-width: 0; margin: 4px 0 8px; padding: 4px 0 4px 12px; border: 0; border-radius: 0; box-shadow: none; background: none; }
  [dir=rtl] header.site.open nav .user-pop { padding: 4px 12px 4px 0; }
  header.site.open nav .user-pop a { color: var(--tun-navy); padding: 10px 4px; border-bottom: 0; }
  header.site.open nav .user-pop a.active { background: var(--tun-gray-150); }
  header.site.open nav .user-pop label { color: var(--tun-slate); padding: 6px 4px; }
  header.site.open nav .user-pop form { padding: 6px 4px; }
  header.site.open nav .user-pop hr { border-top-color: var(--tun-gray-200); }

  main { padding: 18px 14px 48px; }
  h1 { font-size: 1.4rem; }
  .card { padding: 14px; }

  /* 16px inputs keep iOS from zooming in; larger tap targets */
  input[type=text], input[type=email], input[type=url], input[type=password], input[type=search], input[type=file], textarea, select { font-size: 16px; }
  .btn { padding: 11px 18px; }
  .btn.small { padding: 9px 14px; font-size: .88rem; }
  .chip { padding: 8px 14px; }

  /* tables marked .rtable turn into one card per row; td[data-label] shows its column name */
  table.rtable, table.rtable tbody, table.rtable tr, table.rtable td { display: block; width: 100%; }
  table.rtable { background: transparent; }
  table.rtable tr.rhead { display: none; }
  table.rtable tr {
    background: #fff; border: 1px solid var(--tun-gray-200); border-radius: 10px;
    margin-bottom: 10px; padding: 6px 4px;
  }
  table.rtable tr:hover td { background: transparent; }
  table.rtable td { border: 0; padding: 6px 10px; overflow-wrap: anywhere; min-width: 0; }
  table.rtable td[data-label]::before {
    content: attr(data-label); display: block; font-size: .72rem; font-weight: 700;
    color: var(--tun-slate); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px;
  }
  table.rtable td[data-label]:not(.rblock) { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; text-align: right; }
  table.rtable td[data-label]:not(.rblock)::before { margin: 0; flex: 0 0 auto; text-align: start; }
  table.rtable td.rtitle { font-size: 1rem; text-align: start !important; display: block !important; }
  table.rtable td.rtitle::before { display: none !important; }
  table.rtable td.actions { text-align: start !important; display: block !important; padding-top: 10px; }
  table.rtable td.actions::before { display: none !important; }
  table.rtable td.actions > div { justify-content: flex-start !important; }
  table.rtable tr.rsub { margin-top: -10px; border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
  .table-wrap { overflow-x: visible; }
}

.smartscreen-hint { margin: 12px 0 0; color: var(--tun-blue-light); font-size: .82rem; max-width: 720px; }
.smartscreen-hint b { color: #fff; }
.pkg-actions { margin-top: 6px; }
.client-hint { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 6px; background: #FFDF85; color: #634E12; font-size: .82rem; }
.client-hint[hidden] { display: none; }
.client-hint a { color: var(--tun-navy); font-weight: 700; }
.source-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 12px; font-size: .88rem; }
.source-upload { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-inline-start: auto; }
.source-upload input[type=file] { width: auto; max-width: 260px; padding: 5px; font-size: .82rem; }

/* info bubble next to the client download */
.tip { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.tip-icon {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--tun-blue-light);
  background: transparent; color: var(--tun-blue-light); font: 700 .8rem/1 "Red Hat Display", Arial, sans-serif;
  cursor: help; padding: 0; display: inline-flex; align-items: center; justify-content: center;
}
.tip-icon:hover, .tip-icon:focus { background: var(--tun-blue-light); color: var(--tun-navy); outline: none; }
/* on light ground (add-on page, cards) the light blue would be too faint */
.card .tip-icon { border-color: var(--tun-blue-ink); color: var(--tun-blue-ink); }
.card .tip-icon:hover, .card .tip-icon:focus { background: var(--tun-blue-ink); color: #fff; }
.pkg-top .name { display: block; }
.tip-bubble {
  position: absolute; left: 0; top: calc(100% + 12px); z-index: 30; width: min(440px, 86vw);
  background: #fff; color: var(--tun-ink); border-radius: 10px; padding: 12px 14px; font-size: .84rem; line-height: 1.45;
  box-shadow: 0 10px 28px rgba(0, 20, 50, .3); opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.tip-bubble b { display: block; color: var(--tun-navy); margin-bottom: 4px; }
.tip-bubble::after {
  content: ""; position: absolute; left: 28px; bottom: 100%; border: 8px solid transparent; border-bottom-color: #fff;
}
.tip:hover .tip-bubble, .tip:focus-within .tip-bubble, .tip.open .tip-bubble { opacity: 1; visibility: visible; transform: none; }

/* phones and non-Windows devices: no client download, no install buttons */
.mobile-only, .mobile-only-inline { display: none; }
@media (max-width: 760px) {
  .desktop-only, .win-only { display: none !important; }
  .desktop-only-inline { display: none; }
  .mobile-only { display: block; }
  .mobile-only-inline { display: inline; }
  .hero { padding: 24px 18px 22px; margin-bottom: 16px; }
  .hero h1 { font-size: 1.75rem; }
  .hero-facts b { font-size: 1.55rem; }
  h1 { font-size: 1.7rem; }
}
html.no-win .win-only { display: none !important; }
html.mobile .desktop-only { display: none !important; }
html.mobile .desktop-only-inline { display: none; }
html.mobile .mobile-only { display: block; }
html.mobile .mobile-only-inline { display: inline; }

/* ---- admin reports (S0.9.0) ---- */
.muted { color: var(--tun-slate); }
.small { font-size: .85rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin-bottom: 8px; }
.kpi { background: #fff; border: 1px solid var(--tun-gray-200); border-radius: 10px; padding: 14px 16px; border-top: 3px solid var(--tun-blue); }
.kpi b { display: block; font-size: 1.7rem; color: var(--tun-navy); line-height: 1.1; }
.kpi span { color: var(--tun-slate); font-size: .85rem; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 160px; padding-top: 8px; border-bottom: 1px solid var(--tun-gray-200); }
.bar { flex: 1; height: 100%; position: relative; min-width: 2px; }
.bar i { position: absolute; bottom: 0; left: 0; right: 0; border-radius: 2px 2px 0 0; }
.bar i.c { background: var(--tun-blue-light); }
.bar i.d { background: var(--tun-navy); left: 20%; right: 20%; }
.legend { color: var(--tun-slate); margin: 8px 0 0; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: -1px; }
.sw.d { background: var(--tun-navy); margin-left: 0; }
.sw.c { background: var(--tun-blue-light); }
.share { display: grid; grid-template-columns: minmax(90px, 1.3fr) minmax(50px, 1fr) auto; gap: 10px; align-items: center; margin: 6px 0; font-size: .9rem; }
.share .track { background: var(--tun-gray-150); border-radius: 4px; height: 10px; overflow: hidden; }
.share .track i { display: block; height: 100%; background: var(--tun-accent-pdf); }
details.small summary { cursor: pointer; color: var(--tun-slate); }

.kpi.accent { border-top-color: var(--tun-green); }
.report-filter .chips { margin-bottom: 12px; }
.filter-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filter-form label { display: flex; flex-direction: column; font-size: .8rem; color: var(--tun-slate); gap: 3px; }
.filter-form input, .filter-form select { width: auto; min-width: 140px; }
.filter-form .spacer { flex: 1; }
.bar em { position: absolute; left: -4px; right: -4px; margin-bottom: 2px; text-align: center; font-style: normal; font-size: .65rem; color: var(--tun-navy); }
.bar-axis { display: flex; justify-content: space-between; margin-top: 4px; }
.print-only { display: none !important; }
.print-toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--tun-blue-light);
                 color: var(--tun-navy); padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: .9rem; }
.report-head { gap: 20px; align-items: center; border-bottom: 3px solid; border-image: var(--tun-accent-pdf) 1;
               padding-bottom: 12px; margin-bottom: 18px; }
.report-head img { height: 34px; }
html.report-print .print-only { display: flex !important; }
html.report-print body { background: #fff; }
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  html, body { background: #fff !important; }
  body { display: block; min-height: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  header.site, footer, .no-print, .nav-toggle { display: none !important; }
  .print-only { display: flex !important; }
  main { max-width: none; padding: 0; }
  .card, .kpi, table tr { break-inside: avoid; }
  .card { box-shadow: none; border: 1px solid var(--tun-gray-200); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  a { color: inherit; text-decoration: none; }
  .table-wrap { overflow: visible; }
}

.trend { display: inline-block; margin-top: 6px; font-size: .78rem; font-weight: 600; padding: 1px 7px; border-radius: 10px; }
.kpi .trend { display: table; }
.trend.up { background: #B6FFDE; color: #016839; }
.trend.down { background: #FFBDBD; color: #421F1F; }
.trend.flat { background: var(--tun-gray-150); color: var(--tun-slate); }
.trend.new { background: var(--tun-blue-light); color: var(--tun-navy); }
table.ranking td { vertical-align: top; }
table.ranking td.rank b { font-size: 1.2rem; color: var(--tun-navy); }
table.ranking td.rank small { display: block; font-size: .72rem; }
table.ranking td.rank small.up { color: #016839; }
table.ranking td.rank small.down { color: #B3261E; }
.track.mini { display: inline-block; width: 60px; height: 8px; background: var(--tun-gray-150); border-radius: 4px; overflow: hidden; vertical-align: middle; }
.track.mini i { display: block; height: 100%; background: var(--tun-accent-pdf); }
svg.spark { width: 110px; height: 26px; }
svg.spark polyline { fill: none; stroke: var(--tun-blue); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.share > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* report sections with a navigation on the left and paged lists (S0.17.0) */
.report-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.report-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; background: #fff;
              border: 1px solid var(--tun-gray-200); border-radius: 10px; padding: 8px; }
.report-nav a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--tun-navy); text-decoration: none; font-size: .92rem; }
.report-nav a:hover { background: var(--tun-gray-150); }
.report-nav a.active { background: var(--tun-navy); color: #fff; font-weight: 600; }
.report-main { min-width: 0; }
.pager { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between;
         margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--tun-gray-200); }
.pager-sizes a, .pager-sizes b { margin-left: 6px; }
.pager[hidden] { display: none; }
.pager-sizes b { color: var(--tun-navy); }
.pager-pages { display: flex; gap: 10px; align-items: center; }
/* the edition note under the start page title (S1.17.2) */
.hero-edition { margin: -4px 0 10px; font-weight: 500; color: var(--tun-ok); }   /* S2.0.0: the green accent as text on white was 1.6:1 */

/* start page highlights (S1.16.0): frame in the PDF gradient of the brand book, a soft glow, a light sweep */
.pkg.featured { position: relative; overflow: hidden; border: 2px solid transparent;
  background: linear-gradient(var(--tun-gray-100), var(--tun-gray-100)) padding-box, linear-gradient(135deg, #00EB86, #00A0FB) border-box;
  box-shadow: 0 8px 26px rgba(0, 160, 251, .22), 0 0 0 4px rgba(0, 235, 134, .08); }
.pkg.featured::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%); animation: pp-sweep 7s ease-in-out 1.5s infinite; }
@keyframes pp-sweep { 0% { transform: translateX(-120%); } 18%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .pkg.featured::after { animation: none; display: none; } }
.badge.highlight { align-self: flex-start; background: linear-gradient(90deg, #00EB86, #00A0FB); color: var(--tun-navy);
  font-weight: 700; letter-spacing: .02em; }
.hl-form { display: inline; margin: 0; }
.hl-toggle.on { color: var(--tun-navy); border-color: #00A0FB; }
.hl-toggle span { color: var(--tun-blue-ink); }

/* numbered catalog pages on the start page (S1.14.1) */
.pkg-pager { justify-content: center; flex-direction: column; gap: 8px; }
.pkg-pager .pager-pages { flex-wrap: wrap; justify-content: center; }
.page-nums { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: center; }
.page-num { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--tun-gray-200);
  background: #fff; color: var(--tun-navy); font: inherit; font-weight: 600; cursor: pointer; }
.page-num:hover { border-color: var(--tun-blue); }
.page-num.active { background: var(--tun-navy); border-color: var(--tun-navy); color: #fff; cursor: default; }
.page-gap { padding: 0 4px; color: var(--tun-slate); }
@media (max-width: 900px) {
  .report-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .report-nav { position: static; flex-direction: row; overflow-x: auto; white-space: nowrap; }
}
html.report-print .report-layout { display: block; }
html.report-print .report-nav { display: none; }
@media print {
  .report-layout { display: block; }
}

/* ---- shared add-on page /a/{slug} (S0.10.0) ---- */
.addon-page { max-width: 980px; margin: 0 auto; }
.addon-hero { display: flex; gap: 28px; align-items: flex-start; background: #fff; border: 0; padding: 8px 0 4px; }
.addon-icon { width: 112px; height: 112px; border-radius: 18px; object-fit: contain; background: var(--tun-gray-100); padding: 12px; flex: none; }
.addon-head h1 { margin: 0 0 8px; font-size: 2.5rem; }
.addon-head .meta { color: var(--tun-slate); font-size: .88rem; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.addon-desc { font-size: 1.05rem; line-height: 1.5; margin: 14px 0 16px; }
.addon-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.addon-grid { margin: 16px 0; }
.addon-grid h2 { margin-top: 0; font-size: 1.05rem; }
ol.steps { padding-left: 20px; margin: 0 0 14px; line-height: 1.6; }
.share-row { display: flex; gap: 8px; }
.share-row input { flex: 1; min-width: 0; font-size: .85rem; }
.pkg-actions .btn + .btn { margin-left: 6px; }
/* S1.30.0: buttons wrap with a gap (narrow cards); the manual ZIP is the quiet one of them */
.pkg-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pkg-actions .btn + .btn { margin-left: 0; }
.pkg-actions .client-hint { flex-basis: 100%; }
.btn.manual-link { font-weight: 500; background: transparent; border-color: var(--tun-gray-200, #d5dbe3); color: var(--tun-slate); }
.btn.manual-link:hover, .btn.manual-link:focus-visible { color: var(--tun-navy); border-color: var(--tun-blue); }
.btn.manual-link .dl { font-weight: 700; margin-inline-end: 4px; }
@media (max-width: 760px) {
  .addon-hero { flex-direction: column; gap: 12px; }
  .addon-icon { width: 72px; height: 72px; padding: 8px; }
  .addon-head h1 { font-size: 1.9rem; }
}

/* ---- ratings and screenshots (S0.11.0) ---- */
.stars { display: inline-flex; gap: 5px; align-items: center; font-size: .85rem; color: var(--tun-slate); }
.stars i { font-style: normal; letter-spacing: 1px; font-size: 1rem;
           background: linear-gradient(90deg, var(--tun-yellow) var(--p), var(--tun-gray-blue) var(--p));
           -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars b { color: var(--tun-navy); }
.card.pkg .stars { margin-top: -2px; }
.shot-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.shot { flex: none; width: 280px; border: 1px solid var(--tun-gray-200); border-radius: 8px; background: #fff; padding: 0;
        cursor: zoom-in; text-align: start; scroll-snap-align: start; overflow: hidden; }
.shot img { display: block; width: 100%; height: 175px; object-fit: cover; background: var(--tun-gray-150); }
.shot span { display: block; padding: 8px 10px; font-size: .82rem; color: var(--tun-slate); }
.shot:hover { border-color: var(--tun-blue); }
dialog.shot-view { border: 0; border-radius: 10px; padding: 12px; max-width: min(1280px, 94vw); }
dialog.shot-view::backdrop { background: rgba(0, 18, 59, .75); }
dialog.shot-view img { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; }
dialog.shot-view p { margin: 8px 4px 0; color: var(--tun-slate); }
dialog.shot-view form { text-align: right; margin-bottom: 6px; }

/* AI assistance (S0.12.0) */
.ai-box { border: 1px solid var(--tun-blue-light); border-left: 4px solid var(--tun-blue); border-radius: 6px; padding: 8px 12px; margin: 8px 0; background: rgba(0, 160, 251, .05); }
.ai-box p { margin: 6px 0; }
.ai-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ai-concerns { list-style: none; padding-inline-start: 0; }
.ai-concerns li { margin: 4px 0; }
.ai-search { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.ai-search input { flex: 1; min-width: 220px; }
.ai-results { margin: 6px 0 16px; }
.ai-results li { margin: 4px 0; }

/* Customer deliveries (S0.14.0) */
.delivery { border-top: 1px solid var(--tun-gray-200); padding: 10px 0; }
.delivery:first-of-type { border-top: 0; }
.stage-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-top: 8px; }
.stage-form > div { min-width: 150px; }
.cust-code { font-size: 1rem; letter-spacing: .04em; user-select: all; }

/* In-page confirmation dialog (data-confirm), never a browser popup */
dialog.pp-confirm { border: none; border-radius: 12px; padding: 22px 24px 18px; max-width: 460px; width: calc(100% - 32px);
  box-shadow: 0 18px 48px rgba(0, 40, 84, .28); color: var(--tun-navy); font: inherit; }
dialog.pp-confirm::backdrop { background: rgba(0, 40, 84, .45); }
dialog.pp-confirm p { margin: 0 0 18px; line-height: 1.5; }
.pp-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* add-on choice of deliveries and templates (S1.14.0): searchable, paged, several at a time */
dialog.pp-picker { border: none; border-radius: 12px; padding: 20px 22px 16px; max-width: 760px; width: calc(100% - 32px);
  box-shadow: 0 18px 48px rgba(0, 40, 84, .28); color: var(--tun-navy); font: inherit; }
dialog.pp-picker::backdrop { background: rgba(0, 40, 84, .45); }
.picker-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 10px 0; }
.picker-list { max-height: 52vh; overflow: auto; border-top: 1px solid var(--tun-gray-200); }
.picker-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--tun-gray-200); font-weight: 400; margin: 0; }
.picker-list .picker-row { cursor: pointer; }
.picker-row.is-present { color: var(--tun-slate); cursor: default; }
.picker-name { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.picker-slot:empty { display: none; }
.picker-sel { margin-bottom: 8px; }
.picker-sel .picker-row:first-child { border-top: 1px solid var(--tun-gray-200); }
.picker-foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 12px; }
.picker-foot .pp-confirm-actions { margin-inline-start: auto; }
@media (max-width: 600px) { .picker-row { flex-wrap: wrap; } .picker-name { flex-basis: calc(100% - 40px); } }

/* problem report queue (S1.1.0) */
.nav-count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 5px; border-radius: 999px; background: var(--tun-coral); color: #fff; font-size: .72rem; font-weight: 700; line-height: 18px; text-align: center; vertical-align: 1px; }
.cap { display: inline-block; } .cap::first-letter { text-transform: uppercase; }

/* right-to-left (Arabic, S1.2.0): logical directions above do most of it */
[dir=rtl] body { font-family: "Red Hat Display", Tahoma, Arial, sans-serif; }
[dir=rtl] code, [dir=rtl] pre, [dir=rtl] .code { direction: ltr; unicode-bidi: embed; }
[dir=rtl] .report-nav a .muted[style*="float:right"] { float: left !important; }
[dir=rtl] input[type=email], [dir=rtl] input[type=url] { direction: ltr; }

/* ---- new navigation (S1.5.0 preview): sidebar after signing in -------------------- */
header.shell-top .bar { max-width: none; padding: 10px 20px; gap: 14px; }
header.shell-top .brand { display: flex; align-items: center; gap: 16px; color: var(--tun-navy); text-decoration: none; }
header.shell-top .spacer { flex: 1; }
header.shell-top .top-link { color: var(--tun-navy); text-decoration: none; font-weight: 500; font-size: .92rem; }
header.shell-top .top-link:hover { color: var(--tun-blue-ink); text-decoration: underline; }
header.shell-top .shell-toggle { display: none; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--tun-navy); padding: 4px 8px; border-radius: 999px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover, .user-menu[open] summary { background: var(--tun-gray-150); }
.user-menu summary img, .user-menu .initial { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid var(--tun-gray-200); }
.user-menu .initial { display: inline-flex; align-items: center; justify-content: center; background: var(--tun-navy); color: #fff; font-weight: 700; text-transform: uppercase; }
.user-menu .who { font-size: .9rem; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-pop { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 70; min-width: 240px; background: #fff; color: var(--tun-ink);
            border: 1px solid var(--tun-gray-200); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,20,50,.18); padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.user-pop a { padding: 8px 10px; border-radius: 6px; color: var(--tun-navy); text-decoration: none; font-size: .92rem; }
.user-pop a:hover { background: var(--tun-gray-150); }
.user-pop label { padding: 6px 10px; display: flex; flex-direction: column; gap: 4px; color: var(--tun-slate); }
.user-pop select { width: 100%; }
.user-pop form { padding: 6px 10px 4px; margin: 0; }
.user-pop form .btn { width: 100%; }
/* S1.18.0: area menus in the classic top bar (Deliveries, Settings, Help) and the account menu there */
.nav-drop { position: relative; }
.nav-drop > summary { list-style: none; display: inline-flex; align-items: center; gap: 2px; cursor: pointer; color: var(--tun-navy); font-weight: 500; font-size: .9rem; }
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after { content: ""; width: 6px; height: 6px; margin-inline-start: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.nav-drop > summary:hover, .nav-drop[open] > summary { color: var(--tun-blue-ink); }
.nav-drop .drop-pop { inset-inline-end: auto; inset-inline-start: -10px; top: calc(100% + 12px); min-width: 230px; }
.nav-drop.end .drop-pop { inset-inline-start: auto; inset-inline-end: -10px; }
.user-pop hr { border: 0; border-top: 1px solid var(--tun-gray-200); margin: 4px 6px; }
header.site nav .user-pop a { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--tun-navy); font-size: .92rem; }
header.site nav .user-pop a:hover { color: var(--tun-navy); }
header.site nav .user-pop a.active { background: var(--tun-gray-150); font-weight: 600; box-shadow: inset 3px 0 0 var(--tun-blue); }
[dir=rtl] header.site nav .user-pop a.active { box-shadow: inset -3px 0 0 var(--tun-blue); }
header.site nav .user-pop .nav-count { margin: 0; }
header.site nav > a.here, header.site nav .nav-drop.here > summary { text-decoration: underline; text-decoration-color: var(--tun-blue); text-decoration-thickness: 2px; text-underline-offset: 7px; }
header.site:not(.shell-top) .user-menu .who { display: none; }
header.site:not(.shell-top) .user-menu summary { padding: 2px; }
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100vh - 120px); }
.side-nav { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; padding: 18px 10px 28px;
            border-inline-end: 1px solid var(--tun-gray-200); background: #fff; display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 6px;
              color: var(--tun-navy); text-decoration: none; font-size: .92rem; }
.side-nav a:hover { background: var(--tun-gray-150); }
.side-nav a.active { background: var(--tun-navy); color: #fff; font-weight: 600; }
.side-nav a.open { font-weight: 600; }
.side-nav a.sub { padding-inline-start: 26px; font-size: .86rem; color: var(--tun-slate); }
.side-nav a.sub.active { background: var(--tun-gray-150); color: var(--tun-navy); box-shadow: inset 3px 0 0 var(--tun-blue); font-weight: 600; }
[dir=rtl] .side-nav a.sub.active { box-shadow: inset -3px 0 0 var(--tun-blue); }
.side-nav .nav-count { margin: 0; }
.side-head { margin: 16px 12px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tun-slate); }
.shell > main.shell-main { max-width: 1280px; width: 100%; margin: 0 auto; padding: 28px 28px 60px; min-width: 0; }
/* pages with their own section list: the sidebar carries it */
.with-shell .report-layout.side-carried { display: block; }
.with-shell .report-layout.side-carried > .report-nav { display: none; }
/* start page */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 18px 0 22px; }
.tile { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--tun-gray-200); border-radius: 10px;
        padding: 16px 18px; color: var(--tun-ink); text-decoration: none; min-width: 0; transition: box-shadow .15s, border-color .15s; }
.tile:hover { border-color: var(--tun-blue); box-shadow: 0 6px 18px rgba(0,40,84,.10); }
.tile-label { font-size: .8rem; font-weight: 700; color: var(--tun-slate); text-transform: uppercase; letter-spacing: .03em; }
.tile-value { font-size: 2rem; color: var(--tun-navy); line-height: 1.15; }
.tile-note { font-size: .82rem; color: var(--tun-slate); overflow-wrap: anywhere; }
.tile.attn { border-color: var(--tun-coral); box-shadow: inset 4px 0 0 var(--tun-coral); }
[dir=rtl] .tile.attn { box-shadow: inset -4px 0 0 var(--tun-coral); }
.start-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: start; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.start-list { list-style: none; margin: 0 0 8px; padding: 0; }
.start-list li { padding: 8px 0; border-bottom: 1px solid var(--tun-gray-200); }
.start-snippet { color: var(--tun-slate); overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  header.shell-top .shell-toggle { display: flex; }
  header.shell-top .who { display: none; }
  header.shell-top { position: relative; z-index: 90; }
  .side-nav { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: 270px; max-height: none; z-index: 80;
              align-self: stretch; padding-top: 84px;
              transform: translateX(-100%); transition: transform .2s; visibility: hidden; }
  [dir=rtl] .side-nav { transform: translateX(100%); }
  .shell.side-open .side-nav { transform: none; visibility: visible; box-shadow: 0 0 30px rgba(0,20,50,.25); }
  header.shell-top .title { white-space: nowrap; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .tile { padding: 12px 14px; }
  .tile-value { font-size: 1.6rem; }
  .start-grid { grid-template-columns: minmax(0, 1fr); }
  .shell > main.shell-main { padding: 18px 14px 48px; }
}
@media (max-width: 520px) { header.shell-top .title { display: none; } }
@media print { .side-nav, header.shell-top { display: none !important; } .shell { display: block; } }
/* S1.19.0: "Connects to" on the add-on page and the declared connections in the catalog entry editor */
.connections .conn-providers { margin: 0 0 10px; }
.conn-list { list-style: none; margin: 0 0 10px; padding: 0; }
.conn-list li { padding: 8px 0; border-bottom: 1px solid var(--tun-gray-200); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.conn-list li:last-child { border-bottom: 0; }
.conn-list .conn-name { font-weight: 600; color: var(--tun-navy); }
.conn-list code, .conn-declared code { font-size: .82rem; overflow-wrap: anywhere; }
.conn-list .conn-data { flex-basis: 100%; color: var(--tun-slate); font-size: .86rem; overflow-wrap: anywhere; }
.conn-declared { background: var(--tun-gray-150); border-radius: 8px; padding: 10px 14px; margin: 0 0 10px; font-size: .9rem; }
.conn-declared ul { margin: 6px 0 0; padding-inline-start: 18px; }
