/* ── PAGE HERO ── */
    .clues-hero {
      background: #e7e9fa;
      padding: 32px 28px 24px;
      margin-bottom: 24px;
      position: relative; overflow: hidden;
    }

    .home-mask-section {
margin-top: 30px;
border: none !important;
    }
    .home-mask-section h2 {
      font-size: 1rem;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 18px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    #home-mask-search-heading {
      font-size: 22px;
    }
    .mask-cells-wrap { margin-bottom: 20px; }
    .mask-cells-wrap > label {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--text-muted);
      letter-spacing: 0.06em;
      text-transform: uppercase;
      margin-bottom: 10px;
      display: block;
    }
    .mask-cells-row {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      align-items: center;
      margin-bottom: 12px;
    }
    .mask-cell-wrap {
      position: relative;
      display: inline-flex;
    }
    .mask-cell-num {
      position: absolute;
      top: 3px;
      left: 5px;
      z-index: 1;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.55rem;
      line-height: 1;
      font-weight: 700;
      color: var(--text-muted);
      opacity: 0.8;
      pointer-events: none;
    }
    .mask-cell {
      width: 38px;
      height: 42px;
      background: #f8fafc;
      border: 2px solid #cbd5e1;
      border-radius: 6px;
      text-align: center;
      font-family: 'JetBrains Mono', monospace;
      font-size: 1rem;
      font-weight: 700;
      color: var(--text-primary);
      text-transform: uppercase;
      caret-color: var(--accent-blue);
      transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
      outline: none;
      box-sizing: border-box;
    }
    .mask-cell:focus {
      border-color: var(--accent-blue);
      background: rgba(79,142,247,0.06);
      box-shadow: 0 0 0 3px rgba(79,142,247,0.15);
    }
    .mask-cell.has-letter {
      border-color: var(--accent-blue);
      color: var(--accent-blue);
      background: rgba(79,142,247,0.07);
    }
    .mask-cell-controls {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .mask-cell-controls .btn {
      height: 34px;
      min-height: 34px;
      padding: 0 12px !important;
      font-size: 0.8rem !important;
      line-height: 1;
    }
    .cell-count-badge {
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--text-muted);
      display: inline-flex;
      align-items: center;
      height: 34px;
      min-height: 34px;
      background: var(--bg-secondary);
      border: 1px solid var(--border-normal);
      border-radius: var(--radius-full);
      padding: 0 12px;
      font-family: 'JetBrains Mono', monospace;
    }
    .cell-count-badge.active {
      color: var(--accent-blue);
      background: rgba(79,142,247,0.1);
      border-color: rgba(79,142,247,0.3);
    }
    .mask-divider {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 20px 0;
      color: var(--text-muted);
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .mask-divider::before,
    .mask-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border-subtle);
    }
    .mask-text-row {
      display: flex;
      gap: 10px;
      align-items: flex-end;
      flex-wrap: wrap;
    }
    .mask-text-row .form-group {
      flex: 1;
      min-width: 200px;
    }
    .btn-search-mask {
      background: linear-gradient(135deg, var(--accent-blue), #7c3aed);
      color: #fff;
      border: none;
      border-radius: var(--radius-md);
      padding: 11px 28px;
      font-size: 0.9rem;
      font-weight: 700;
      cursor: pointer;
      transition: opacity 0.2s, transform 0.15s;
      white-space: nowrap;
      align-self: flex-end;
      min-height: 46px;
    }
    .btn-search-mask:hover {
      opacity: 0.88;
      transform: translateY(-1px);
    }
    .clues-hero-label {
      font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
      text-transform: uppercase; color: #a78bfa; margin-bottom: 8px;
    }
    .clues-hero h1 {
      font-size: clamp(1.4rem, 3vw, 1.9rem);
      color: var(--text-primary); margin-bottom: 8px;
    }
    .clues-hero p { font-size: 0.88rem; color: var(--text-secondary); max-width: 520px; line-height: 1.6; }
    .hero-stats {
      display: flex; gap: 20px; flex-wrap: wrap; margin-top: 18px;
    }
    .hero-stat {
      display: flex; flex-direction: column; gap: 2px;
    }
    .hero-stat-val {
      font-size: 1.4rem; font-weight: 800; font-family: 'JetBrains Mono', monospace;
      color: var(--accent-blue);
    }
    .hero-stat-lbl { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

    /* Search entry */
    .home-solver {
      background: var(--bg-card);
      border-radius: var(--radius-xl);
      padding: 24px;
      margin-bottom: 22px;
      max-width: 100%;
      box-sizing: border-box;
    }
    .home-solver-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 16px;
    }
    .home-solver h2 {
      color: var(--text-primary);
      font-size: clamp(1.12rem, 2.3vw, 1.45rem);
      line-height: 1.25;
    }
    .home-solver-tabs {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 6px;
      border-radius: var(--radius-full);
      background: #f4f6fb;
      flex: none;
    }
    .home-solver-tab {
      min-height: 32px;
      padding: 0 14px;
      border: 0;
      border-radius: var(--radius-full);
      background: transparent;
      color: var(--text-muted);
      font-size: 0.8rem;
      font-weight: 800;
      cursor: pointer;
      transition: background .18s ease, color .18s ease;
      white-space: nowrap;
    }
    .home-solver-tab.active {
      background: #fff;
      color: var(--accent-blue);
    }
    .home-solver-panel {
      display: none;
    }
    .home-solver-panel.active {
      display: block;
    }
    .home-solver-text {
      max-width: 760px;
      color: var(--text-secondary);
      font-size: 0.9rem;
      line-height: 1.6;
      margin-bottom: 14px;
    }
    .home-solver-search {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: flex-start;
      gap: 10px;
      width: 100%;
    }
    .home-solver .widget-search {
      flex-wrap: wrap;
      align-items: flex-start;
      width: 100%;
      gap: 8px;
      box-sizing: border-box;
    }
    .home-word-search {
      grid-template-columns: minmax(0, 1fr) 110px auto;
    }
    .home-solver-input-wrap {
      position: static;
      flex: 1;
      min-width: 0;
      max-width: 100%;
    }
    .home-solver .widget-search .home-solver-input-wrap {
      flex: 1 1 0;
    }
    .home-solver-search .form-input {
      width: 100%;
      min-height: 46px;
    }
    .home-solver .widget-search .form-input {
      height: 48px;
      min-height: 48px;
      padding: 0 16px;
      border-radius: 14px;
      line-height: 48px;
      box-sizing: border-box;
    }
    .home-solver .widget-search .clue-search-submit-btn {
      width: 48px;
      height: 48px;
      min-width: 48px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 14px;
      background: var(--accent-blue);
      box-sizing: border-box;
    }
    .home-mask-section .mask-text-row .clue-search-submit-btn {
    width: 43px;
    height: 43px;
    min-width: 45px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    background: var(--accent-blue);
    cursor: pointer;
    align-self: flex-end;
    box-sizing: border-box;
    transition: opacity .18s ease, transform .18s ease;
    }
    .home-mask-section .mask-text-row .clue-search-submit-btn:hover {
      opacity: .9;
      transform: translateY(-1px);
    }
    .home-word-length {
      text-align: center;
    }
    .home-solver-submit {
      min-height: 46px;
      padding: 0 22px;
      border: 0;
      border-radius: var(--radius-md);
      background: linear-gradient(135deg, var(--accent-blue), #7c3aed);
      color: #fff;
      font-size: 0.88rem;
      font-weight: 800;
      cursor: pointer;
      transition: opacity .18s ease, transform .18s ease;
      white-space: nowrap;
      flex: none;
    }
    .home-solver-submit:hover {
      opacity: .9;
      transform: translateY(-1px);
    }
    .home-solver-suggestions {
      grid-column: 1 / -1;
      flex: 0 0 100%;
      position: static;
      display: grid;
      gap: 6px;
      width: 100%;
      margin-top: 3px;
      border-radius: 2px;
      background: #ffffff;
      box-sizing: border-box;
      min-width: 0;
    }
    .home-solver-suggestions[hidden] {
      display: none;
    }
    .home-solver-suggestion {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 12px;
      border: 1px solid #e5e7eb;
      border-radius: 12px;
      background: #fff;
      color: var(--text-primary);
      text-align: left;
      cursor: pointer;
      transition: background .16s ease, border-color .16s ease, color .16s ease;
    }
    .home-solver-suggestion:hover {
      border-color: rgba(37,99,235,0.28);
      background: #f8fafc;
    }
    .home-solver-suggestion-main {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-weight: 800;
      color: var(--text-primary);
    }
    .home-solver-suggestion-match {
      color: var(--accent-blue);
      font-weight: 900;
    }
    .home-solver-suggestion-meta {
      flex: none;
      color: var(--text-muted);
      font-size: 0.74rem;
      font-weight: 800;
    }

    /* ── TABS ── */
    .clues-tabs {
      display: flex; gap: 6px; flex-wrap: wrap;
      margin-bottom: 20px; padding-bottom: 4px;
    }
    .tab-btn {
      display: flex; align-items: center; gap: 6px;
      padding: 8px 16px; border-radius: var(--radius-full);
      font-size: 0.82rem; font-weight: 600; cursor: pointer;
      border: 1px solid var(--border-normal);
      background: var(--bg-secondary); color: var(--text-muted);
      transition: all 0.2s;
    }
    .tab-btn:hover { border-color: var(--border-accent); color: var(--text-primary); }
    .tab-btn.active {
      background: var(--accent-blue); border-color: var(--accent-blue);
      color: #fff; box-shadow: 0 2px 8px rgba(79,142,247,0.35);
    }
    .tab-badge {
      font-size: 0.7rem; font-weight: 700; padding: 1px 7px;
      border-radius: var(--radius-full); background: rgba(255,255,255,0.2);
    }
    .tab-btn:not(.active) .tab-badge { background: var(--bg-card); color: var(--text-muted); }
    .tab-section {
      display: none;
    }
    .tab-section.active {
      display: block;
    }

    /* ── ADD CLUE BTN ── */
    .add-clue-entry {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 18px;
      padding: 20px 24px;
      margin-bottom: 20px;
    }
    .add-clue-entry-copy h2 {
      margin: 0 0 10px;
      color: #000000;
      font-size: 1.24rem;
    }
    .add-clue-entry-copy p {
      margin: 0;
      color: var(--text-secondary);
      font-size: 0.9rem;
      line-height: 1.48;
    }
    .add-clue-entry .btn-submit-answer {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 42px;
      line-height: 1.1;
      text-decoration: none;
      align-self: center;
      justify-self: end;
    }
    /* ── ADD CLUE PANEL ── */
    .add-clue-panel {
      background: var(--bg-card); border: 1px solid rgba(139,92,246,0.2);
      border-radius: var(--radius-xl); padding: 24px;
      margin-bottom: 20px; display: none;
    }
    .add-clue-panel.open { display: block; animation: slideDown 0.25s ease; }
    @keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
    .add-clue-panel-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: start;
      gap: 16px;
      margin-bottom: 18px;
    }
    .add-clue-panel h3 { font-size: 1rem; font-weight: 800; color: var(--text-primary); margin: 0 0 8px; }
    .add-clue-panel-head p {
      margin: 0;
      color: var(--text-secondary);
      font-size: 0.9rem;
      line-height: 1.6;
      max-width: 760px;
    }
    .new-clue-fields-row {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      align-items: start;
    }
    .new-clue-meta-fields {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      align-items: start;
    }
    .add-clue-panel .form-group {
      min-width: 0;
    }
    .add-clue-panel .form-label {
      display: block;
      min-height: 20px;
      line-height: 20px;
    }
    .add-clue-panel .form-input,
    .add-clue-panel .form-select {
      height: 44px;
      min-height: 44px;
      line-height: 1.2;
    }
    @media (max-width: 680px) {
      .add-clue-entry {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
      }
      .add-clue-entry-copy h2 {
        margin-bottom: 6px;
      }
      .add-clue-entry .btn-submit-answer {
        justify-self: start;
        width: auto;
        min-width: 118px;
      }
      .new-clue-fields-row,
      .new-clue-meta-fields {
        grid-template-columns: 1fr;
      }
    }
    .duplicate-clue-check {
      margin-top: 10px;
      padding: 12px;
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-subtle);
      background: var(--bg-secondary);
      color: var(--text-secondary);
      font-size: 0.84rem;
    }
    .duplicate-clue-check[hidden] { display: none; }
    .new-clue-inline-message {
      padding: 10px 12px;
      border: 1px solid rgba(239, 68, 68, 0.28);
      border-radius: var(--radius-lg);
      background: rgba(239, 68, 68, 0.08);
      color: var(--accent-red);
      font-size: 0.84rem;
      font-weight: 700;
      line-height: 1.45;
    }
    .new-clue-inline-message[hidden] { display: none; }
    .duplicate-clue-check.is-found {
      border-color: rgba(245,158,11,0.35);
      background: rgb(255 255 255 / 8%);
    }
    .duplicate-clue-check.is-clear {
      border-color: rgba(34,197,94,0.28);
      background: rgba(34,197,94,0.07);
    }
    .duplicate-clue-title {
      font-weight: 800;
      color: var(--text-primary);
      margin-bottom: 6px;
    }
    .duplicate-clue-found-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 6px;
    }
    .duplicate-status-badge {
      display: inline-flex;
      align-items: center;
      white-space: nowrap;
      border-radius: var(--radius-full);
      padding: 3px 9px;
      border: 1px solid rgba(245,158,11,0.28);
      background: rgba(245,158,11,0.1);
      color: #92400e;
      font-size: 0.72rem;
      font-weight: 800;
    }
    .duplicate-suggestions {
      display: grid;
      gap: 8px;
      margin-top: 8px;
    }
    .duplicate-suggestion-btn {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 9px 10px;
      border-radius: 10px;
      border: 1px solid var(--border-subtle);
      background: var(--bg-card);
      color: var(--text-primary);
      cursor: pointer;
      text-align: left;
      transition: border-color .16s ease, background .16s ease;
    }
    .duplicate-suggestion-btn:hover {
      border-color: rgba(37,99,235,0.28);
      background: rgba(37,99,235,0.05);
    }
    .duplicate-suggestion-main {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-weight: 700;
    }
    .duplicate-suggestion-meta {
      flex: none;
      color: var(--text-muted);
      font-size: 0.74rem;
      font-weight: 700;
    }
    .duplicate-clue-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin: 8px 0 10px;
    }
    .duplicate-clue-meta span {
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-full);
      padding: 2px 8px;
      background: var(--bg-card);
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--text-muted);
    }
    .duplicate-answer-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
      gap: 8px;
      align-items: start;
      margin-top: 10px;
    }
    .duplicate-answer-row .form-input {
      min-width: 0;
    }
    .duplicate-answer-action {
      padding: 10px 16px;
      justify-self: start;
    }
    .duplicate-answer-preview {
      display: flex;
      gap: 3px;
      flex-wrap: wrap;
      margin-top: 8px;
      min-height: 28px;
      width: 100%;
      grid-column: 1 / -1;
    }
    .duplicate-preview-box {
      position: relative;
      padding-top: 9px;
    }
    .duplicate-preview-num {
      position: absolute;
      top: 2px;
      left: 4px;
      color: #94a3b8;
      font-size: 0.56rem;
      font-weight: 700;
      line-height: 1;
    }
    .duplicate-answer-action {
      grid-column: 1 / -1;
    }
    @media (max-width: 640px) {
      .duplicate-answer-row {
        grid-template-columns: 1fr;
      }
    }
    .duplicate-open-link {
      color: var(--accent-blue);
      font-weight: 700;
      text-decoration: none;
    }
    .duplicate-open-link:hover {
      text-decoration: underline;
    }

    /* ── SECTION HEADING ── */
    .section-title {
      display: flex; align-items: center; gap: 10px;
      font-size: 0.88rem; font-weight: 700; color: var(--text-muted);
      letter-spacing: 0.06em; text-transform: uppercase;
      margin-bottom: 14px; padding-bottom: 10px;
      border-bottom: 1px solid var(--border-subtle);
    }
    .section-title-dot {
      width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
    }
    .activity-section-title {
      align-items: flex-start;
      letter-spacing: 0;
      text-transform: none;
    }
    .activity-section-title .section-title-dot {
      margin-top: 6px;
    }
    .activity-section-copy {
      display: flex;
      min-width: 0;
      flex-direction: column;
      gap: 2px;
    }
    .activity-section-copy strong {
      color: var(--text-primary);
      font-size: 0.9rem;
      line-height: 1.35;
    }
    .activity-section-copy small {
      color: var(--text-secondary);
      font-size: 0.72rem;
      font-weight: 500;
      line-height: 1.4;
    }
    .dot-red    { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.5); }
    .dot-yellow { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.5); }
    .dot-green  { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.5); }

    /* ── CLUE CARD ── */
    .clue-card {
      background: var(--bg-card);
      border: 1px solid var(--border-normal);
      border-radius: 16px;
      padding: 16px;
      margin-bottom: 12px;
      overflow: hidden;
      cursor: pointer;
      transition: opacity 0.2s, border-color 0.15s, transform 0.12s;
    }
    .clue-card:focus-visible {
      outline: 3px solid rgba(37, 99, 235, 0.22);
      outline-offset: 2px;
    }
    .clue-card:hover {
      border-color: rgba(37, 99, 235, 0.32);
    }
    .clue-card:active {
      transform: scale(0.985);
    }
    .clue-card-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 8px;
      padding: 0;
      margin-bottom: 8px;
    }
    .clue-pattern {
      margin-bottom: 10px;
      color: var(--text-secondary);
      font-size: 0.82rem;
      line-height: 1.35;
    }
    .clue-pattern strong {
      color: var(--text-primary);
      font-family: 'JetBrains Mono', monospace;
      font-weight: 500;
      letter-spacing: 1.5px;
    }
    .clue-card-title-wrap {
      min-width: 0;
      flex: 1;
    }
    .clue-question {
      font-size: 0.94rem;
      line-height: 20px;
      font-weight: 700;
      color: var(--text-primary);
      flex: 1;
    }
    .clue-title-link {
      display: inline-block;
      text-decoration: none;
    }
    .clue-title-link:hover {
      color: var(--accent-blue);
    }
    .clue-meta {
      display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px;
    }
    .clue-length-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 0;
      padding: 4px 8px;
      border-radius: 8px;
      background: rgba(59, 130, 246, 0.15);
      color: #2563eb;
      font-size: 0.72rem;
      font-weight: 700;
      white-space: nowrap;
    }
    .clue-tag {
      font-size: 14px;
    }
    .tag-letters {
      color: #5f5f5f;
    }
    .tag-open {
      background: rgba(239,68,68,0.08); color: #dc2626; padding: 4px 8px; border-radius: 6px;
    }
    .tag-vote {
      background: rgba(245,158,11,0.1); color: #b45309; padding: 4px 8px; border-radius: 6px;
    }
    .tag-done {
      background: rgba(34,197,94,0.12); color: #22c55e; padding: 4px 8px; border-radius: 6px;
    }
    .clue-author {
      padding: 0;
      margin: 0;
      font-size: 0.78rem;
      color: var(--text-secondary);
    }
    .clue-author,
    .clue-card-stats,
    .clue-stat {
      display: inline-flex;
      align-items: center;
    }
    .clue-author strong { color: #2563eb; }
    .clue-author-icon,
    .clue-stat-icon {
      width: 14px;
      height: 14px;
      margin-right: 4px;
      flex: 0 0 14px;
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
    }
    .clue-author-icon {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3Cpath d='M7.8 18c.8-2.4 2.2-3.5 4.2-3.5s3.4 1.1 4.2 3.5'/%3E%3C/svg%3E");
    }
    .clue-views {
      font-size: 0.75rem; color: var(--text-muted);
    }

    .clue-card-summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      min-height: 0;
      padding: 8px 0 0;
      margin-top: 0;
      background: transparent;
      border-top: 1px solid rgba(15, 23, 42, 0.12);
      color: #047857;
      font-size: 0.78rem;
      font-weight: 500;
    }
    .clue-card-stats {
      justify-content: flex-end;
      gap: 10px;
      min-width: 0;
    }
    .clue-stat {
      gap: 0;
      color: #64748b;
      font-size: 0.72rem;
      white-space: nowrap;
    }
    .clue-stat-answers {
      color: #2563eb;
    }
    .clue-stat-answers .clue-stat-icon {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M8.2 14.5A7 7 0 1 1 15.8 14.5c-1.1.8-1.8 1.7-1.8 3.5h-4c0-1.8-.7-2.7-1.8-3.5Z'/%3E%3C/svg%3E");
    }
    .clue-stat-comments .clue-stat-icon {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4Z'/%3E%3C/svg%3E");
    }
    .clue-card-summary .clue-tag {
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      padding: 4px 8px;
      border-radius: 20px;
      font-size: 0.68rem;
      font-weight: 700;
    }
    .clue-card-summary .clue-tag::before {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 13px;
      height: 13px;
      margin-right: 4px;
      border-radius: 50%;
      font-size: 9px;
      font-weight: 900;
      line-height: 1;
    }
    .clue-card-summary .tag-done::before { content: '✓'; background: #059669; color: #fff; }
    .clue-card-summary .tag-vote::before { content: '•'; background: #d97706; color: #fff; }
    .clue-card-summary .tag-open::before { content: '?'; background: #64748b; color: #fff; }

    @media (max-width: 520px) {
      .clue-card-summary { align-items: flex-end; }
      .clue-card-stats { gap: 7px; }
      .clue-card-summary .clue-tag { padding: 4px 7px; }
    }
    /* ── PROPOSALS (answers) ── */
    .proposals-list {
display: flex;
    flex-direction: column;
    }

    .proposal-item {
display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.15s, background 0.15s;
    border-bottom: 1px solid #eee;
    padding: 14px;
    }
    .proposal-more-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 38px;
      margin: 10px 14px 12px;
      padding: 0 14px;
      border: 1px solid var(--border-normal);
      background: #fff;
      color: var(--accent-blue);
      font-size: 0.84rem;
      font-weight: 800;
      text-decoration: none;
      transition: border-color 0.15s, background 0.15s;
    }
    .proposal-more-link:hover {
      border-color: var(--accent-blue);
      background: rgba(79,142,247,0.07);
    }
    .proposal-letters {
      display: flex; gap: 2px; flex: 1; flex-wrap: wrap;
    }
    .proposal-letter {
      width: 22px; height: 24px; display: flex; align-items: center; justify-content: center;
      position: relative;
      border-radius: 4px; font-family: 'JetBrains Mono', monospace;
      font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
      background: rgba(79,142,247,0.1); border: 1px solid rgba(79,142,247,0.2);
      color: var(--accent-blue);
    }
    .proposal-letter-numbered {
      padding-top: 5px;
    }
    .proposal-letter-num {
      position: absolute;
      top: 1px;
      left: 3px;
      font-size: 0.48rem;
      line-height: 1;
      color: var(--text-muted);
      opacity: 0.78;
      pointer-events: none;
    }
    .proposal-letter-char {
      line-height: 1;
    }
    .proposal-item.leading .proposal-letter {
      background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.25); color: #27924e;
    }
    .vote-btn {
      display: flex; align-items: center; gap: 5px;
      min-width: 72px;
      justify-content: center;
      padding: 5px 12px;
      border-radius: 0;
      border: 1px solid #d8dde8;
      background: #fff; color: #475569;
      font-size: 0.78rem; font-weight: 600; cursor: pointer;
      transition: all 0.15s; white-space: nowrap;
    }
    .vote-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); background: rgba(79,142,247,0.07); }
    .vote-btn.voted { background: rgba(79,142,247,0.12); border-color: rgba(79,142,247,0.3); color: var(--accent-blue); }
    .proposal-vote-actions {
      display: grid;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .proposal-vote-actions .vote-yes {
      border-color: rgba(34,197,94,0.25);
      color: #15803d;
    }
    .proposal-vote-actions .vote-yes:hover,
    .proposal-vote-actions .vote-yes.voted {
      background: rgba(34,197,94,0.1);
      border-color: rgba(34,197,94,0.36);
      color: #166534;
    }
    .proposal-vote-actions .vote-no {
      border-color: rgba(239,68,68,0.22);
      color: #b91c1c;
    }
    .proposal-vote-actions .vote-no:hover,
    .proposal-vote-actions .vote-no.voted {
      background: rgba(239,68,68,0.08);
      border-color: rgba(239,68,68,0.34);
      color: #991b1b;
    }
    .vote-count {
      font-family: 'JetBrains Mono', monospace; min-width: 20px; text-align: center;
    }
    .vote-bar {
      width: 100%; height: 3px; background: #e5e7eb; border-radius: 0; margin-top: 4px;
    }
    .vote-bar-fill { height: 100%; border-radius: 2px; background: var(--accent-blue); transition: width 0.4s ease; }
    .proposal-item.leading .vote-bar-fill { background: #22c55e; }
    .vote-progress-text {
      margin-top: 4px;
      color: var(--text-muted);
      font-size: 0.72rem;
      line-height: 1.3;
    }
    .proposal-author {
      margin-top: 5px;
      color: var(--text-muted);
      font-size: 0.76rem;
    }
    .proposal-author strong {
      color: var(--text-secondary);
      font-weight: 800;
    }

    /* ── ANSWER FORM ── */
    .visually-hidden {
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      padding: 0 !important;
      margin: -1px !important;
      overflow: hidden !important;
      clip: rect(0, 0, 0, 0) !important;
      white-space: nowrap !important;
      border: 0 !important;
    }
    .answer-toggle-btn {
      display: flex; align-items: center; gap: 6px;
      padding: 7px 16px; border-radius: var(--radius-full);
      border: 1px solid rgba(139,92,246,0.3);
      background: rgba(139,92,246,0.07); color: #a78bfa;
      font-size: 0.8rem; font-weight: 700; cursor: pointer;
      transition: all 0.2s;
    }
    .answer-toggle-btn:hover { background: rgba(139,92,246,0.14); border-color: rgba(139,92,246,0.5); }
    .answer-form {
      margin-top: 14px; padding-top: 14px;
      border-top: 1px solid var(--border-subtle);
      display: none;
    }
    .answer-form.open { display: block; animation: slideDown 0.2s ease; }
    .card-answer-form {
      display: block;
      margin: 0;
      padding: 16px;
      border-top: 1px solid #edf0f5;
      background: #fff;
    }
    .answer-row {
      display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap;
    }
    .answer-input-wrap { flex: 1; min-width: 200px; }
    .answer-guest-field { flex: 0 1 180px; min-width: 160px; }
    .answer-row .form-input,
    .answer-row .btn-submit-answer {
      height: 44px;
      min-height: 44px;
      line-height: 1.2;
      box-sizing: border-box;
    }
    .answer-row .form-input {
      padding-top: 0;
      padding-bottom: 0;
    }
    .letter-count-badge-inline {
      font-size: 0.72rem; font-weight: 700; color: var(--accent-blue);
      font-family: 'JetBrains Mono', monospace; margin-top: 4px; display: block;
    }
    .btn-submit-answer {
      background: #367bf4;
      color: #fff;
      border: none;
      padding: 10px 20px;
      font-size: 0.9rem;
      font-weight: 800;
      cursor: pointer;
      transition: opacity 0.2s, transform 0.15s;
      white-space: nowrap;
      box-shadow: none;
    }
    .btn-submit-answer:hover { opacity: 0.88; transform: translateY(-1px); }
    @media (max-width: 680px) {
      .card-answer-form .answer-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: end;
      }
      .card-answer-form .answer-input-wrap {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
      }
      .card-answer-form .answer-guest-field {
        grid-column: 1;
        min-width: 0;
        width: 100%;
      }
      .card-answer-form .btn-submit-answer {
        grid-column: 2;
        width: 100%;
        min-width: 0;
      }
      .card-answer-form .answer-row:not(:has(.answer-guest-field)) {
        grid-template-columns: minmax(0, 1fr) auto;
      }
      .card-answer-form .answer-row:not(:has(.answer-guest-field)) .answer-input-wrap {
        grid-column: 1;
      }
      .card-answer-form .answer-row:not(:has(.answer-guest-field)) .btn-submit-answer {
        grid-column: 2;
        min-width: 112px;
      }
    }

    /* ── EMPTY STATE ── */
    .empty-block {
      text-align: center; padding: 40px 20px;
      background: var(--bg-card); border: 1px dashed var(--border-normal);
      border-radius: var(--radius-xl); color: var(--text-muted);
    }
    .empty-block .ei { font-size: 40px; margin-bottom: 10px; }
    .empty-block p { font-size: 0.85rem; }

    /* ── TAB SECTIONS ── */
    .tab-section { display: none; }
    .tab-section.active { display: block; }
    .tab-more-wrap {
      display: flex;
      justify-content: center;
      margin-top: 18px;
	  margin-bottom: 17px;
    }
    .tab-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 0 18px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    color: #2d2d2d;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 800;
    transition: opacity 0.2s, transform 0.15s;
    }
    .tab-more-link:hover {
      opacity: 0.9;
      transform: translateY(-1px);
    }

    /* ── MINI GAME MOCKUP ── */
    .mini-game-card {
      display: grid;
      gap: 14px;
      margin: 18px 0;
      padding: 18px;
      background: #eef0ff;
    }
    .mini-game-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }
    .mini-game-head h2 {
      margin: 0;
      color: #030712;
      font-size: 1.25rem;
      line-height: 1.25;
      font-weight: 900;
    }
    .mini-game-step {
      display: inline-flex;
      align-items: center;
      min-height: auto;
      padding: 0;
      background: transparent;
      border: 0;
      color: #1d4ed8;
      font-size: 0.82rem;
      font-weight: 900;
      white-space: nowrap;
    }
    .mini-game-clue {
      margin: 0;
      color: #111827;
      font-size: 1rem;
      font-weight: 500;
    }
    .mini-game-puzzle-row {
      display: flex;
      align-items: stretch;
      gap: 8px;
      flex-wrap: wrap;
    }
    .mini-game-cells {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
    }
    .mini-game-cell {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 37px;
      height: 38px;
      background: #fff;
      border: 1px solid #cbd5e1;
      color: #0f172a;
      font-family: "JetBrains Mono", Consolas, monospace;
      font-size: 0.95rem;
      font-weight: 900;
    }
    .mini-game-cell.is-known {
      background: #dcfce7;
      border-color: #86efac;
      color: #166534;
    }
    .mini-game-cell.input-filled {
      background: #eef4ff;
      border-color: #93c5fd;
      color: #1d4ed8;
    }
    .mini-game-cell.is-match {
      background: #dcfce7;
      border-color: #22c55e;
      color: #166534;
    }
    .mini-game-cell.is-mismatch {
      background: #fee2e2;
      border-color: #ef4444;
      color: #991b1b;
    }
    .mini-game-cell-num {
      position: absolute;
      top: 2px;
      left: 4px;
      color: #94a3b8;
      font-size: 0.56rem;
      font-weight: 700;
    }
    .mini-game-actions {
      display: block;
    }
    .mini-game-secondary,
    .mini-game-answer button {
      min-height: 40px;
      padding: 0 14px;
      border: 1px solid #cfd8e6;
      background: #fff;
      color: #111827;
      font-weight: 800;
      cursor: default;
    }
    .mini-game-secondary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      width: 38px;
      height: 38px;
      min-height: 38px;
      padding: 0 10px;
      border: 1px solid #facc15;
      background: #fef3c7;
      color: #854d0e;
      font-size: 1.05rem;
      line-height: 1.1;
      border-radius: 21px !important;
      text-align: center;
      cursor: pointer;
      transition: background 0.15s, border-color 0.15s, transform 0.12s;
    }
    .mini-game-secondary:hover {
      background: #fde68a;
      border-color: #eab308;
      transform: translateY(-1px);
    }
    .mini-game-secondary:active {
      transform: translateY(1px);
    }
    .mini-game-secondary:focus-visible {
      outline: 3px solid rgba(250, 204, 21, 0.45);
      outline-offset: 2px;
    }
    .mini-game-secondary:disabled {
      opacity: 0.58;
      cursor: wait;
      transform: none;
      box-shadow: none;
    }
    .mini-game-hint-status {
      margin-top: -8px;
      color: #64748b;
      font-size: 0.78rem;
      font-weight: 700;
    }
    .mini-game-hint-status.is-empty {
      color: #92400e;
    }
    .mini-game-answer {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 112px;
      gap: 8px;
    }
    .mini-game-answer input {
      min-width: 0;
      min-height: 42px;
      padding: 0 12px;
      border: 1px solid #cfd8e6;
      background: #fff;
      color: #0f172a;
      font: inherit;
    }
    .mini-game-answer button {
      background: #2563eb;
      border-color: #2563eb;
      color: #fff;
      cursor: pointer;
      transition: background 0.15s, border-color 0.15s, transform 0.12s;
    }
    .mini-game-answer button:hover {
      background: #1d4ed8;
      border-color: #1d4ed8;
      transform: translateY(-1px);
    }
    .mini-game-answer button:active {
      transform: translateY(1px);
    }
    .mini-game-answer button:focus-visible {
      outline: 3px solid rgba(37, 99, 235, 0.28);
      outline-offset: 2px;
    }
    .mini-game-answer button:disabled {
      opacity: 0.65;
      cursor: wait;
      transform: none;
    }
    .mini-game-feedback {
display: grid;
    gap: 3px;
    padding: 7px 4px;
    border-top: 1px solid #d3d7dd;
    color: var(--text-secondary);
    }
    .mini-game-feedback[hidden] {
      display: none;
    }
    .mini-game-feedback.is-error {
      background: #fff1f2;
      border-color: #fecdd3;
      color: #9f1239;
    }
    .mini-game-next {
      justify-self: start;
      min-height: 34px;
      margin-top: 6px;
      padding: 0 12px;
      border: 1px solid #2563eb;
      background: #2563eb;
      color: #fff;
      font-weight: 800;
      cursor: pointer;
      transition: background 0.15s, border-color 0.15s, transform 0.12s;
    }
    .mini-game-next:hover {
      background: #1d4ed8;
      border-color: #1d4ed8;
      transform: translateY(-1px);
    }
    .mini-game-next:active {
      transform: translateY(1px);
    }
    .mini-game-next:focus-visible {
      outline: 3px solid rgba(37, 99, 235, 0.28);
      outline-offset: 2px;
    }
    .mini-game-next:disabled {
      opacity: 0.65;
      cursor: wait;
      transform: none;
    }

    /* ── COMMUNITY COMMENTS MOCKUP ── */
    .community-comments-card {
      margin: 18px 0;
      padding: 0;
      background: #fff;
      border: 1px solid #d7dadc;
      box-shadow: none;
    }
    .community-comments-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      padding: 12px 14px;
      border-bottom: 1px solid #edeff1;
      background: #f6f7f8;
    }
    .community-comments-head h2 {
      margin: 0;
      color: #1a1a1b;
      font-size: 1rem;
      line-height: 1.25;
    }
    .community-comments-list {
      display: grid;
      gap: 0;
    }
    .community-comment-item {
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr);
      gap: 10px;
      position: relative;
      padding: 12px 14px 12px 18px;
      border: 0;
      border-bottom: 1px solid #edeff1;
      background: #fff;
      color: inherit;
      text-decoration: none;
      transition: background 0.18s;
    }
    .community-comment-item::before {
      content: "";
      position: absolute;
      left: 8px;
      top: 12px;
      bottom: 12px;
      width: 2px;
      background: #d7dadc;
    }
    .community-comment-item:hover {
      background: #f8f9fa;
    }
    .community-comment-item:hover::before {
      background: #0079d3;
    }
    .community-comment-item:last-child {
      border-bottom: 0;
    }
    .community-comment-avatar {
      width: 34px;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid #d7dadc;
      background: #edeff1;
      color: #1a1a1b;
      font-size: 0.82rem;
      font-weight: 800;
      text-transform: uppercase;
    }
    .community-comment-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      color: #787c7e;
      font-size: 0.78rem;
      line-height: 1.35;
    }
    .community-comment-meta strong {
      color: #1a1a1b;
      font-weight: 700;
    }
    .community-comment-solution {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-top: 6px;
      padding: 3px 7px;
      border: 1px solid #c8e6d0;
      background: #f0fff4;
      color: #1f7a3a;
      font-size: 0.78rem;
      font-weight: 700;
      line-height: 1.2;
      vertical-align: top;
    }
    .community-comment-solution strong {
      display: inline-flex;
      align-items: center;
      color: #116329;
      font-family: inherit;
      font-weight: 800;
      line-height: 1.2;
      text-transform: uppercase;
    }
    .community-comment-body p {
      margin: 5px 0 4px;
      color: #1c1c1c;
      font-size: 0.9rem;
      line-height: 1.45;
    }
    .community-comment-time {
      color: #878a8c;
      font-size: 0.74rem;
      font-weight: 600;
    }

    /* Light theme */
    :root:not([data-site-theme="dark"]) .clue-card { background: #fff; }
    :root:not([data-site-theme="dark"]) .vote-btn { background: #fff; }
    :root:not([data-site-theme="dark"]) .add-clue-panel { background: #fff; }
    :root:not([data-site-theme="dark"]) .home-solver,
    :root:not([data-site-theme="dark"]) .home-solver-suggestions {
      background: #fff;
    }

    /* ── CLUE MASK ── */
    .clue-mask-input {
      width: 32px; height: 38px; text-align: center;
      font-family: 'JetBrains Mono', monospace; font-size: 1.1rem;
      font-weight: 700; text-transform: uppercase;
      border: 2px solid var(--border-normal); border-radius: 6px;
      background: var(--bg-card); color: var(--text-primary);
      transition: all 0.2s;
    }
    .clue-mask-input:focus { border-color: var(--accent-blue); outline: none; box-shadow: 0 0 0 3px rgba(79,142,247,0.15); }
    
    .card-mask-grid {
      display: flex; gap: 4px; flex-wrap: wrap; margin: 12px 16px 6px;
    }
    .cm-cell {
      width: 28px; height: 32px; display: flex; align-items: center; justify-content: center;
      position: relative;
      border-radius: 0; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 0.95rem;
    }
    .cm-cell-numbered {
      padding-top: 7px;
    }
    .cm-cell-num {
      position: absolute;
      top: 2px;
      left: 4px;
      font-size: 0.52rem;
      line-height: 1;
      color: var(--text-muted);
      opacity: 0.78;
      pointer-events: none;
    }
    .cm-cell-char {
      line-height: 1;
    }
    .cm-cell.known {
      border: 1px solid #cfd8e8; background: #f1f5fb; color: #334155;
    }
    .cm-cell.unknown {
      border: 1px dashed #d7deea; background: #f1f5fb;
    }
    .cm-cell.input-filled {
      border-style: solid;
      background: #eef5ff;
      color: #1d4ed8;
    }
    .cm-cell.is-match {
      border-color: rgba(34, 197, 94, 0.55);
      background: rgba(34, 197, 94, 0.14);
      color: #15803d;
    }
    .cm-cell.is-mismatch {
      border-color: rgba(239, 68, 68, 0.55);
      background: rgba(239, 68, 68, 0.12);
      color: #b91c1c;
    }

    @media (max-width: 760px) {
      .home-solver {
        padding: 18px;
      }
      .home-solver-head {
        flex-direction: column;
      }
      .home-solver-search,
      .home-word-search {
        grid-template-columns: 1fr;
      }
      .home-solver .widget-search {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
      }
      .home-solver .widget-search .home-solver-input-wrap {
        flex: 1 1 calc(100% - 56px);
        width: auto;
        min-width: 0;
      }
      .home-solver .widget-search .clue-search-submit-btn {
        width: 48px;
        min-width: 48px;
        flex: 0 0 48px;
      }
      .home-solver-tabs {
        width: 100%;
        align-self: stretch;
      }
      .home-solver-tab {
        flex: 1;
        min-width: 0;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 0.76rem;
      }
      .home-word-length,
      .home-solver-submit {
        width: 100%;
        flex-basis: auto;
      }
      .home-solver-suggestion {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
      }
      .home-solver-suggestion-main {
        white-space: normal;
      }
      .community-comments-card {
        padding: 0;
      }
      .community-comments-head {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
      }
      .community-comment-item {
        grid-template-columns: 32px minmax(0, 1fr);
        padding-right: 12px;
      }
      .community-comment-avatar {
        width: 32px;
        height: 32px;
      }
      .mini-game-card {
        padding: 14px;
      }

      .mini-game-puzzle-row {
        flex-direction: row;
        align-items: stretch;
      }
      .mini-game-step {
        justify-self: start;
      }
      .mini-game-answer button {
        width: 100%;
      }
      .mini-game-secondary {
        width: 38px;
        min-width: 38px;
        flex: 0 0 38px;
      }
    }

/* ===== Square Template Override ===== */
:root {
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  --radius-full: 0;
}

button,
.btn,
.nav-btn,
.nav-toggle,
.nav-logout,
.social-btn,
.clue-search-submit-btn,
.btn-search-mask,
.mask-toggle-btn,
.mask-close-btn,
.profile-widget-btn,
.answer-admin-btn,
.vote-btn,
.btn-like,
.btn-dislike,
.btn-reply,
input,
textarea,
select,
.form-input,
.form-select,
.form-textarea {
  border-radius: 0 !important;
}

button,
.btn,
.nav-btn,
.nav-toggle,
.nav-logout,
.social-btn,
.clue-search-submit-btn,
.btn-search-mask,
.mask-toggle-btn,
.mask-close-btn,
.profile-widget-btn,
.answer-admin-btn,
.vote-btn,
.btn-like,
.btn-dislike,
.btn-reply {
  border-width: 1px !important;
  border-style: solid !important;
}

input,
textarea,
select,
.form-input,
.form-select,
.form-textarea {
  border-width: 1px !important;
  border-style: solid !important;
}

/* App-style homepage cards deliberately keep the mobile-app rounding. */
.seo-block {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-normal);
  border-radius: 16px !important;
  box-shadow: none;
}
.seo-block-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px !important;
  background: rgba(37, 99, 235, 0.1);
}
.seo-block-icon::before {
  content: '';
  width: 18px;
  height: 18px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4'/%3E%3Cpath d='M8.2 14.5A7 7 0 1 1 15.8 14.5c-1.1.8-1.8 1.7-1.8 3.5h-4c0-1.8-.7-2.7-1.8-3.5Z'/%3E%3C/svg%3E");
}
.seo-block-content {
  min-width: 0;
}
.seo-block h2 {
  margin: 0 0 5px;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.35;
}
.seo-block p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.55;
}
.seo-block p strong {
  color: var(--text-primary);
}
.clue-card {
  border-radius: 16px !important;
}
.clue-length-badge {
  border-radius: 8px !important;
}
.clue-card-summary .clue-tag {
  border-radius: 20px !important;
}
.clue-card-summary .clue-tag::before {
  border-radius: 50% !important;
}

/* App-style sections navigation */
.sections-widget {
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-normal);
  border-radius: 16px !important;
  box-shadow: none;
}
.sections-widget .widget-title {
  margin: 0;
  padding: 2px 2px 10px;
  border-bottom: 1px solid var(--border-normal);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.sections-widget .clue-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sections-widget .clue-list-item {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--border-normal);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}
.sections-widget .clue-list-item:last-child {
  border-bottom: 0;
}
.sections-widget .clue-list-item::after {
  content: '›';
  margin-left: auto;
  padding-left: 8px;
  color: #64748b;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}
.sections-widget .clue-list-item:hover {
  background: rgba(37, 99, 235, 0.035);
  color: #2563eb;
}
.sections-widget .clue-list-item .clue-dot {
  width: 36px !important;
  height: 36px !important;
  display: inline-grid !important;
  place-items: center;
  flex: 0 0 36px;
  margin: 0 9px 0 0;
  border-radius: 12px !important;
  background: rgba(37, 99, 235, 0.1) !important;
  color: #2563eb;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}
.sections-widget .clue-list-item .clue-dot::before { content: '⌕'; }
.sections-widget .clue-list-item .clue-dot.red {
  background: rgba(220, 38, 38, 0.1) !important;
  color: #dc2626;
}
.sections-widget .clue-list-item .clue-dot.red::before { content: '?'; }
.sections-widget .clue-list-item .clue-dot.yellow {
  background: rgba(217, 119, 6, 0.12) !important;
  color: #d97706;
}
.sections-widget .clue-list-item .clue-dot.yellow::before { content: '•'; }
.sections-widget .clue-list-item .clue-dot.green {
  background: rgba(5, 150, 105, 0.1) !important;
  color: #059669;
}
.sections-widget .clue-list-item .clue-dot.green::before { content: '✓'; }

/* App-style top contributors */
.top-helpers-widget {
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-normal);
  border-radius: 16px !important;
  box-shadow: none;
}
.top-helpers-widget .widget-title {
  margin: 0;
  padding: 2px 2px 10px;
  border-bottom: 1px solid var(--border-normal);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.top-helpers-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.top-helper-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 12px;
  gap: 9px;
  align-items: center;
  padding: 9px 2px;
  border-bottom: 1px solid var(--border-normal);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s;
}
.top-helper-row:last-child { border-bottom: 0; }
.top-helper-row:hover { background: rgba(37, 99, 235, 0.035); }
.top-helper-rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50% !important;
  background: var(--helper-color, #94a3b8);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}
.top-helper-body { min-width: 0; }
.top-helper-name {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-helper-level {
  overflow: hidden;
  margin-top: 3px;
  color: #64748b;
  font-size: 0.68rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-helper-points {
  color: var(--helper-color, #2563eb);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}
.top-helper-arrow {
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
}

/* App-style daily crossword activity */
.daily-help-widget {
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-normal);
  border-radius: 16px !important;
  box-shadow: none;
}
.daily-help-widget .widget-title {
  position: relative;
  margin: 0;
  padding: 2px 2px 10px 28px;
  border-bottom: 1px solid var(--border-normal);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 20px;
  text-transform: none;
}
.daily-help-widget .widget-title::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #2563eb;
  -webkit-mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 19h16v2H2V3h2v16Zm3-3 4-4 3 3 5-7 2 1.2-6.4 9-3.6-3.6-2.6 2.8L7 16Z'/%3E%3C/svg%3E");
  mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 19h16v2H2V3h2v16Zm3-3 4-4 3 3 5-7 2 1.2-6.4 9-3.6-3.6-2.6 2.8L7 16Z'/%3E%3C/svg%3E");
}
.daily-help-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.daily-help-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px 2px;
  border-bottom: 1px solid var(--border-normal);
}
.daily-help-row:last-child { border-bottom: 0; }
.daily-help-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px !important;
  background: rgba(37, 99, 235, 0.1);
}
.daily-help-icon::before {
  content: '';
  width: 16px;
  height: 16px;
  background: #2563eb;
  -webkit-mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3v18H4V4h3V2Zm11 8H6v10h12V10ZM6 6v2h12V6H6Z'/%3E%3C/svg%3E");
  mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3v18H4V4h3V2Zm11 8H6v10h12V10ZM6 6v2h12V6H6Z'/%3E%3C/svg%3E");
}
.daily-help-date {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.daily-help-count {
  padding: 5px 7px;
  border-radius: 12px !important;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 0.65rem;
  font-weight: 800;
  white-space: nowrap;
}

/* App-style site header. */
.site-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-normal);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-nav .nav-inner {
  padding-right: 16px;
  padding-left: 16px;
}
.site-nav .app-brand {
  min-width: 0;
  gap: 8px;
  color: var(--text-primary);
  line-height: 1;
}
.site-nav .app-brand:hover {
  color: var(--text-primary);
}
.app-brand-logo {
  width: 36px;
  height: 36px;
  display: block;
  flex: 0 0 36px;
  border-radius: 8px !important;
  object-fit: contain;
}
.app-brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.app-brand-copy strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-brand-copy small {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 0.64rem;
  font-weight: 400;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-nav .nav-links {
  gap: 8px;
}
.site-nav .nav-links > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--border-normal) !important;
  border-radius: 10px !important;
  background: var(--bg-secondary);
  color: var(--text-secondary) !important;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, transform 0.15s ease;
}
.site-nav .nav-links > a:hover {
  border-color: #bfdbfe !important;
  background: #eff6ff;
  color: #2563eb !important;
  transform: translateY(-1px);
}
.site-nav .nav-links > a:active {
  transform: scale(0.97);
}
.site-nav .nav-links > a[aria-current="page"] {
  border-color: #bfdbfe !important;
  background: #eff6ff;
  color: #2563eb !important;
}
.site-nav .nav-links > .nav-btn,
.site-nav .nav-auth-status .nav-auth-action {
  border-color: #2563eb !important;
  border-radius: 10px !important;
  background: #2563eb !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.18);
}
.site-nav .nav-links > .nav-btn:hover,
.site-nav .nav-auth-status .nav-auth-action:hover {
  border-color: #1d4ed8 !important;
  background: #1d4ed8 !important;
  color: #fff !important;
}
.site-nav .nav-auth-status {
  gap: 8px;
}
.site-nav .nav-auth-pill,
.site-nav .nav-auth-status .nav-logout {
  min-height: 38px;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #f8fafc;
  color: #475569;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.site-nav .nav-auth-status .nav-logout:hover {
  border-color: #fecaca !important;
  background: #fef2f2;
  color: #dc2626;
}
.site-nav .nav-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-normal) !important;
  border-radius: 10px !important;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1;
}
.site-nav .nav-toggle:hover {
  border-color: #bfdbfe !important;
  background: #eff6ff;
  color: #2563eb;
}
@media (max-width: 680px) {
  .site-nav .nav-inner { padding-right: 14px; padding-left: 14px; }
  .app-brand-logo {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .app-brand-copy strong { font-size: 1rem; }
  .app-brand-copy small { max-width: 205px; font-size: 0.58rem; }
}
@media (max-width: 390px) {
  .app-brand-copy small { max-width: 170px; }
}

/* App-style mini-game promo */
.home-game-promo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 174px;
  margin-bottom: 24px;
  padding: 20px;
  overflow: hidden;
  border: 0;
  border-radius: 16px !important;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  transition: transform 0.14s ease, background 0.16s ease;
}
.home-game-promo:hover {
  background: #1d4ed8;
  color: #fff;
}
.home-game-promo:active {
  transform: scale(0.985);
}
.home-game-promo:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 3px;
}
.home-game-promo-content {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 80%;
  flex-direction: column;
  align-items: flex-start;
}
.home-game-promo-label {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 1px;
}
.home-game-promo-title {
  margin-bottom: 6px;
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.3;
}
.home-game-promo-text {
  max-width: 420px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  line-height: 1.45;
}
.home-game-promo-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 20px !important;
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}
.home-game-promo-icon {
  position: absolute;
  right: -12px;
  bottom: -14px;
  width: 132px;
  height: 132px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.5 7h9a5.5 5.5 0 0 1 5.2 7.3l-1.4 4A2.5 2.5 0 0 1 16 19l-2-2h-4l-2 2a2.5 2.5 0 0 1-4.3-.7l-1.4-4A5.5 5.5 0 0 1 7.5 7ZM7 11v2H5v2h2v2h2v-2h2v-2H9v-2H7Zm9 2h2v-2h-2v2Zm-2 3h2v-2h-2v2Z'/%3E%3C/svg%3E");
  mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.5 7h9a5.5 5.5 0 0 1 5.2 7.3l-1.4 4A2.5 2.5 0 0 1 16 19l-2-2h-4l-2 2a2.5 2.5 0 0 1-4.3-.7l-1.4-4A5.5 5.5 0 0 1 7.5 7ZM7 11v2H5v2h2v2h2v-2h2v-2H9v-2H7Zm9 2h2v-2h-2v2Zm-2 3h2v-2h-2v2Z'/%3E%3C/svg%3E");
}

/* App-style activity statistics */
.clues-hero {
  padding: 4px;
  margin-bottom: 24px;
  overflow: visible;
  border: 0;
  border-radius: 16px !important;
  background: transparent;
}
.clues-hero::before,
.clues-hero::after {
  display: none;
}
.clues-hero h1 {
  margin: 0 0 4px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}
.clues-hero p {
  max-width: none;
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 0.7rem;
  line-height: 1.45;
}
.clues-hero .hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 0;
}
.clues-hero .hero-stat {
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 8px 3px;
  border: 1px solid #64748b;
  border-radius: 10px !important;
  background: var(--bg-card);
  text-align: center;
}
.clues-hero .hero-stat:nth-child(2) { border-color: #d97706; }
.clues-hero .hero-stat:nth-child(3) { border-color: #059669; }
.clues-hero .hero-stat:nth-child(4) { border-color: #2563eb; }
.clues-hero .hero-stat-val {
  color: #64748b;
  font-family: inherit;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.1;
}
.clues-hero .hero-stat:nth-child(2) .hero-stat-val { color: #d97706; }
.clues-hero .hero-stat:nth-child(3) .hero-stat-val { color: #059669; }
.clues-hero .hero-stat:nth-child(4) .hero-stat-val { color: #2563eb; }
.clues-hero .hero-stat-lbl {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 0.53rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}
@media (max-width: 420px) {
  .clues-hero .hero-stats { gap: 4px; }
  .clues-hero .hero-stat { padding-right: 2px; padding-left: 2px; }
  .clues-hero .hero-stat-lbl { font-size: 0.5rem; }
}
@media (max-width: 520px) {
  .home-game-promo {
    min-height: 160px;
    padding: 16px;
  }
  .home-game-promo-content { max-width: 76%; }
  .home-game-promo-icon {
    width: 112px;
    height: 112px;
  }
}

/* Fixed app-style bottom navigation */
body { padding-bottom: 0; }
.app-bottom-nav {
  display: none;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1100;
  height: calc(74px + var(--safe-area-bottom));
  padding: 8px max(8px, env(safe-area-inset-right)) calc(10px + var(--safe-area-bottom)) max(8px, env(safe-area-inset-left));
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.06);
}
.app-bottom-nav-inner {
  width: 100%;
  max-width: 1100px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 0 auto;
}
.app-bottom-tab {
  min-width: 0;
  height: 100%;
  display: flex;
  flex: 1 1 20%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: color 0.15s, transform 0.12s;
}
.app-bottom-tab:hover,
.app-bottom-tab.active { color: #2563eb; }
.app-bottom-tab:active { transform: scale(0.96); }
.app-bottom-icon {
  width: 22px;
  height: 22px;
  display: block;
  background-color: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}
.app-bottom-icon-home {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10.7 12 3l9 7.7V21h-6v-6H9v6H3V10.7Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10.7 12 3l9 7.7V21h-6v-6H9v6H3V10.7Z'/%3E%3C/svg%3E");
}
.app-bottom-icon-search {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' d='m21 21-4.4-4.4m2.4-5.1A7.5 7.5 0 1 1 4 11.5a7.5 7.5 0 0 1 15 0Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' d='m21 21-4.4-4.4m2.4-5.1A7.5 7.5 0 1 1 4 11.5a7.5 7.5 0 0 1 15 0Z'/%3E%3C/svg%3E");
}
.app-bottom-icon-game {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.5 7h9a5.5 5.5 0 0 1 5.2 7.3l-1.4 4A2.5 2.5 0 0 1 16 19l-2-2h-4l-2 2a2.5 2.5 0 0 1-4.3-.7l-1.4-4A5.5 5.5 0 0 1 7.5 7ZM7 11v2H5v2h2v2h2v-2h2v-2H9v-2H7Zm9 2h2v-2h-2v2Zm-2 3h2v-2h-2v2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.5 7h9a5.5 5.5 0 0 1 5.2 7.3l-1.4 4A2.5 2.5 0 0 1 16 19l-2-2h-4l-2 2a2.5 2.5 0 0 1-4.3-.7l-1.4-4A5.5 5.5 0 0 1 7.5 7ZM7 11v2H5v2h2v2h2v-2h2v-2H9v-2H7Zm9 2h2v-2h-2v2Zm-2 3h2v-2h-2v2Z'/%3E%3C/svg%3E");
}
.app-bottom-icon-ranking {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h10v3h4v2c0 3.3-1.8 5.4-5 6.1A5 5 0 0 1 13 17v2h4v2H7v-2h4v-2a5 5 0 0 1-3-2.9C4.8 13.4 3 11.3 3 8V6h4V3Zm0 5H5c0 1.8.7 3 2.2 3.7A9 9 0 0 1 7 10V8Zm10 0v2c0 .6-.1 1.2-.2 1.7C18.3 11 19 9.8 19 8h-2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h10v3h4v2c0 3.3-1.8 5.4-5 6.1A5 5 0 0 1 13 17v2h4v2H7v-2h4v-2a5 5 0 0 1-3-2.9C4.8 13.4 3 11.3 3 8V6h4V3Zm0 5H5c0 1.8.7 3 2.2 3.7A9 9 0 0 1 7 10V8Zm10 0v2c0 .6-.1 1.2-.2 1.7C18.3 11 19 9.8 19 8h-2Z'/%3E%3C/svg%3E");
}
.app-bottom-icon-profile {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-5 0-9 2.5-9 5.5V22h18v-2.5c0-3-4-5.5-9-5.5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-5 0-9 2.5-9 5.5V22h18v-2.5c0-3-4-5.5-9-5.5Z'/%3E%3C/svg%3E");
}

/* The desktop header uses the same icon navigation as the app. */
.site-nav .nav-links {
  align-self: stretch;
  gap: 2px;
}
.site-nav .nav-links > .header-app-tab {
  width: 64px;
  min-height: 100%;
  padding: 7px 4px 6px;
  flex-direction: column;
  gap: 5px;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent;
  color: #64748b !important;
  font-size: 0.67rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: none;
}
.site-nav .header-app-tab .app-bottom-icon {
  width: 21px;
  height: 21px;
}
.site-nav .nav-links > .header-app-tab:hover {
  border: 0 !important;
  background: #f1f5f9;
  color: #2563eb !important;
  transform: none;
}
.site-nav .nav-links > .header-app-tab:active {
  transform: scale(0.95);
}
.site-nav .nav-links > .header-app-tab.active,
.site-nav .nav-links > .header-app-tab[aria-current="page"] {
  border: 0 !important;
  background: #eff6ff;
  color: #2563eb !important;
}
@media (max-width: 860px) {
  .site-nav .nav-links.open {
    gap: 6px;
  }
  .site-nav .nav-links.open > .header-app-tab {
    width: 100%;
    min-height: 46px;
    padding: 8px 12px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.82rem;
  }
}
@media (max-width: 680px) {
  body { padding-bottom: calc(74px + var(--safe-area-bottom)); }
  .app-bottom-nav { display: block; }
}
