/* ============================================================
   v0.26.1.0: /import/gitlab (Components/Pages/ImportGitLab.razor). A narrow reading column, phone
   first: the form on top, the issue list scrolling inside itself under it, the submit always in
   reach. The column does not stretch on a wide monitor: a form this size has no use for 1600px.
   ============================================================ */
.gli {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
    padding: 12px 16px 24px;
    color: var(--chronos-fg-primary);
}
.gli-title {
    margin: 0;
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
}
.gli-lead {
    margin: 0;
    font-size: var(--text-md);
    color: var(--chronos-fg-secondary);
}
.gli-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--chronos-outline);
    border-radius: var(--radius-card);
    background: var(--chronos-card-bg);
}
.gli-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gli-label {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
}
/* 16px on purpose: below that, iOS zooms the page when the field takes focus. */
.gli-input {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    font: inherit;
    font-size: var(--text-lg);
    color: var(--chronos-fg-primary);
    border: 1px solid var(--chronos-outline);
    border-radius: var(--radius-card);
    background: var(--chronos-bg);
    box-sizing: border-box;
}
.gli-hint {
    font-size: var(--text-sm);
    color: var(--chronos-fg-secondary);
}
.gli-hint a { color: var(--chronos-violet); }
.gli-load,
.gli-submit {
    min-height: 44px;
    padding-inline: 18px;
}
.gli-load { align-self: flex-start; }
.gli-error {
    margin: 0;
    font-size: var(--text-md);
    color: var(--chronos-red);
}
.gli-empty {
    margin: 0;
    font-size: var(--text-md);
    color: var(--chronos-fg-secondary);
}
.gli-result {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    font-size: var(--text-md);
    border: 1px solid var(--chronos-outline);
    border-radius: var(--radius-card);
    background: var(--chronos-card-bg);
}
.gli-result p { margin: 0; }
.gli-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
/* The summary line over the list: what the ticked rows will do, and where they go. Fixed-size
   cells, so a number gaining a digit does not move anything. */
.gli-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid var(--chronos-outline);
    border-radius: var(--radius-card);
    background: var(--chronos-card-bg);
}
.gli-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0;
}
.gli-stat {
    display: flex;
    flex-direction: column;
    min-width: 56px;
}
.gli-stat dt {
    font-size: var(--text-xs);
    color: var(--chronos-fg-secondary);
}
.gli-stat dd {
    margin: 0;
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    font-variant-numeric: tabular-nums;
}
.gli-dest {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--chronos-fg-secondary);
}
/* The list scrolls inside itself, so a hundred issues leave the submit where it is and opening a
   row grows the scroll, not the window. The 2px padding keeps a card's rim and focus ring from
   being clipped by the scroller. */
.gli-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 52vh;
    margin: 0;
    padding: 2px;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
}
.gli-row { flex: none; }
/* The card is .task-row from the board (surface, rim, title, chips, deadline pill); these rules only
   fit it to a list of rows that can be ticked and opened. */
.gli-head {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.gli-pick {
    display: flex;
    flex: 1;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    cursor: pointer;
}
.gli-pick input[type="checkbox"] { margin-top: 1px; }
/* min-width: 0 all the way down: a long unbroken URL in an issue's first line otherwise sets the
   width of the whole card and pushes the text and the chips past its edge. */
.gli-pick .task-body { flex: 1; min-width: 0; }
.gli-card .task-text { min-width: 0; max-width: 100%; }
.gli-card .task-title { display: block; overflow-wrap: anywhere; }
.gli-card .task-supporting { overflow-wrap: anywhere; }
.gli-card .task-labels { display: flex; flex-wrap: wrap; gap: 4px; }
.gli-card .label-chip { cursor: inherit; max-width: 100%; }
.gli-new {
    padding: 0 5px;
    border-radius: var(--radius-pill);
    background: var(--chronos-violet);
    color: #fff;
    font-size: 0.85em;
    font-weight: var(--weight-bold);
}
.gli-card .gli-no-due {
    color: var(--chronos-fg-muted);
    background: transparent;
    border: 1px dashed var(--chronos-outline);
}
.gli-row-done {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--chronos-fg-secondary);
}
/* 40px to tap, but it overhangs the card's padding with negative margins, so it adds no height. */
.gli-expand {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-block: -9px;
    margin-inline-end: -8px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--chronos-fg-muted);
}
.gli-expand:hover,
.gli-card.is-open .gli-expand { color: var(--chronos-violet); }
.gli-expand .material-icons { font-size: 22px; }
.gli-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--chronos-outline);
}
.gli-detail .markdown-body {
    max-height: 260px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.gli-dropped {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--chronos-fg-secondary);
    overflow-wrap: anywhere;
}
.gli-card.is-done { opacity: 0.65; }
.gli-card.is-done .gli-pick { cursor: default; }
.gli-card.is-done .task-body:hover .task-title { color: inherit; }
.gli-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
/* A phone: the deadline drops under the text instead of squeezing the title into half the card. */
@media (max-width: 480px) {
    .gli-card .task-body { flex-direction: column; gap: 4px; }
    .gli-card .task-text { flex: 0 1 auto; }
    .gli-card .task-due { align-self: flex-start; }
}
.gli-drafts {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: var(--text-md);
    cursor: pointer;
}
