/* ============================================================
   Import wave (2026-11-08): the import hub (/import) and the Trello and Jira pages, on top of
   57-import.css, whose .gli column, form, list and cards they reuse as they are. Phone first. The hub's
   tiles are one narrow centred group (no full-width cards on a wide monitor); the Trello file button has
   a fixed size, so picking a file moves nothing below. (The Aevio paste page was removed 2026-11-08.)
   Logical properties only: Hebrew mirrors without a rule of its own, except the tile's arrow.
   ============================================================ */

/* ---- the hub ---- */
.imp-hub { max-width: 520px; }
.imp-tiles {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.imp-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 12px 14px;
    border: 1px solid var(--chronos-outline);
    border-radius: var(--radius-card);
    background: var(--chronos-card-bg);
    color: var(--chronos-fg-primary);
    text-decoration: none;
    box-sizing: border-box;
}
.imp-tile:hover,
.imp-tile:focus-visible { border-color: var(--chronos-violet); }
.imp-tile:focus-visible { outline: 2px solid var(--chronos-violet); outline-offset: 2px; }
/* A monogram on the source's own colour: no logos are shipped, and a letter on a brand colour is enough
   to tell four doors apart at a glance. White on every one of them in both themes. */
.imp-mark {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-card);
    color: #fff;
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
}
.imp-mark-trello { background: #0C66E4; }
.imp-mark-jira { background: #0052CC; }
.imp-mark-gitlab { background: #E24329; }
.imp-tile-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.imp-tile-name {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
}
.imp-tile-hint {
    font-size: var(--text-sm);
    color: var(--chronos-fg-secondary);
    overflow-wrap: anywhere;
}
.imp-tile-go {
    flex: none;
    color: var(--chronos-fg-muted);
}
[dir="rtl"] .imp-tile-go { transform: scaleX(-1); }

/* ---- the source pages ---- */
.imp-source-name {
    margin: 0;
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    overflow-wrap: anywhere;
}

/* Trello: the label is the button; the native picker inside it is out of sight but still takes the
   keyboard's focus, which the label then shows. One line, a fixed height: a long file name is cut. */
.imp-file {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    max-width: 100%;
    min-height: 44px;
    padding-inline: 14px;
    border: 1px dashed var(--chronos-outline);
    border-radius: var(--radius-card);
    background: var(--chronos-bg);
    color: var(--chronos-fg-primary);
    font-size: var(--text-md);
    cursor: pointer;
    box-sizing: border-box;
}
.imp-file:hover { border-color: var(--chronos-violet); }
.imp-file:focus-within { outline: 2px solid var(--chronos-violet); outline-offset: 2px; }
.imp-file .material-icons { font-size: 20px; color: var(--chronos-violet); }
.imp-file-input {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}
.imp-file-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ---- additions to the shared preview card ---- */
.imp-subcount {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--chronos-fg-secondary);
}
.imp-subcount .material-icons { font-size: 15px; }
.imp-subtasks {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: var(--text-sm);
}
.imp-subtasks-title {
    font-weight: var(--weight-semibold);
    color: var(--chronos-fg-secondary);
}
.imp-subtasks ul {
    margin: 0;
    padding-inline-start: 20px;
    max-height: 160px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.imp-subtasks li { overflow-wrap: anywhere; }

/* ---- the plaque under the calendar (Shared/ImportPromo.razor) ----
   The calendar card's own look (.card: surface, rim, radius, shadow), in its column and exactly its
   width. Hidden by default and shown only on a desktop tall enough to hold it under the calendar
   with the board still one screen (55-home-fit.css): from 1024px wide and 820px tall. [hidden] is
   honoured explicitly, because an author display rule beats the browser's own (the pay page lesson).
   overflow: hidden and every child inside the padding: nothing hangs past the card's border. */
.imp-promo {
    display: none;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    padding: 12px 14px 14px;
    overflow: hidden;
    box-sizing: border-box;
    color: var(--chronos-fg-primary);
}
@media (min-width: 1024px) and (min-height: 820px) {
    .imp-promo:not([hidden]) {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
}
/* The studio board shows the specimen at any size. */
.imp-promo.is-static:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.imp-promo[hidden] { display: none; }
.imp-promo-title {
    margin: 0;
    padding-inline-end: 28px;
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.imp-promo-lead {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--chronos-fg-secondary);
    overflow-wrap: anywhere;
}
.imp-promo-close {
    position: absolute;
    top: 6px;
    inset-inline-end: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--chronos-fg-muted);
}
.imp-promo-close:hover { color: var(--chronos-fg-primary); }
.imp-promo-close:focus-visible { outline: 2px solid var(--chronos-violet); outline-offset: -2px; }
.imp-promo-close .material-icons { font-size: 18px; }
.imp-promo-marks {
    display: grid;
    /* One column per source in ImportHub.Sources (Trello, Jira, GitLab since Aevio left). */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}
.imp-promo-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 6px 2px;
    border: 1px solid var(--chronos-outline);
    border-radius: var(--radius-card);
    background: var(--chronos-bg);
    color: var(--chronos-fg-primary);
    text-decoration: none;
    box-sizing: border-box;
}
.imp-promo-mark:hover { border-color: var(--chronos-violet); }
.imp-promo-mark:focus-visible { outline: 2px solid var(--chronos-violet); outline-offset: -2px; }
.imp-promo-mark .imp-mark {
    width: 28px;
    height: 28px;
    font-size: var(--text-md);
}
.imp-promo-name {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
}

@media (max-width: 480px) {
    .imp-tile { min-height: 64px; gap: 12px; }
    .imp-mark { width: 40px; height: 40px; }
}
