:root {
    --tfk-primary: #5f89b9;
    --tfk-primary-dark: #416b9d;
    --tfk-accent: #f2a51f;
    --tfk-ink: #243322;
    --tfk-soft: #f5f8fc;
    --tfk-border: #dbe6f2;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--tfk-soft), #ffffff 340px);
    color: var(--tfk-ink);
}

.app-main {
    flex: 1;
}

.app-shell {
    width: min(1560px, calc(100% - 64px));
    margin-left: auto;
    margin-right: auto;
}

.app-nav {
    box-shadow: 0 1px 10px rgba(36, 51, 34, 0.05);
    min-height: 72px;
}

.app-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.app-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.brand-mark {
    width: 32px;
    height: 42px;
    object-fit: contain;
}

.brand-title {
    color: #1f2937;
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.05;
}

.brand-subtitle {
    display: none;
}

.public-logo {
    width: 58px;
    height: auto;
}

.public-hero {
    padding: 44px 0 64px;
}

.public-contact {
    background: #ffffff;
    border: 1px solid var(--tfk-border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(36, 51, 34, 0.08);
}

.btn-primary {
    --bs-btn-bg: var(--tfk-primary);
    --bs-btn-border-color: var(--tfk-primary);
    --bs-btn-hover-bg: var(--tfk-primary-dark);
    --bs-btn-hover-border-color: var(--tfk-primary-dark);
    --bs-btn-active-bg: var(--tfk-primary-dark);
    --bs-btn-active-border-color: var(--tfk-primary-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--tfk-primary-dark);
    --bs-btn-border-color: var(--tfk-primary);
    --bs-btn-hover-bg: var(--tfk-primary);
    --bs-btn-hover-border-color: var(--tfk-primary);
}

.card {
    border-color: var(--tfk-border);
    border-radius: 8px;
}

.card-body {
    padding: 1.25rem;
}

.table > :not(caption) > * > * {
    padding: 0.95rem 1.1rem;
}

.table thead th {
    color: #1f2937;
    font-size: 0.92rem;
}

.table tbody td {
    vertical-align: middle;
}

.app-footer {
    background: #ffffff;
    color: #5d6959;
    font-size: 0.92rem;
    padding: 18px 0;
}

@media (max-width: 768px) {
    .app-shell {
        width: min(100% - 28px, 100%);
    }

    .app-nav {
        min-height: auto;
    }

    .app-nav-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .app-menu {
        justify-content: flex-start;
        width: 100%;
    }
}

.app-footer a {
    color: var(--tfk-primary-dark);
    text-decoration: none;
}

.app-footer a:hover {
    text-decoration: underline;
}

.file-list {
    border: 1px dashed var(--tfk-border);
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
}

.file-list:empty {
    display: none;
}

.file-list-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #e8eef6;
}

.badge.text-bg-success {
    background-color: var(--tfk-primary) !important;
}

.file-list-item:last-child {
    border-bottom: 0;
}

.otp-code-panel {
    display: none;
}

.otp-code-panel.is-visible {
    display: block;
}
