
    :root {
      --milan-red: #fb090b;
      --milan-dark-red: #9b0000;
      --milan-black: #050505;
      --milan-charcoal: #141414;
      --milan-grey: #232323;
      --milan-white: #f7f7f7;
      --milan-gold: #c8a44d;
      --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
      --radius: 22px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      -webkit-text-size-adjust: 100%;
    }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: Arial, Helvetica, sans-serif;
      color: var(--milan-white);
      background:
        radial-gradient(circle at top left, rgba(251, 9, 11, 0.38), transparent 34%),
        linear-gradient(135deg, #000 0%, #151515 45%, #000 100%);
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      background:
        repeating-linear-gradient(
          90deg,
          rgba(251, 9, 11, 0.15) 0px,
          rgba(251, 9, 11, 0.15) 54px,
          rgba(0, 0, 0, 0.18) 54px,
          rgba(0, 0, 0, 0.18) 108px
        );
      opacity: 0.22;
      pointer-events: none;
    }

    .page {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
      padding: 38px 0 48px;
      position: relative;
      z-index: 1;
    }

    header {
      display: grid;
      grid-template-columns: 92px minmax(0, 1fr) 92px;
      align-items: center;
      gap: 26px;
      margin-bottom: 26px;
      padding: 26px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: var(--radius);
      background: rgba(5, 5, 5, 0.72);
      box-shadow: var(--shadow);
      backdrop-filter: blur(10px);
    }

    .crest,
    .tag {
      width: 82px;
      height: 82px;
      border-radius: 50%;
      border: 3px solid var(--milan-gold);
      box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.04), 0 14px 30px rgba(251, 9, 11, 0.18);
      background: #000;
    }

    .crest {
      overflow: hidden;
      justify-self: start;
    }

    .crest img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      object-position: center 26%;
    }

    .tag {
      justify-self: end;
      color: var(--milan-gold);
      text-decoration: none;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.78rem;
      font-weight: 900;
      letter-spacing: 0.3px;
      background:
        radial-gradient(circle at 35% 25%, rgba(251, 9, 11, 0.28), transparent 36%),
        #000;
    }

    .title-wrap {
      text-align: center;
      min-width: 0;
    }

    h1 {
      margin: 0;
      font-size: clamp(2rem, 4.1vw, 4.4rem);
      line-height: 0.98;
      text-transform: uppercase;
      letter-spacing: -1.6px;
      white-space: nowrap;
    }

    .subtitle {
      margin: 12px 0 0;
      color: rgba(247, 247, 247, 0.72);
      font-size: 1rem;
    }

    .folders {
      display: grid;
      gap: 16px;
    }

    .folder {
      border-radius: var(--radius);
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(10, 10, 10, 0.78);
      box-shadow: var(--shadow);
      padding: 0;
      overflow: hidden;
      backdrop-filter: blur(10px);
    }

    .folder summary {
      cursor: pointer;
      list-style: none;
      padding: 20px 22px;
      background: linear-gradient(180deg, var(--milan-red), var(--milan-dark-red));
      color: var(--milan-white);
      font-size: 1rem;
      font-weight: 900;
      text-transform: none;
      user-select: none;
    }

    .folder summary::-webkit-details-marker {
      display: none;
    }

    .folder summary::after {
      content: "Åbn/luk";
      float: right;
      font-size: 0.78rem;
      color: rgba(255, 255, 255, 0.72);
      margin-top: 2px;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      padding: 22px;
    }

    .link-card {
      display: block;
      min-width: 0;
      padding: 18px;
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: linear-gradient(180deg, #252525, #090909);
      color: var(--milan-white);
      text-decoration: none;
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
      transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
    }

    .link-card:hover,
    .link-card:focus-visible {
      transform: translateY(-2px);
      border-color: rgba(251, 9, 11, 0.75);
      outline: none;
    }

    .link-card strong {
      display: block;
      font-size: 1rem;
      margin-bottom: 8px;
    }

    .link-card span {
      display: block;
      color: rgba(247, 247, 247, 0.68);
      font-size: 0.88rem;
    }

    .sheet-box {
      padding: 22px;
    }

    .input-row {
      display: grid;
      grid-template-columns: 1fr auto auto;
      gap: 12px;
    }

    input {
      min-width: 0;
      padding: 15px 16px;
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, 0.16);
      background: #090909;
      color: var(--milan-white);
      font-size: 1rem;
    }

    .action {
      border: 0;
      border-radius: 14px;
      padding: 15px 18px;
      background: linear-gradient(180deg, var(--milan-red), var(--milan-dark-red));
      color: #fff;
      font-weight: 900;
      cursor: pointer;
    }

    .action.secondary {
      background: linear-gradient(180deg, #333, #111);
      border: 1px solid rgba(255, 255, 255, 0.14);
    }

    .status {
      margin-top: 12px;
      color: rgba(247, 247, 247, 0.72);
      font-size: 0.92rem;
    }

    footer {
      margin-top: 24px;
      text-align: center;
      color: rgba(247, 247, 247, 0.62);
      font-size: 0.9rem;
    }

    footer a {
      color: var(--milan-gold);
      font-weight: 800;
      text-decoration: none;
    }

    @media (max-width: 980px) {
      h1 {
        font-size: clamp(1.7rem, 4.3vw, 3.2rem);
      }

      .grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 760px) {
      .page {
        width: min(100% - 22px, 1180px);
        padding: 18px 0 34px;
      }

      header {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 22px 18px;
      }

      .crest,
      .tag {
        width: 78px;
        height: 78px;
      }

      h1 {
        white-space: normal;
        font-size: clamp(1.9rem, 8vw, 2.7rem);
        letter-spacing: -1px;
      }

      .subtitle {
        font-size: 0.94rem;
      }

      .grid {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 12px;
      }

      .folder summary {
        padding: 18px;
      }

      .folder summary::after {
        content: "";
      }

      .link-card {
        width: 100%;
        min-height: 74px;
        padding: 18px;
      }

      .input-row {
        grid-template-columns: 1fr;
      }

      .action,
      input {
        width: 100%;
      }
    }
  
    .folder-note {
      margin: 18px 22px 0;
      color: rgba(247, 247, 247, 0.68);
      font-size: 0.92rem;
      line-height: 1.45;
    }

    @media (max-width: 760px) {
      .folder-note {
        margin: 16px 16px 0;
        font-size: 0.88rem;
      }
    }

  
/* v3.3: Compact mobile-first hero. Retains the existing app menu styling. */
header.odds-hero {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 92px;
  align-items: center;
  text-align: left;
  gap: 12px;
  min-height: 110px;
  margin-bottom: 16px;
  padding: 12px 18px;
  background: linear-gradient(110deg, rgba(47, 7, 7, .91) 0%, rgba(12, 8, 8, .91) 75%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
}
header.odds-hero .crest {
  width: 68px;
  height: 68px;
  border: 3px solid var(--milan-gold);
  box-shadow: 0 0 0 2px rgba(0,0,0,.2);
}
header.odds-hero .title-wrap { text-align: left; min-width: 0; }
header.odds-hero .subtitle {
  margin: 0;
  color: rgba(247,247,247,.83);
  font-weight: 400;
  font-size: clamp(.86rem, 2.4vw, 1.25rem);
  line-height: 1.36;
  letter-spacing: -.15px;
}
header.odds-hero .subtitle-line { display: block; }
header.odds-hero .tag {
  width: 88px;
  height: 88px;
  justify-self: end;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 50%;
  box-shadow: none;
}
header.odds-hero .betbot-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
header.odds-hero .betbot-link:focus-visible {
  outline: 3px solid var(--milan-gold);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  header.odds-hero {
    display: grid;
    grid-template-columns: 62px minmax(0,1fr) 84px;
    align-items: center;
    gap: 7px;
    min-height: 100px;
    margin-bottom: 14px;
    padding: 10px 10px;
    text-align: left;
  }
  header.odds-hero .crest { width: 60px; height: 60px; }
  header.odds-hero .tag { width: 82px; height: 82px; }
  header.odds-hero .subtitle {
    font-size: clamp(.72rem, 3.25vw, .97rem);
    line-height: 1.35;
    letter-spacing: -.25px;
  }
}
@media (max-width: 375px) {
  header.odds-hero {
    grid-template-columns: 54px minmax(0,1fr) 74px;
    gap: 6px;
    padding: 10px 8px;
    min-height: 92px;
  }
  header.odds-hero .crest { width: 52px; height: 52px; }
  header.odds-hero .tag { width: 72px; height: 72px; }
  header.odds-hero .subtitle { font-size: clamp(.68rem, 3vw, .79rem); }
}
@media (max-width: 320px) {
  header.odds-hero .subtitle-line:first-child { white-space: normal; }
}


/* v3.5 – Compact coupon summaries, checkbox outcomes, daily snapshot and bottom footer. */
.page {display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;}
.page>footer {margin-top:auto;padding-top:28px;line-height:1.55;}
header.odds-hero {margin-bottom:20px;}
.bet-head-main{display:block;min-width:0;width:100%;}
.bet-head-matches{
 display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
 overflow:hidden;overflow-wrap:anywhere;line-height:1.25;
 font-size:clamp(.97rem,2.4vw,1.12rem);font-weight:750;
}
.bet-head-bookmaker{display:block;font-size:.74rem;line-height:1.35;color:rgba(255,255,255,.82);margin-top:5px;}
.bet-head-bottom{display:flex;gap:6px 12px;align-items:baseline;justify-content:space-between;flex-wrap:wrap;margin-top:8px;}
.bet-head-price{font-size:.87rem;font-weight:650;font-variant-numeric:tabular-nums;}
.bet-status{font-size:.88rem;font-weight:750;}
.bet-status.is-finished{color:#f3dd9b;}
.bet-status.is-open{color:#fff;}
.daily-summary{
 margin:12px 12px 8px;padding:14px 16px;
 background:linear-gradient(160deg, #242424,#141414);border:1px solid #414141;
 border-radius:15px;color:#f4f4f4;
}
.daily-summary h3{margin:0 0 12px;font-size:.94rem;font-weight:750;}
.daily-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.daily-stats>div{min-width:0;}
.daily-label{display:block;min-height:2em;color:#bbb;font-size:.72rem;line-height:1.25;}
.daily-stats strong{display:block;margin-top:5px;font-size:clamp(.9rem,2vw,1.12rem);font-weight:800;font-variant-numeric:tabular-nums;}
.daily-caveat{margin:9px 0 0;color:#a6a6a6;font-size:.67rem;line-height:1.3;}
.outcome .outcome-text{min-width:0;flex:1;line-height:1.4;}
.outcome-form{flex:0 0 auto;gap:8px;}
.outcome-form .result-option{cursor:pointer;display:flex;align-items:center;gap:6px;
 padding:7px 10px;border:1px solid #666;background:#111;border-radius:8px;
 color:#ececec;font-size:.82rem;font-weight:700;user-select:none;min-height:39px;}
.outcome-form input[type="checkbox"]{appearance:auto;-webkit-appearance:checkbox;accent-color:#21ae7a;
 margin:0;padding:0;width:17px;height:17px;flex:0 0 17px;min-width:17px;cursor:pointer;}
.outcome-form .result-option:nth-of-type(2) input{accent-color:#ed3b3b;}
.outcome-form .result-option:has(input:checked){border-color:#52bc94;background:#163025;}
.outcome-form .result-option:nth-of-type(2):has(input:checked){border-color:#e66a6a;background:#3a1717;}
.result-void{font-size:.74rem;color:#c5a95f;align-self:center;}
@media (max-width:760px){
 header.odds-hero{margin-bottom:20px;}
 .page {padding-bottom:max(18px,env(safe-area-inset-bottom));}
 .page>footer{padding-top:25px;}
 .daily-summary{margin:12px 11px 6px;padding:12px 13px;}
 .daily-stats{gap:7px;}
 .daily-stats strong{font-size:clamp(.83rem,3.55vw,1rem);}
 .daily-label{font-size:.67rem;}
 .outcome-form{flex-wrap:nowrap;}
 .outcome-form .result-option{padding:7px 9px;min-height:40px;}
 .bet-head-matches{font-size:1rem;}
 .bet-head-price{font-size:.82rem;}
}
@media (max-width:360px){
 .daily-summary{padding:10px;}
 .daily-stats{gap:4px;}
 .daily-label{font-size:.62rem;}
 .daily-stats strong{font-size:.78rem;}
 .bet-head-bottom{gap:5px;}
 .bet-head-price{font-size:.78rem;}
}

.outcome-save-status{font-size:.7rem;color:#91c8a9;align-self:center;white-space:nowrap;}
.outcome-save-status.has-error{color:#ffb6b6;white-space:normal;}
