.onboarding-auth-shell {
    align-items: center;
    background: linear-gradient(135deg, var(--znt-surface) 0%, #eef3f8 100%);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.initialising-panel h1 {
    font-family: var(--znt-font-display, inherit);
    color: var(--znt-slate-deep);
}

.initialising-panel {
    color: var(--znt-muted);
    text-align: center;
}

.initialising-panel p {
    margin-top: 16px;
}

@media (max-width: 620px) {
    .onboarding-auth-shell {
        padding: 1rem;
    }
}

/* Settings > Onboarding > Import CSV. These classes are shared by the page and the
   panels it opens, so they live in the module stylesheet rather than scoped CSS. */
.csv-import-page-header {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.csv-import-page-header h2 {
    margin-bottom: 0.25rem;
}

.csv-import-page-sub {
    color: var(--znt-muted);
    margin: 0;
}

.csv-import-inline-status {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.csv-import-step {
    margin-top: 1.5rem;
}

.csv-import-step h5 {
    margin-top: 1.5rem;
}

.csv-import-drop-zone {
    align-items: center;
    background: var(--znt-white);
    border: 1px dashed var(--znt-line);
    border-radius: var(--znt-radius-md);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    min-height: 10rem;
    overflow: hidden;
    padding: 2rem;
    position: relative;
    text-align: center;
}

.csv-import-drop-zone:hover,
.csv-import-drop-zone:focus-within {
    background: var(--rz-primary-lighter);
    border-color: var(--rz-primary);
}

.csv-import-drop-input {
    cursor: pointer;
    height: 100%;
    inset: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
}

.csv-import-drop-icon {
    font-size: 2rem;
}

.csv-import-drop-title {
    font-weight: 600;
}

.csv-import-drop-help {
    color: var(--znt-muted);
}

.csv-import-table {
    border-collapse: collapse;
    margin: 1rem 0;
    width: 100%;
}

.csv-import-table th,
.csv-import-table td {
    border-bottom: 1px solid var(--znt-line);
    overflow-wrap: anywhere;
    padding: 0.5rem;
    text-align: left;
    vertical-align: top;
}

.csv-import-table th {
    color: var(--znt-muted);
    font-weight: 600;
}

.csv-import-table-sub {
    color: var(--znt-muted);
    display: block;
    font-size: 0.875rem;
}

.csv-import-history tbody tr {
    cursor: pointer;
}

.csv-import-history tbody tr:hover > td {
    background: var(--rz-base-100);
}

.csv-import-customer-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.csv-import-customer-controls input {
    min-width: 12rem;
}

.csv-import-user-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.csv-import-user-list li {
    align-items: flex-start;
    border-bottom: 1px solid var(--znt-line);
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.csv-import-user-name {
    display: block;
    font-weight: 600;
}

.csv-import-user-meta,
.csv-import-user-note {
    color: var(--znt-muted);
    display: block;
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

.csv-import-checklist-header {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: space-between;
}

.csv-import-checklist-header span {
    color: var(--znt-muted);
}

.csv-import-checklist-area h4 {
    margin: 1.25rem 0 0.5rem;
}

.csv-import-checklist-area ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.csv-import-checklist-item {
    border-bottom: 1px solid var(--znt-line);
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.csv-import-checklist-item input[type="checkbox"] {
    flex: 0 0 auto;
    height: 1.125rem;
    margin-top: 0.125rem;
    width: 1.125rem;
}

.csv-import-checklist-text {
    min-width: 0;
}

.csv-import-checklist-title {
    display: block;
    font-weight: 600;
}

.csv-import-checklist-item--done .csv-import-checklist-title {
    color: var(--znt-muted);
    text-decoration: line-through;
}

.csv-import-checklist-detail {
    margin: 0.25rem 0;
    overflow-wrap: anywhere;
}

.csv-import-checklist-meta {
    align-items: center;
    color: var(--znt-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.875rem;
    gap: 0.25rem 1rem;
}

.csv-import-progress-row {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1rem;
    overflow-wrap: anywhere;
}

.csv-import-progress-detail {
    color: var(--znt-muted);
    margin: 0.5rem 0 0;
}

.dapple-import-folder-button {
    cursor: pointer;
    position: relative;
}

.dapple-import-folder-button:focus-within {
    outline: 2px solid var(--rz-primary);
    outline-offset: 2px;
}

/* Hidden from when the folder dialog closes (dapple-import.js shows the opening indicator) until a folder fails to load. */
.dapple-import-folder-button--hidden,
.csv-import-step:has(.dapple-import-reading[role="status"]:not([hidden])) .dapple-import-folder-button {
    display: none;
}

/* Visually hidden but focusable, so the label works as the folder picker's button. */
.dapple-import-folder-input {
    height: 1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.dapple-import-reading {
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

.dapple-import-reading[hidden],
.dapple-import-reading:not([hidden]) ~ p[role="status"] {
    display: none;
}

.csv-import-upload-checklist {
    list-style: none;
    margin: 0.75rem 0 1.5rem;
    padding: 0;
}

.csv-import-upload-checklist li {
    align-items: center;
    border-bottom: 1px solid var(--znt-line);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: space-between;
    padding: 0.5rem;
}

.csv-import-upload-checklist--missing {
    background: var(--rz-warning-lighter);
    color: var(--rz-on-warning-lighter);
}

.csv-import-wizard .csv-import-upload-checklist li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.csv-import-upload-checklist-status {
    overflow-wrap: anywhere;
    text-align: left;
}

.csv-import-upload-checklist-name {
    align-items: center;
    display: inline-flex;
    gap: 0.5rem;
    overflow-wrap: anywhere;
}

.csv-import-wizard {
    height: 100%;
}

.csv-import-upload-checklist-object,
.csv-import-upload-checklist-file-name {
    display: block;
}

.csv-import-upload-checklist-object {
    font-weight: 600;
}

.csv-import-upload-checklist-file-name {
    color: var(--znt-muted);
    font-size: 0.875rem;
}

.csv-import-upload-checklist-icon {
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 1.25rem;
    font-weight: 700;
    height: 1.25rem;
    justify-content: center;
    line-height: 1;
    width: 1.25rem;
}

.csv-import-upload-checklist--loaded .csv-import-upload-checklist-icon {
    color: var(--rz-success);
}

.csv-import-checklist-empty {
    color: var(--znt-muted);
}
