@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("assets/fonts/inter-latin.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("assets/fonts/ibm-plex-mono-latin-600.woff2") format("woff2");
}

:root {
    font-family: "Inter", sans-serif;
    color: #14181a;
    background: #fff;
    --muted: #5e6366;
    --border: #c4c9cc;
    --green: #15a130;
    --blue: #0969da;
    letter-spacing: 0;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.home-shell { min-height: 100svh; padding: 28px 33px; }
.home-header {
    min-height: 49px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-radius: 8px;
    background: rgba(244, 244, 244, 0.5);
}
.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 22px;
    line-height: 29px;
    font-weight: 600;
    color: #075410;
}
.home-brand img { width: 30px; height: 30px; }
.home-account { min-width: 0; }
.home-login-btn, .home-logout-btn {
    border: 0;
    border-radius: 6px;
    min-height: 32px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
}
.home-login-btn { background: var(--green); color: #fff; min-width: 76px; }
.home-login-btn:hover, .start-button:hover { background: #108329; }
.home-user-card { display: flex; align-items: center; gap: 10px; min-width: 0; }
.account-status { width: 8px; height: 8px; border-radius: 50%; background: #3fb950; flex: none; }
#user-email { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.home-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.home-logout-btn { background: transparent; color: var(--muted); padding-inline: 8px; }
.home-logout-btn:hover { background: #e9efea; color: #14181a; }
.home-main {
    min-height: calc(100svh - 105px);
    display: grid;
    place-items: center;
    padding: 40px 0 89px;
}
.start-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: min(734px, 100%); }
.start-card {
    min-height: 220px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}
.start-card-title { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.start-card-title img { width: 24px; height: 24px; flex: none; }
.start-card:not(.start-card--design) .start-card-title img { filter: invert(30%) sepia(98%) saturate(1934%) hue-rotate(198deg) brightness(89%); }
.start-card--design .start-card-title img { filter: invert(40%) sepia(30%) saturate(1100%) hue-rotate(80deg); }
h1, h2 { margin: 0; font-size: 20px; font-weight: 600; line-height: 24px; overflow-wrap: anywhere; }
.start-card p { margin: 8px 0 0; font-size: 12px; line-height: 18px; color: var(--muted); }
.file-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 70px;
    padding: 12px 16px;
    border: 1px dashed var(--blue);
    border-radius: 7px;
    background: #f6f8fa;
    color: #1f2328;
    text-align: left;
}
.file-picker:hover { background: #edf4fc; }
.file-picker:disabled { cursor: progress; opacity: 0.65; }
.file-picker > img { width: 24px; height: 24px; flex: none; }
.file-picker span { min-width: 0; }
.file-picker strong { display: block; font-size: 13px; line-height: 16px; font-weight: 500; }
.file-picker small { display: block; margin-top: 2px; font-size: 11px; line-height: 15px; color: #656d76; }
.start-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    width: min(190px, 100%);
    padding: 8px 16px;
    border-radius: 6px;
    background: var(--green);
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    font-weight: 600;
}
.start-button img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.import-error { grid-column: 1 / -1; margin: 0; color: #b42318; font-size: 12px; line-height: 18px; }

@media (max-width: 640px) {
    .home-shell { padding: 16px; }
    .home-header { padding: 8px 12px; gap: 12px; flex-wrap: wrap; }
    .home-brand { font-size: 20px; }
    .home-main { min-height: calc(100svh - 97px); padding: 40px 0; }
    .start-grid { grid-template-columns: minmax(0, 1fr); max-width: 361px; }
    .home-user-card { gap: 6px; }
    #user-email { max-width: 110px; }
}