/* Storyteller — V1.7 Import Existing Work */

.import-material {
    position: fixed;
    inset: 0;
    z-index: 1150;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 20px 40px;
}

.import-material[hidden] {
    display: none;
}

.import-material-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.28);
    animation: st-fade-soft 0.2s ease both;
}

.import-material-panel {
    position: relative;
    width: min(560px, 100%);
    max-height: min(78vh, 760px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(17, 17, 17, 0.18);
    padding: 22px 22px 26px;
    animation: st-fade-in 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.import-material-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.import-material-eyebrow {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #aaa;
}

.import-material-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #888;
    cursor: pointer;
}

.import-material-close:hover {
    background: #f6f6f6;
    color: #111;
}

.import-material-title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.03em;
    color: #111;
}

.import-material-copy {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.5;
    color: #666;
}

.import-material-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.import-material-actions .project-home-primary,
.import-material-actions .project-resume-secondary {
    width: 100%;
    max-width: none;
    margin: 0;
}

.import-material-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    text-align: left;
}

.import-material-field span {
    font-size: 13px;
    color: #888;
}

.import-material-field span em {
    font-style: normal;
    color: #bbb;
}

.import-material-field input,
.import-material-field select,
.import-material-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 16px;
}

.import-material-field textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.5;
}

.import-material-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-bottom: 16px;
    border: 1px dashed #ccc;
    border-radius: 14px;
    background: #fafafa;
    color: #333;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.import-material-file-label:hover {
    background: #f4f4f4;
    border-color: #bbb;
}

.import-material-file-label input {
    display: none;
}

.import-material-status {
    margin: 0 0 14px;
    font-size: 14px;
    color: #777;
    text-align: center;
}

.import-material-status.is-error {
    color: #8a4b4b;
}

.import-material-eyebrow-inline {
    margin: 0 0 10px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #aaa;
}

.import-understanding-detail {
    margin: 8px 0 18px;
    padding-top: 8px;
}

.import-understanding-list {
    margin: 0 0 8px;
    padding-left: 1.2em;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

.import-understanding-list li + li {
    margin-top: 6px;
}

body.import-material-open {
    overflow: hidden;
}

.projects-begin-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.projects-begin-choice {
    width: 100%;
    min-height: 48px;
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.projects-begin-choice:hover {
    background: #f7f7f7;
    border-color: #ccc;
}

.projects-begin-choice.is-primary {
    background: #111;
    border-color: #111;
    color: #fff;
}

.projects-begin-choice.is-primary:hover {
    background: #2a2a2a;
}
