/* Exact Objectives module from duty-log-objectives.html (objectives section only) */
/* Exact Objectives module from duty-log-objectives.html (objectives only) */
    .module {
      position: relative;
      overflow: hidden;
      border: 1px solid var(--line-strong);
      border-radius: 2px;
      background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 34%),
        linear-gradient(180deg, var(--panel-raised), var(--panel));
      box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.24),
        inset 0 1px rgba(255, 255, 255, 0.025);
    }
    .module::before {
      position: absolute;
      top: 0;
      right: 0;
      left: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(var(--module-rgb), 0.32), transparent);
      content: "";
      pointer-events: none;
    }
    .module--objectives {
      --module-colour: var(--green);
      --module-rgb: var(--green-rgb);
      padding: 14px;
    }
    .module--objectives .module__header {
      margin-bottom: 10px;
    }
    .module__header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
    }
    .module__heading {
      position: relative;
      min-width: 0;
      padding-left: 12px;
    }
    .module__heading::before {
      position: absolute;
      top: 1px;
      bottom: 1px;
      left: 0;
      width: 4px;
      background: var(--module-colour);
      clip-path: polygon(2px 0, 100% 0, calc(100% - 2px) 100%, 0 100%);
      box-shadow: 0 0 9px rgba(var(--module-rgb), 0.42);
      content: "";
    }
    .module__eyebrow {
      display: block;
      margin-bottom: 2px;
      color: var(--module-colour);
      font-family: Rajdhani, sans-serif;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.18em;
      line-height: 1;
      text-transform: uppercase;
    }
    .module__title {
      margin: 0;
      color: var(--ink);
      font-family: Rajdhani, sans-serif;
      font-size: 19px;
      font-weight: 700;
      letter-spacing: 0.095em;
      line-height: 1;
      text-transform: uppercase;
    }
    .module__meta {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-height: 28px;
      padding: 0 9px;
      border: 1px solid rgba(var(--module-rgb), 0.22);
      border-radius: 3px;
      background: rgba(var(--module-rgb), 0.045);
      color: #9ca6af;
      font-family: Rajdhani, sans-serif;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .module__meta strong {
      color: var(--module-colour);
      font-size: 13px;
    }
    .claim-button,
    .collect-button {
      position: relative;
      isolation: isolate;
      min-height: 34px;
      padding: 0 13px;
      border: 0;
      outline: 0;
      background: rgba(var(--green-rgb), 0.68);
      clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
      color: #06130d;
      cursor: pointer;
      font-family: Rajdhani, sans-serif;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      transition:
        filter 150ms ease,
        transform 150ms var(--ease-out);
    }
    .claim-button::before,
    .collect-button::before {
      position: absolute;
      z-index: -1;
      inset: 1px;
      background: linear-gradient(180deg, #27f59a, #0fbe6e);
      clip-path: inherit;
      content: "";
    }
    .claim-button::after,
    .collect-button::after {
      position: absolute;
      inset: 0;
      background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.4) 48%, transparent 71%);
      content: "";
      opacity: 0;
      transform: translateX(-110%);
    }
    .claim-button:hover,
    .collect-button:hover {
      filter: brightness(1.08) drop-shadow(0 0 7px rgba(var(--green-rgb), 0.24));
    }
    .claim-button:active,
    .collect-button:active {
      transform: translateY(1px);
    }
    .claim-button:focus-visible,
    .collect-button:focus-visible,
    .claim-button:disabled,
    .collect-button:disabled {
      cursor: default;
      filter: none;
    }
    .objective.is-claiming .collect-button::after {
      opacity: 1;
      animation: button-scan 700ms linear infinite;
    }
    .inline-error {
      display: none;
      margin: 7px 0 0;
      color: var(--danger);
      font-size: 10px;
      line-height: 1.35;
    }
    .has-error + .inline-error,
    .objective.has-error .objective__error {
      display: block;
    }
    .has-error {
      border-color: rgba(255, 107, 94, 0.48) !important;
    }
    .objective-list {
      display: grid;
      gap: 2px;
    }
    .objective {
      position: relative;
      min-height: 62px;
      overflow: hidden;
      padding: 9px 10px;
      background: rgba(255, 255, 255, 0.012);
      transition:
        background-color 220ms ease,
        opacity 220ms ease,
        transform 260ms var(--ease-spring);
    }
    .objective__top {
      display: grid;
      /* Fixed CTA column so Save (guest) vs Collect (account) cannot shove reward chips. */
      grid-template-columns: 14px minmax(0, 1fr) 46px;
      align-items: start;
      gap: 6px;
    }
    .objective__status-node {
      display: grid;
      place-items: center;
      width: 14px;
      height: 14px;
      margin-top: 1px;
      border: 1px solid rgba(157, 178, 198, 0.22);
      background: rgba(0, 0, 0, 0.24);
      color: transparent;
      font-size: 8px;
      transition:
        border-color 200ms ease,
        background-color 200ms ease,
        color 200ms ease;
    }
    .objective__status-node i {
      opacity: 0;
      transform: scale(0.72);
      transition: opacity 180ms ease, transform 240ms var(--ease-spring);
    }
    .objective__copy {
      min-width: 0;
    }
    .objective__state {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    .objective__title-row {
      display: flex;
      align-items: center;
      min-width: 0;
      gap: 9px;
      line-height: 1;
    }
    .objective__title {
      position: relative;
      display: block;
      flex: 1 1 auto;
      min-width: 0;
      overflow: hidden;
      color: #e7ebef;
      font-size: 12.5px;
      font-weight: 700;
      white-space: nowrap;
      mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 12px), transparent 100%);
    }

    .objective__title-track {
      display: inline-block;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      will-change: transform;
    }

    .objective__title.is-marquee {
      mask-image: linear-gradient(90deg, transparent 0%, #000 10px, #000 calc(100% - 10px), transparent 100%);
    }

    .objective__title.is-marquee .objective__title-track {
      max-width: none;
      overflow: visible;
      text-overflow: clip;
      padding-right: 12px;
      animation: objective-title-marquee var(--marquee-duration, 2.8s) ease-in-out infinite alternate;
    }

    @keyframes objective-title-marquee {
      0%,
      12% {
        transform: translateX(0);
      }
      88%,
      100% {
        transform: translateX(var(--marquee-shift, 0px));
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .objective__title.is-marquee .objective__title-track {
        animation: none;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-right: 0;
      }

      .objective__title.is-marquee {
        mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 12px), transparent 100%);
      }
    }
    .objective__reward {
      display: inline-flex;
      align-items: center;
      flex: 0 0 auto;
      gap: 4px;
      color: var(--reward-colour);
      font-family: Rajdhani, sans-serif;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.03em;
      line-height: 1;
      white-space: nowrap;
    }
    .objective__reward i {
      display: grid;
      place-items: center;
      width: 10px;
      height: 10px;
      font-size: 9px;
      line-height: 1;
      text-align: center;
    }
    .objective__reward--tags {
      --reward-colour: var(--blue);
    }
    .objective__reward--coins {
      --reward-colour: var(--gold);
    }
    .objective__meta-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 39px;
      align-items: center;
      gap: 8px;
      min-height: 0;
      margin-top: 1px;
      padding-left: 22px;
    }
    .objective__time-label {
      display: inline-flex;
      align-items: center;
      justify-self: start;
      gap: 4px;
      color: var(--timer-colour, #7f8b96);
      font-family: Rajdhani, sans-serif;
      font-size: 9.5px;
      font-weight: 700;
      letter-spacing: 0.08em;
      line-height: 1;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .objective__time-label i {
      flex: 0 0 auto;
      font-size: 8.5px;
      opacity: 0.82;
    }
    .objective[data-urgency="low"] {
      --timer-colour: rgba(var(--green-rgb), 0.8);
    }
    .objective[data-urgency="medium"] {
      --timer-colour: rgba(var(--amber-rgb), 0.88);
    }
    .objective[data-urgency="high"] {
      --timer-colour: rgba(255, 128, 116, 0.9);
    }
    .objective__reward-slot {
      display: grid;
      min-width: 0;
      min-height: 0;
      justify-items: end;
      align-items: start;
      margin-top: -4px;
      margin-right: -4px;
    }
    .objective__reward-slot .collect-button {
      box-sizing: border-box;
      min-width: 46px;
      min-height: 19px;
      padding: 0 8px;
      font-size: 7.5px;
      letter-spacing: 0.08em;
      text-align: center;
      clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
      opacity: 0;
      visibility: hidden;
      transform: translate(4px, -1px) scale(0.94);
      pointer-events: none;
      transition:
        opacity 180ms ease,
        transform 240ms var(--ease-spring),
        visibility 0s linear 180ms;
    }
    .objective__progress-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 39px;
      align-items: center;
      gap: 8px;
      margin-top: 2px;
      padding-left: 22px;
      transition: opacity 180ms ease;
    }
    .progress {
      position: relative;
      height: 5px;
      overflow: hidden;
      border-radius: 2px;
      background: rgba(0, 0, 0, 0.38);
    }
    .progress__fill {
      display: block;
      width: var(--progress, 0%);
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, rgba(var(--blue-rgb), 0.44), var(--blue));
      box-shadow: 0 0 8px rgba(var(--blue-rgb), 0.24);
      transition: width 720ms var(--ease-out), background 180ms ease;
    }
    .objective__count {
      min-width: 39px;
      color: #87929d;
      font-family: "Courier New", ui-monospace, monospace;
      font-size: 9px;
      letter-spacing: 0.02em;
      text-align: right;
      white-space: nowrap;
    }
    .objective__delta {
      justify-self: end;
      color: var(--blue);
      font-family: Rajdhani, sans-serif;
      font-size: 9px;
      font-weight: 700;
      line-height: 1;
      opacity: 0;
      transform: translateY(5px) scale(0.9);
      pointer-events: none;
    }
    .objective__error {
      display: none;
      margin: 7px 0 0 26px;
      color: var(--danger);
      font-size: 9px;
    }
    .objective__sweep {
      position: absolute;
      inset: 0;
      background: linear-gradient(100deg, transparent 22%, rgba(var(--green-rgb), 0.2) 50%, transparent 78%);
      opacity: 0;
      transform: translateX(-100%);
      pointer-events: none;
    }
    .objective.is-updating {
      background-color: rgba(var(--blue-rgb), 0.035);
      animation: objective-update 780ms ease-out;
    }
    .objective.is-updating .objective__delta {
      animation: delta-pop 1.15s var(--ease-spring) both;
    }
    .objective.is-claimable {
      background: linear-gradient(100deg, rgba(var(--green-rgb), 0.065), transparent 72%);
    }
    .objective.is-claimable .objective__status-node,
    .objective.is-claiming .objective__status-node {
      border-color: rgba(var(--green-rgb), 0.58);
      background: rgba(var(--green-rgb), 0.08);
      color: var(--green);
    }
    .objective.is-claimable .objective__status-node i,
    .objective.is-claiming .objective__status-node i,
    .objective.is-claimed .objective__status-node i {
      opacity: 1;
      transform: scale(1);
    }
    .objective.is-claimable .progress__fill {
      background: linear-gradient(90deg, rgba(var(--green-rgb), 0.42), var(--green));
      box-shadow: 0 0 9px rgba(var(--green-rgb), 0.22);
    }
    .objective.is-claimable .objective__reward-slot .collect-button,
    .objective.is-claiming .objective__reward-slot .collect-button {
      opacity: 1;
      visibility: visible;
      transform: translate(2px, -1px) scale(1);
      pointer-events: auto;
      transition-delay: 80ms, 80ms, 0s;
    }
    .objective.is-newly-complete .objective__sweep {
      animation: completion-sweep 900ms var(--ease-out) both;
    }
    .objective.is-claiming {
      background-color: rgba(var(--green-rgb), 0.045);
    }
    .objective.is-claimable .objective__time-label,
    .objective.is-claiming .objective__time-label {
      color: rgba(var(--green-rgb), 0.88);
    }
    .objective.is-claimed {
      order: 10;
      background: rgba(var(--green-rgb), 0.018);
      opacity: 0.64;
    }
    .objective.is-claimed .objective__status-node {
      border-color: rgba(var(--green-rgb), 0.35);
      background: rgba(var(--green-rgb), 0.05);
      color: rgba(var(--green-rgb), 0.8);
    }
    .objective.is-claimed .objective__progress-row {
      opacity: 0.42;
    }
    .objective.is-claimed .progress__fill {
      background: rgba(var(--green-rgb), 0.65);
      box-shadow: none;
    }
    .objective.is-claimed .objective__time-label {
      color: rgba(var(--green-rgb), 0.72);
    }
    .reward-particle {
      position: fixed;
      z-index: 100;
      width: 8px;
      height: 7px;
      border: 1px solid var(--particle-colour);
      border-radius: 1px;
      background: var(--particle-fill);
      box-shadow: 0 0 7px var(--particle-colour);
      opacity: 0;
      pointer-events: none;
      transform: rotate(-12deg);
      animation: reward-flight 760ms var(--ease-out) forwards;
    }
    .reward-particle--tags {
      --particle-colour: var(--blue);
      --particle-fill: rgba(var(--blue-rgb), 0.38);
    }
    .reward-particle--coins {
      --particle-colour: var(--gold);
      --particle-fill: rgba(var(--gold-rgb), 0.42);
      border-radius: 50%;
    }
    @keyframes button-scan {
      to { transform: translateX(110%); }
    }
    @keyframes objective-update {
      0%, 100% { box-shadow: none; }
      38% { box-shadow: inset 0 0 18px rgba(var(--blue-rgb), 0.12), 0 0 12px rgba(var(--blue-rgb), 0.1); }
    }
    @keyframes delta-pop {
      0% { opacity: 0; transform: translateY(8px) scale(0.82); }
      18%, 72% { opacity: 1; transform: translateY(0) scale(1); }
      100% { opacity: 0; transform: translateY(-8px) scale(0.95); }
    }
    @keyframes completion-sweep {
      0% { opacity: 0; transform: translateX(-100%); }
      35% { opacity: 0.72; }
      100% { opacity: 0; transform: translateX(100%); }
    }
    @keyframes wallet-bump {
      0%, 100% { transform: scale(1); }
      42% { border-color: var(--wallet-colour); transform: scale(1.08); box-shadow: 0 0 13px var(--wallet-glow); }
    }
    @keyframes reward-flight {
      0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-12deg) scale(0.45); }
      14% { opacity: 1; transform: translate3d(0, -12px, 0) rotate(6deg) scale(1); }
      100% { opacity: 0; transform: translate3d(var(--travel-x), var(--travel-y), 0) rotate(190deg) scale(0.55); }
    }

    /* Guest Save (held Collect) — steel face, amber hover. --gv-* from friends-squad guest tokens. */
    [data-lobby-account="guest"] .objective__reward-slot .collect-button {
      background: rgba(159, 181, 201, 0.2);
      color: #b9c2cb;
    }

    [data-lobby-account="guest"] .objective__reward-slot .collect-button::before {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
      box-shadow: inset 0 0 0 1px rgba(159, 181, 201, 0.3);
    }

    [data-lobby-account="guest"] .objective__reward-slot .collect-button:hover::before {
      background: var(--gv-face-hot);
      box-shadow: inset 0 0 0 1px var(--gv-rim-hot);
    }

    [data-lobby-account="guest"] .objective__reward-slot .collect-button:hover {
      color: var(--amber-hot);
    }

