/* GST registration threshold tracker — ledger strip */

.gstt-workspace {
    --gstt-ink: #1c1917;
    --gstt-rule: #9a3412;
    --gstt-rail: #3730a3;
    --gstt-paper: #f7f1e8;
    --gstt-line: rgba(55, 48, 163, 0.16);
    position: relative;
    z-index: 10;
}

html.dark .gstt-workspace {
    --gstt-ink: #f5f0e8;
    --gstt-paper: #16141f;
    --gstt-line: rgba(165, 180, 252, 0.2);
}

.gstt-banner {
    border: 1px solid rgba(154, 52, 18, 0.28);
    background: linear-gradient(135deg, rgba(55, 48, 163, 0.08), rgba(154, 52, 18, 0.07));
    border-radius: 1.25rem;
    padding: 0.9rem 1.1rem;
}

html.dark .gstt-banner {
    border-color: rgba(251, 146, 60, 0.28);
    background: linear-gradient(135deg, rgba(55, 48, 163, 0.22), rgba(154, 52, 18, 0.12));
}

.gstt-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--gstt-line);
    border-radius: 1.5rem;
    box-shadow: 0 14px 32px -22px rgba(28, 25, 23, 0.35);
}

html.dark .gstt-card {
    background: rgba(22, 20, 31, 0.86);
    border-color: rgba(255, 255, 255, 0.08);
}

.gstt-hero {
    display: grid;
    gap: 0.75rem;
}

.gstt-progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(55, 48, 163, 0.12);
    overflow: hidden;
}

html.dark .gstt-progress {
    background: rgba(165, 180, 252, 0.16);
}

.gstt-progress > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #3730a3, #9a3412);
    border-radius: inherit;
    width: 0;
}

.gstt-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}

.gstt-type-btn,
.gstt-chip,
.gstt-btn {
    min-height: 44px;
    border-radius: 0.9rem;
    border: 1px solid var(--gstt-line);
    background: transparent;
    cursor: pointer;
    color: inherit;
}

.gstt-type-btn {
    padding: 0.45rem 0.5rem;
    text-align: left;
}

.gstt-type-btn strong {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
}

.gstt-type-btn span {
    display: block;
    font-size: 0.62rem;
    color: #78716c;
    margin-top: 0.1rem;
}

.gstt-type-btn.is-active {
    background: #3730a3;
    border-color: #3730a3;
    color: #fff;
}

.gstt-type-btn.is-active span {
    color: rgba(255, 255, 255, 0.82);
}

.gstt-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.75rem;
    line-height: 1.4;
}

.gstt-check input {
    margin-top: 0.15rem;
    width: 1.05rem;
    height: 1.05rem;
}

.gstt-output {
    border-radius: 1rem;
    border: 1px solid var(--gstt-line);
    padding: 0.85rem 1rem;
}

.gstt-output-hero {
    background: rgba(55, 48, 163, 0.08);
}

html.dark .gstt-output-hero {
    background: rgba(55, 48, 163, 0.2);
}

.gstt-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.4rem 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gstt-line);
    font-size: 0.75rem;
}

.gstt-row:last-child {
    border-bottom: 0;
}

.gstt-warn {
    border-radius: 0.9rem;
    border: 1px solid rgba(154, 52, 18, 0.35);
    background: rgba(154, 52, 18, 0.08);
    padding: 0.75rem 0.9rem;
    font-size: 0.75rem;
    line-height: 1.45;
}

.gstt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gstt-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.gstt-btn-primary {
    background: #3730a3;
    color: #fff;
    border-color: #3730a3;
}

.gstt-btn-danger {
    color: #be123c;
    border-color: rgba(190, 18, 60, 0.3);
}

html.dark .gstt-btn-danger {
    color: #fb7185;
}

.gstt-workspace .fin-input-wrapper {
    min-height: 44px;
    height: 44px;
}

.gstt-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.45);
    z-index: 60;
}

.gstt-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 61;
    background: #fffaf4;
    border-radius: 1.25rem 1.25rem 0 0;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    max-height: 88vh;
    overflow: auto;
    box-shadow: 0 -18px 40px -20px rgba(28, 25, 23, 0.45);
}

html.dark .gstt-sheet {
    background: #1c1824;
}

@media (min-width: 768px) {
    .gstt-sheet-backdrop {
        display: none !important;
    }

    .gstt-sheet {
        position: static;
        max-height: none;
        overflow: visible;
        border-radius: 1.5rem;
        padding: 0;
        box-shadow: none;
        background: transparent;
    }

    .gstt-sheet.is-desktop-card {
        background: transparent;
    }
}

.gstt-list {
    font-size: 0.8rem;
    padding-left: 1.1rem;
}

.gstt-list li + li {
    margin-top: 0.35rem;
}
