#terminal-entry {
    --terminal-surface: rgba(37, 34, 43, 0.94);
    --terminal-surface-strong: rgba(44, 40, 50, 0.95);
    --terminal-border: rgba(170, 151, 166, 0.24);
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(12px, 2.6vw, 24px);
    overflow: auto;
    font-family: 'JetBrains Mono', monospace;
    color: #ffe1ec;
    background:
        radial-gradient(circle at 13% 4%, rgba(203, 145, 164, 0.11), transparent 30%),
        radial-gradient(circle at 86% 18%, rgba(118, 153, 188, 0.12), transparent 32%),
        radial-gradient(circle at 74% 88%, rgba(176, 142, 194, 0.09), transparent 26%),
        linear-gradient(180deg, #24242e 0%, #191a22 100%);
    transition: opacity 0.8s ease, visibility 0.8s ease;
    -webkit-overflow-scrolling: touch;
}

#terminal-entry::before,
#terminal-entry::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

#terminal-entry::before {
    background:
        radial-gradient(circle at top, rgba(255, 231, 223, 0.09), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 46%);
}

#terminal-entry::after {
    opacity: 0.18;
    background:
        radial-gradient(circle, rgba(195, 167, 178, 0.18) 1px, transparent 1.2px) center / 18px 18px,
        radial-gradient(circle, rgba(118, 153, 188, 0.16) 0.8px, transparent 1px) center / 36px 36px;
}

#terminal-entry.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.terminal-stage {
    position: relative;
    z-index: 1;
    width: min(1560px, calc(100vw - 24px));
}

.terminal-shell {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 24px);
    border-radius: 28px;
    border: 1px solid var(--terminal-border);
    background:
        linear-gradient(180deg, var(--terminal-surface-strong) 0%, var(--terminal-surface) 100%);
    box-shadow:
        0 0 0 1px rgba(255, 246, 242, 0.035),
        0 32px 82px rgba(10, 9, 16, 0.5),
        0 22px 68px rgba(109, 75, 93, 0.12);
    overflow: hidden;
    backdrop-filter: blur(18px);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

#terminal-entry.is-launching .terminal-shell {
    transform: translateY(-4px) scale(1.006);
    border-color: rgba(154, 191, 174, 0.42);
    box-shadow:
        0 0 0 1px rgba(154, 191, 174, 0.1),
        0 34px 88px rgba(10, 9, 16, 0.56),
        0 20px 54px rgba(109, 75, 93, 0.14);
}

.terminal-shell-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 244, 239, 0.07);
    color: rgba(255, 223, 232, 0.7);
}

.terminal-shell-controls {
    display: flex;
    gap: 10px;
}

.terminal-shell-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}

.terminal-shell-dot--close { background: #ff6b73; }
.terminal-shell-dot--minimize { background: #f7c948; }
.terminal-shell-dot--zoom { background: #49d56f; }

.terminal-shell-title {
    justify-self: center;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: rgba(255, 216, 229, 0.58);
}

.terminal-shell-badge {
    font-size: 12px;
    color: rgba(196, 226, 255, 0.86);
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(166, 188, 211, 0.2);
    background: rgba(166, 188, 211, 0.075);
}

.terminal-shell-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(18px, 2vw, 28px);
    overflow: auto;
}

.terminal-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(360px, 0.58fr);
    gap: clamp(16px, 1.8vw, 24px);
    align-items: start;
}

.terminal-hero-main {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.terminal-line {
    opacity: 0;
    transform: translateY(10px);
    animation: terminalFadeIn 0.68s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.terminal-eyebrow {
    font-size: 20px;
    color: #ff9fbe;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.terminal-name {
    margin: 8px 0 10px;
    font-size: 72px;
    line-height: 1;
    letter-spacing: 0;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(90deg, #ff93b7 0%, #d984ff 44%, #75d6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.terminal-nav-target {
    position: relative;
    transition: transform 0.22s ease, opacity 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.terminal-nav-inline,
.terminal-nav-section,
.terminal-nav-panel {
    border: 1px solid transparent;
    border-radius: 18px;
}

.terminal-nav-inline {
    width: fit-content;
    max-width: 100%;
    padding: 8px 10px;
    margin-left: -10px;
}

.terminal-nav-section {
    padding: 10px 12px;
    margin-left: -12px;
    margin-right: -4px;
}

.terminal-nav-panel {
    padding: 10px 12px;
    margin-left: -12px;
    margin-right: -12px;
}

.terminal-nav-marker.is-active {
    transform: translateX(3px);
    border-color: rgba(255, 181, 205, 0.2);
    background:
        linear-gradient(180deg, rgba(255, 248, 244, 0.06), rgba(255, 248, 244, 0.018)),
        rgba(226, 166, 183, 0.055);
    box-shadow:
        0 14px 30px rgba(10, 9, 16, 0.14),
        0 0 0 1px rgba(255, 181, 205, 0.08);
}

.terminal-nav-target:not(.is-active) .terminal-nav-cursor {
    opacity: 0;
    animation: none;
}

.terminal-nav-target.is-active .terminal-nav-cursor {
    opacity: 0.74;
    animation: blink 1s step-end infinite;
}

.terminal-name.terminal-nav-target {
    width: fit-content;
}

.terminal-name.terminal-nav-target.is-active {
    filter: drop-shadow(0 0 18px rgba(217, 132, 255, 0.12));
}

.terminal-name-cursor {
    display: inline-block;
    width: 0.075em;
    height: 0.9em;
    margin-left: 0.08em;
    background: linear-gradient(180deg, rgba(255, 196, 216, 0.82), rgba(138, 213, 255, 0.82));
    vertical-align: -0.08em;
    border-radius: 999px;
    opacity: 0;
}

.terminal-role {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.28;
    color: rgba(255, 232, 240, 0.92);
}

.terminal-role.terminal-nav-inline,
.terminal-summary.terminal-nav-inline {
    display: block;
}

.terminal-summary {
    max-width: 780px;
    margin: 0;
    font-size: 16px;
    line-height: 1.62;
    color: rgba(255, 220, 233, 0.72);
}

.terminal-summary-accent {
    color: #ff9fbe;
    font-weight: 600;
}

.terminal-quickfacts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.terminal-quickfacts.terminal-nav-section {
    width: fit-content;
    max-width: 100%;
    padding-bottom: 8px;
}

.terminal-quickfact,
.terminal-chip {
    --terminal-tone-bg: rgba(255, 239, 233, 0.055);
    --terminal-tone-border: rgba(226, 166, 183, 0.2);
    --terminal-tone-text: #ffd5e2;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--terminal-tone-border);
    background:
        linear-gradient(180deg, rgba(255, 248, 244, 0.06), rgba(255, 248, 244, 0.018)),
        var(--terminal-tone-bg);
    color: var(--terminal-tone-text);
    box-shadow: 0 10px 24px rgba(10, 9, 16, 0.14);
}

.terminal-quickfact {
    font-size: 11px;
    letter-spacing: 0.03em;
}

.terminal-chip {
    justify-content: center;
    min-width: 0;
    font-size: 12px;
    white-space: nowrap;
}

.terminal-tone-pink {
    --terminal-tone-bg: rgba(205, 121, 142, 0.12);
    --terminal-tone-border: rgba(226, 166, 183, 0.22);
    --terminal-tone-text: #ffd0dd;
}

.terminal-tone-violet {
    --terminal-tone-bg: rgba(170, 151, 191, 0.11);
    --terminal-tone-border: rgba(184, 169, 201, 0.2);
    --terminal-tone-text: #e9dfff;
}

.terminal-tone-blue {
    --terminal-tone-bg: rgba(127, 158, 190, 0.12);
    --terminal-tone-border: rgba(145, 174, 203, 0.2);
    --terminal-tone-text: #d9eeff;
}

.terminal-building {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 244, 239, 0.07);
}

.terminal-building.terminal-nav-section {
    padding-top: 10px;
    border-top-color: transparent;
}

.terminal-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #ffb7cf;
    font-size: 14px;
    font-weight: 600;
}

.terminal-section-icon {
    font-size: 16px;
    color: #ff8fab;
}

.terminal-project-list {
    list-style: none;
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.terminal-project-item {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.terminal-project-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 0.75em;
    background: currentColor;
    box-shadow: 0 0 0 5px rgba(255, 244, 239, 0.035);
}

.terminal-project-item strong {
    display: block;
    color: #ffe6ef;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
}

.terminal-project-item span {
    display: block;
    color: rgba(255, 220, 233, 0.6);
    font-size: 13px;
    line-height: 1.45;
}

.terminal-command-preview {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 244, 239, 0.07);
    font-size: 17px;
    line-height: 1.5;
    color: #ffd7e4;
}

.terminal-command-preview.terminal-nav-target {
    border-radius: 14px;
    border-top-color: transparent;
    border-color: transparent;
}

.terminal-command-preview.terminal-nav-target.is-active {
    background: rgba(255, 248, 244, 0.04);
    border-color: rgba(226, 166, 183, 0.16);
    box-shadow: 0 10px 24px rgba(10, 9, 16, 0.12);
}

.terminal-command-preview.terminal-nav-target.is-active .terminal-command {
    color: #fff0f5;
}

.terminal-prompt {
    color: rgba(255, 143, 171, 0.72);
    font-weight: 600;
}

.terminal-command {
    color: #ffe2ec;
    font-weight: 600;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 1.05em;
    background: rgba(255, 190, 213, 0.82);
    vertical-align: -0.12em;
    margin-left: 4px;
    border-radius: 2px;
    opacity: 0;
}

.terminal-detail-panel {
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(170, 151, 166, 0.22);
    background:
        linear-gradient(180deg, rgba(48, 43, 54, 0.72), rgba(33, 32, 41, 0.78));
    box-shadow: 0 18px 36px rgba(10, 9, 16, 0.22);
}

.terminal-panel-section + .terminal-panel-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 244, 239, 0.08);
}

.terminal-panel-section.terminal-nav-panel {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.terminal-panel-section.terminal-nav-panel + .terminal-panel-section.terminal-nav-panel {
    margin-top: 8px;
}

.terminal-panel-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #ff9fbe;
    font-size: 14px;
    font-weight: 700;
}

.terminal-panel-icon {
    color: #bb8fff;
    font-size: 16px;
}

.terminal-detail-panel p {
    margin: 0;
    color: rgba(255, 222, 235, 0.72);
    font-size: 14px;
    line-height: 1.56;
}

.terminal-panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 7px;
}

.terminal-panel-list li {
    position: relative;
    padding-left: 16px;
    color: rgba(255, 230, 239, 0.78);
    font-size: 13.5px;
    line-height: 1.38;
}

.terminal-panel-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #b98cff;
}

.terminal-chip-cloud {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.terminal-panel-section--closing {
    padding-bottom: 2px;
}

.terminal-panel-note {
    color: #ffb8cf;
}

.terminal-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.terminal-metric {
    --terminal-metric-glow: rgba(255, 143, 171, 0.2);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 14px 12px;
    border-radius: 16px;
    border: 1px solid var(--terminal-tone-border);
    background:
        linear-gradient(180deg, rgba(44, 40, 50, 0.78), rgba(32, 31, 40, 0.9)),
        var(--terminal-tone-bg);
    box-shadow: 0 16px 30px rgba(10, 9, 16, 0.16);
}

.terminal-metric-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 248, 244, 0.045);
    color: var(--terminal-tone-text);
    font-size: 18px;
    box-shadow: inset 0 0 0 1px rgba(255, 244, 239, 0.06);
}

.terminal-metric-value {
    color: var(--terminal-tone-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.terminal-metric-label {
    color: rgba(255, 220, 233, 0.58);
    font-size: 12px;
    line-height: 1.45;
}

.terminal-launch {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    gap: 0;
    padding-top: 2px;
    width: min(500px, 100%);
    margin-inline: auto;
}

.terminal-hint {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: rgba(255, 187, 210, 0.76);
}

.terminal-keycap {
    min-width: 58px;
    height: 32px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 181, 205, 0.35);
    background: rgba(170, 151, 166, 0.09);
    color: #ffd5e2;
    font-family: inherit;
    font-size: 12px;
}

.terminal-hint-divider {
    width: 1px;
    height: 14px;
    background: rgba(170, 151, 166, 0.24);
}

.terminal-enter-button {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 181, 205, 0.44);
    background:
        linear-gradient(180deg, rgba(51, 45, 57, 0.92), rgba(35, 33, 43, 0.92));
    color: #ffd7e4;
    font-family: inherit;
    font-size: 16px;
    letter-spacing: 0.03em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

#terminal-entry.is-launching .terminal-enter-button {
    display: none;
}

.terminal-enter-button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 181, 205, 0.82);
    box-shadow: 0 16px 30px rgba(10, 9, 16, 0.26);
    background:
        linear-gradient(180deg, rgba(58, 51, 63, 0.96), rgba(40, 37, 49, 0.96));
}

.terminal-enter-button:focus-visible {
    outline: 2px solid rgba(255, 181, 205, 0.7);
    outline-offset: 4px;
}

.terminal-enter-button:disabled {
    cursor: default;
    transform: none;
    color: #9ae1a9;
    border-color: rgba(121, 224, 141, 0.48);
    background:
        linear-gradient(180deg, rgba(33, 48, 42, 0.94), rgba(28, 40, 36, 0.94));
    box-shadow: none;
}

.terminal-enter-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255, 181, 205, 0.18);
    background: rgba(255, 248, 244, 0.045);
    font-size: 16px;
}

.terminal-progress-wrap {
    width: 100%;
    min-height: 0;
}

.terminal-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #79e08d;
    font-size: 14px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 248, 244, 0.08), rgba(255, 255, 255, 0.02)),
        linear-gradient(180deg, rgba(45, 43, 54, 0.96), rgba(31, 31, 40, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 244, 239, 0.08),
        0 18px 42px rgba(10, 9, 16, 0.22);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(0);
    padding-top: 0;
    padding-bottom: 0;
    border-color: transparent;
    transition: opacity 0.22s ease, max-height 0.22s ease, padding 0.22s ease, border-color 0.22s ease;
}

#terminal-entry.is-launching .terminal-progress {
    opacity: 1;
    max-height: 84px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-color: rgba(255, 255, 255, 0.08);
}

.terminal-progress-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(188, 245, 198, 0.88);
}

.terminal-battery {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.terminal-battery-shell {
    flex: 1;
    padding: 4px;
    border-radius: 18px;
    border: 1px solid rgba(214, 225, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(122, 105, 118, 0.28), rgba(55, 51, 63, 0.56)),
        linear-gradient(180deg, rgba(255, 248, 244, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 10px 24px rgba(0, 0, 0, 0.22);
}

.terminal-progress-track {
    flex: 1;
    height: 22px;
    border-radius: 14px;
    overflow: hidden;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255, 248, 244, 0.052) 0 18px,
            rgba(38, 36, 47, 0.86) 18px 20px
        ),
        linear-gradient(180deg, rgba(34, 33, 43, 0.96), rgba(18, 18, 25, 0.98));
    box-shadow:
        inset 0 0 0 1px rgba(190, 222, 255, 0.08),
        inset 0 10px 18px rgba(0, 0, 0, 0.28);
}

.terminal-progress-fill {
    width: 0;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(139, 190, 177, 0.92), rgba(154, 210, 171, 0.95) 48%, rgba(226, 210, 155, 0.96));
    box-shadow:
        0 0 22px rgba(139, 190, 177, 0.16),
        0 0 22px rgba(226, 210, 155, 0.18),
        inset 0 0 18px rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    position: relative;
    transition: width 0.12s linear;
}

.terminal-progress-fill::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.12) 0 14px,
            rgba(255, 255, 255, 0.02) 14px 18px
        );
    opacity: 0.42;
}

.terminal-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.28) 46%, transparent 100%);
    mix-blend-mode: screen;
    animation: terminalBatterySweep 0.85s linear infinite;
}

.terminal-battery-cap {
    width: 11px;
    height: 18px;
    border-radius: 0 6px 6px 0;
    background:
        linear-gradient(180deg, rgba(245, 235, 226, 0.88), rgba(178, 163, 174, 0.76));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 0 10px rgba(188, 210, 255, 0.14);
}

.terminal-progress-value {
    min-width: 78px;
    text-align: right;
    color: rgba(225, 255, 231, 0.96);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
}

@keyframes terminalFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes terminalBatterySweep {
    from { transform: translateX(-120%); }
    to { transform: translateX(120%); }
}

@media (min-width: 1181px) and (max-height: 1120px) {
    .terminal-shell-body {
        gap: 14px;
        padding: 18px 24px 18px;
    }

    .terminal-hero-layout {
        grid-template-columns: minmax(0, 1.48fr) minmax(340px, 0.52fr);
        gap: 18px;
    }

    .terminal-name {
        font-size: 60px;
        margin: 6px 0 8px;
    }

    .terminal-role {
        margin-bottom: 8px;
        font-size: 19px;
    }

    .terminal-summary {
        font-size: 14px;
        line-height: 1.54;
    }

    .terminal-quickfacts {
        margin-top: 10px;
    }

    .terminal-building {
        margin-top: 12px;
        padding-top: 10px;
    }

    .terminal-command-preview {
        margin-top: 10px;
        padding-top: 10px;
    }

    .terminal-project-list {
        gap: 7px;
    }

    .terminal-detail-panel {
        padding: 16px;
    }

    .terminal-panel-section + .terminal-panel-section {
        margin-top: 10px;
        padding-top: 10px;
    }

    .terminal-detail-panel p,
    .terminal-panel-list li {
        font-size: 12.5px;
        line-height: 1.34;
    }

    .terminal-chip-cloud,
    .terminal-metric-grid {
        gap: 8px;
    }

    .terminal-metric {
        padding: 12px 10px;
    }

    .terminal-enter-button {
        min-height: 50px;
    }
}

@media (max-width: 1180px) {
    .terminal-hero-layout {
        grid-template-columns: 1fr;
    }

    .terminal-detail-panel {
        max-width: 760px;
    }

    .terminal-chip-cloud {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .terminal-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    #terminal-entry {
        align-items: flex-start;
    }

    .terminal-stage {
        width: 100%;
    }

    .terminal-shell {
        height: calc(100dvh - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 24px;
    }

    .terminal-shell-header {
        grid-template-columns: auto 1fr;
        min-height: auto;
        padding: 18px 18px 14px;
    }

    .terminal-shell-badge {
        display: none;
    }

    .terminal-shell-body {
        min-height: 0;
        overflow: auto;
        padding: 26px 18px 28px;
        gap: 24px;
    }

    .terminal-name {
        font-size: 64px;
    }

    .terminal-role {
        font-size: 21px;
    }

    .terminal-summary {
        font-size: 16px;
    }

    .terminal-command-preview {
        font-size: 17px;
    }

    .terminal-enter-button {
        min-height: 58px;
        font-size: 16px;
    }

    .terminal-launch {
        position: sticky;
        bottom: 0;
        z-index: 3;
        padding: 12px 0 0;
        background:
            linear-gradient(180deg, rgba(37, 34, 43, 0), rgba(37, 34, 43, 0.96) 34%, rgba(37, 34, 43, 0.98));
    }

    .terminal-chip-cloud {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    #terminal-entry {
        padding: 12px;
    }

    .terminal-shell {
        border-radius: 22px;
    }

    .terminal-detail-panel {
        padding: 20px;
        border-radius: 20px;
    }

    .terminal-name {
        font-size: 42px;
        line-height: 1.08;
    }

    .terminal-role {
        font-size: 19px;
    }

    .terminal-summary {
        font-size: 15px;
    }

    .terminal-metric-grid {
        grid-template-columns: 1fr;
    }

    .terminal-metric {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 16px;
    }

    .terminal-project-item {
        grid-template-columns: 8px minmax(0, 1fr);
        gap: 12px;
    }

    .terminal-project-item strong,
    .terminal-detail-panel p,
    .terminal-panel-list li {
        font-size: 14px;
    }

    .terminal-project-item span,
    .terminal-metric-label {
        font-size: 13px;
    }

    .terminal-chip-cloud {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .terminal-hint {
        gap: 8px;
        font-size: 12px;
        line-height: 1.7;
    }

    .terminal-hint-divider {
        display: none;
    }

    .terminal-enter-button {
        width: 100%;
        padding: 0 18px;
        font-size: 15px;
    }

    .terminal-enter-button-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 16px;
    }

    .terminal-progress {
        gap: 8px;
        font-size: 14px;
    }

    .terminal-progress-label {
        display: none;
    }

    .terminal-progress-track {
        height: 18px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .terminal-line,
    .terminal-name-cursor,
    .terminal-cursor {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .terminal-progress,
    .terminal-enter-button,
    .terminal-shell {
        transition: none;
    }
}
