:root {
    --qs-green: #22c55e;
    --qs-green-dark: #16a34a;
    --qs-ink: #1a202c;
    --qs-muted: #718096;
    --qs-line: #e2e8f0;
}

.qs-brand-detail {
    color: rgba(255, 255, 255, .78);
    font-size: .55em;
    font-weight: 800;
    vertical-align: top;
}

.qs-sidebar-footer {
    margin: auto 22px 22px;
    padding: 17px;
    border: 1px solid #e8edf3;
    border-radius: 13px;
    background: #f8fafc;
    color: var(--qs-muted);
    font-size: 12px;
    line-height: 1.55;
}

.qt-sidebar {
    display: flex;
    flex-direction: column;
}

.qt-sidebar nav {
    flex: 1 0 auto;
}

.qs-nav-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
}

.qs-nav-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.qs-project-switcher {
    display: flex;
    min-width: 210px;
    align-items: center;
    gap: 9px;
    padding: 5px 10px;
    border: 1px solid var(--qs-line);
    border-radius: 10px;
    background: #fff;
}

.qs-project-switcher svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: var(--qs-green-dark);
    stroke-width: 1.8;
}

.qs-project-switcher select {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--qs-ink);
    font-size: 13px;
    font-weight: 650;
}

.qs-grid {
    display: grid;
    gap: 20px;
}

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

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

.qs-stat-card {
    position: relative;
    overflow: hidden;
}

.qs-stat-card::after {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--qs-green);
    content: '';
}

.qs-stat-label {
    color: var(--qs-muted);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.qs-stat-value {
    margin-top: 8px;
    color: var(--qs-ink);
    font-size: 34px;
    font-weight: 750;
    letter-spacing: -.04em;
    line-height: 1;
}

.qs-foundation {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr);
    gap: 20px;
    margin-top: 20px;
}

.qs-foundation-copy {
    max-width: 720px;
}

.qs-kicker {
    margin-bottom: 10px;
    color: var(--qs-green-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.qs-foundation h2 {
    margin-bottom: 12px;
    font-size: 25px;
    letter-spacing: -.025em;
}

.qs-foundation p {
    margin: 0;
    color: #4a5568;
    line-height: 1.7;
}

.qs-checklist {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qs-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #4a5568;
    font-size: 13px;
}

.qs-checklist li::before {
    display: inline-flex;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    content: '✓';
    font-size: 12px;
    font-weight: 800;
}

.qs-project-head {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.qs-project-mark {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #ecfdf5;
    color: #15803d;
    font-size: 18px;
    font-weight: 800;
}

.qs-project-name {
    display: block;
    overflow: hidden;
    color: var(--qs-ink);
    font-size: 16px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qs-project-name:hover {
    color: var(--qs-green-dark);
    text-decoration: none;
}

.qs-subtext {
    margin-top: 3px;
    overflow: hidden;
    color: var(--qs-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qs-detail-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.qs-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 10px;
    border-top: 1px solid #edf2f7;
    font-size: 13px;
}

.qs-detail-label {
    color: var(--qs-muted);
}

.qs-detail-value {
    min-width: 0;
    color: var(--qs-ink);
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}

.qs-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.qs-status::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a3b8;
    content: '';
}

.qs-status.is-active::before { background: #22c55e; }
.qs-status.is-paused::before { background: #f59e0b; }
.qs-status.is-archived::before { background: #94a3b8; }

.qs-empty {
    padding: 54px 24px;
    text-align: center;
}

.qs-empty-mark {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 17px;
    background: #ecfdf5;
    color: #15803d;
    font-size: 26px;
}

.qs-empty h2 {
    margin-bottom: 8px;
    font-size: 20px;
}

.qs-empty p {
    max-width: 520px;
    margin: 0 auto 20px;
    color: var(--qs-muted);
}

.qs-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.qs-form-wide {
    grid-column: 1 / -1;
}

.qs-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #edf2f7;
}

.qs-context-block {
    white-space: pre-line;
}

.qs-auth-page {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    padding: 24px;
    background: #f7fafc;
}

.qs-auth-card {
    width: min(100%, 440px);
    padding: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
}

.qs-auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.qs-auth-brand .qt-brand-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
}

.qs-auth-card h1 {
    margin-bottom: 10px;
    font-size: 27px;
    letter-spacing: -.035em;
}

.qs-auth-card p {
    margin-bottom: 24px;
    color: #64748b;
    line-height: 1.65;
}

.qs-auth-note {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #edf2f7;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 1100px) {
    .qs-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qs-foundation { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .qs-project-switcher { min-width: 0; max-width: 160px; }
    .qs-sidebar-footer { display: none; }
}

@media (max-width: 640px) {
    .qs-grid-3,
    .qs-grid-2,
    .qs-form-grid { grid-template-columns: 1fr; }
    .qs-form-wide { grid-column: auto; }
    .qs-project-switcher { max-width: 118px; padding: 5px 7px; }
    .qs-project-switcher svg { display: none; }
    .qs-auth-card { padding: 26px 22px; }
}
