/* /anki (src/anki/views.ts). Only the site's tokens, so light, dark and every palette work. */
.ak-notice { margin: 0 0 24px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); color: var(--text-body); font-size: 15px; }
.ak-cards { display: grid; gap: var(--card-gap); margin-bottom: 24px; }
.ak-card { display: flex; flex-direction: column; gap: 8px; padding: var(--card-pad); border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--bg-soft); }
.ak-card .ak-row-actions { margin-top: auto; padding-top: 4px; }
.ak-h2 { font-size: var(--h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--text); margin: 0; }
.ak-h3 { font-size: var(--card-title); font-weight: 600; line-height: 1.3; color: var(--text); margin: 0; }
.ak-row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.ak-dl { display: inline-flex; gap: 6px; flex: none; }
.ak-dl .btn-quiet { color: var(--text-dim); }
.ak-dl .btn-quiet:hover { color: var(--link); }

.ak-help { margin: 0 0 32px; border: 1px solid var(--line); border-radius: var(--card-radius); padding: 0 20px; }
.ak-help summary, .ak-more summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--text); }
.ak-help ul { margin: 0 0 16px; padding-left: 20px; color: var(--text-body); font-size: 15px; line-height: 1.6; }
.ak-help li + li { margin-top: 6px; }

.ak-phase { padding: 24px 0 8px; border-top: 1px solid var(--line); }
.ak-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ak-row-head { margin-bottom: 8px; }
.ak-row-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ak-row-text p { margin: 0; }
.ak-help summary, .ak-more summary { list-style: none; gap: 8px; }
.ak-help summary::-webkit-details-marker, .ak-more summary::-webkit-details-marker { display: none; }
.ak-help summary::after, .ak-more summary::after { content: ''; flex: none; box-sizing: border-box; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s ease; }
.ak-help[open] summary::after, .ak-more[open] summary::after { transform: translateY(2px) rotate(225deg); }
.ak-help summary { justify-content: space-between; }
.ak-more summary { color: var(--link); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .ak-help summary::after, .ak-more summary::after { transition: none; } }
.ak-list { list-style: none; margin: 0 0 8px; padding: 0; }
.ak-list .ak-row { padding: 10px 0; border-top: 1px solid var(--line); }
.ak-list .ak-row-text a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.ak-list .ak-row-text a:hover { color: var(--link); text-decoration: underline; }
.ak-foot { margin-top: 32px; }
@media (pointer: coarse) { .ak-list .ak-row-text a { display: inline-flex; align-items: center; min-height: 44px; } .ak-list .ak-row { padding: 2px 0; } }

/* Very narrow screens: the buttons drop under the title instead of squeezing it. */
@media (max-width: 339px) {
  .ak-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}
