* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #f4f6fa;
    color: #1e2a32;
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.site-header {
    background: linear-gradient(135deg, #134e5e, #2b7a78);
    color: #fff;
    padding: 12px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.brand {
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
}

.site-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.site-nav a,
.btn-link {
    color: #fff;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 14px;
}

.site-main {
    padding: 24px 0 40px;
}

.hero {
    margin-bottom: 16px;
    padding: 22px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(10, 26, 39, 0.08);
}

.hero.small {
    padding: 16px 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(10, 26, 39, 0.08);
}

label {
    display: block;
    margin: 10px 0 4px;
    font-size: 14px;
    color: #3b4a57;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #ced6e0;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 14px;
    background: #fff;
}

.tt-checkbox-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.tt-checkbox-row input {
    width: auto;
    margin-top: 2px;
}

.btn {
    margin-top: 12px;
    background: #1f7a8c;
    border: 0;
    color: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.flash {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 8px;
}

.flash-success {
    background: #d8f2e4;
    color: #1f5d3b;
}

.flash-error {
    background: #ffe2e2;
    color: #7b2f2f;
}

.hint {
    color: #4d5f70;
    font-size: 12px;
}

.portal-locale-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.portal-locale-form label {
    margin: 0;
    min-width: 72px;
}

.portal-locale-form select {
    max-width: 260px;
}

.portal-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.portal-tab-btn {
    border: 1px solid #c8d3dd;
    background: #fff;
    color: #1e2a32;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
}

.portal-tab-btn.is-active {
    background: #1f7a8c;
    color: #fff;
    border-color: #1f7a8c;
}

.portal-badge {
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #0d5fa3;
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0 5px;
    margin-left: 4px;
}

.portal-hidden {
    display: none !important;
}

tr.is-read td {
    opacity: 0.45;
    color: #999;
}

tr.is-read .btn {
    pointer-events: none;
    opacity: 0.4;
}

.portal-tab-pane {
    display: none;
}

.portal-tab-pane.is-active {
    display: block;
}

body.portal-lightbox-open {
    overflow: hidden;
}

#photoLightbox,
#childPhotoLightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(16, 25, 34, 0.72);
    display: none;
    padding: 24px 12px;
    align-items: center;
    justify-content: center;
}

#photoLightbox.show,
#childPhotoLightbox.show {
    display: flex !important;
}

#photoLightbox .modal-dialog,
#childPhotoLightbox .modal-dialog {
    margin: 0;
    width: min(960px, 95vw);
    max-width: 95vw;
}

#photoLightbox .modal-content,
#childPhotoLightbox .modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.table-wrap {
    overflow-x: auto;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.portal-table th,
.portal-table td {
    border-bottom: 1px solid #e3eaf0;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.portal-table th {
    font-size: 13px;
    color: #4d5f70;
    background: #f8fbfd;
}

.portal-table th.is-sortable {
    cursor: pointer;
    user-select: none;
}

.portal-table th.is-sortable:hover {
    background: #eef7fd;
}

.inline-form {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 4px 6px 4px 0;
}

.inline-form input,
.inline-form select {
    width: auto;
    min-width: 110px;
}

.inplace-editor {
    margin-top: 16px;
    border: 1px solid #d9e4ec;
    border-radius: 10px;
    padding: 14px;
    background: #fafcfe;
}

.portal-privacy-card {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #d9e4ec;
    border-radius: 10px;
    background: #fafcfe;
}

.section-spacer {
    margin-top: 26px;
}

.actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.family-subtabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 6px 0 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid #d9e4ec;
}

.family-subtab-btn {
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #4d5f70;
    padding: 6px 2px;
    cursor: pointer;
    font-weight: 600;
}

.family-subtab-btn:hover {
    color: #1e2a32;
}

.family-subtab-btn.is-active {
    color: #1f7a8c;
    border-bottom-color: #1f7a8c;
}

.task-subtabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 6px 0 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid #d9e4ec;
}

.task-subtab-btn {
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #4d5f70;
    padding: 6px 2px;
    cursor: pointer;
    font-weight: 600;
}

.task-subtab-btn:hover {
    color: #1e2a32;
}

.task-subtab-btn.is-active {
    color: #1f7a8c;
    border-bottom-color: #1f7a8c;
}

.portal-child-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.portal-child-tab-btn {
    border: 1px solid #c8d3dd;
    background: #fff;
    color: #1e2a32;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
}

.portal-child-tab-btn.is-active {
    background: #2b7a78;
    color: #fff;
    border-color: #2b7a78;
}

.portal-child-tab-pane {
    display: none;
}

.portal-child-tab-pane.is-active {
    display: block;
}

.reward-earn-card {
    border: 1px solid #d9e4ec;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #fafcfe;
}

.reward-earn-card summary {
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.portal-reward-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: middle;
}

.portal-task-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: middle;
}

.portal-reward-progress {
    margin: 10px 0 12px;
}

.portal-progress {
    width: 150px;
    height: 10px;
    border-radius: 999px;
    background: #d8e3ec;
    overflow: hidden;
}

.portal-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2b7a78 0%, #39a69f 100%);
}

.portal-modal {
    position: fixed;
    inset: 0;
    background: rgba(16, 37, 63, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 1200;
}

.portal-modal.is-open {
    display: flex;
}

.portal-modal-dialog {
    width: min(960px, 96vw);
    max-height: 88vh;
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #d9e4ec;
    padding: 14px;
}

.portal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.portal-modal-header h4 {
    margin: 0;
}

.redeem-log-form {
    margin-bottom: 12px;
}

.portal-history-list h5 {
    margin: 0 0 8px;
}

.expired-request-list {
    margin-top: 8px;
}

.task-submit-details {
    margin: 0;
}

.task-submit-details summary {
    list-style: none;
    margin: 0;
}

.btn-inline {
    margin-top: 0;
    display: inline-block;
    padding: 8px 10px;
}

.task-submit-form {
    margin-top: 8px;
    border-top: 1px solid #d7e9f6;
    padding-top: 8px;
}

.switch-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 4px;
}

.switch-row input[type="checkbox"] {
    width: 44px;
    height: 24px;
    appearance: none;
    border-radius: 999px;
    background: #c6d4df;
    position: relative;
    outline: none;
    cursor: pointer;
    border: 0;
}

.switch-row input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.switch-row input[type="checkbox"]:checked {
    background: #1f7a8c;
}

.switch-row input[type="checkbox"]:checked::after {
    transform: translateX(20px);
}

.tt-dashboard-panel-card {
    margin-top: 14px;
}

ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

@media (max-width: 720px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        flex-wrap: wrap;
    }
}

/* TaskTrunk landing page */
:root {
    --tt-blue-900: #073867;
    --tt-blue-700: #0d5fa3;
    --tt-blue-600: #1280c6;
    --tt-blue-500: #25a8e0;
    --tt-blue-300: #9bd9f6;
    --tt-gold: #f2b620;
    --tt-gold-deep: #d79a12;
    --tt-ink: #10253f;
    --tt-white: #ffffff;
}

.landing-main {
    padding: 0;
}

.tt-landing {
    background: radial-gradient(circle at top right, #dff4ff 0%, #eff8ff 28%, #f9fcff 55%, #ffffff 100%);
    color: var(--tt-ink);
}

.tt-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(9px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid #d6e9f7;
}

.tt-nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.tt-brand {
    text-decoration: none;
    color: var(--tt-blue-900);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.tt-brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.tt-links {
    display: inline-flex;
    gap: 18px;
    align-items: center;
}

.tt-links a {
    text-decoration: none;
    color: var(--tt-blue-900);
    font-weight: 600;
    font-size: 14px;
}

.tt-auth-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tt-auth-link {
    text-decoration: none;
    color: var(--tt-blue-900);
    font-weight: 700;
    font-size: 14px;
    padding: 9px 11px;
    border-radius: 9px;
    border: 1px solid #c7e4f6;
    background: #ffffff;
}

.tt-auth-form {
    margin: 0;
    display: inline-flex;
}

.tt-locale-form {
    align-items: center;
    gap: 8px;
}

.tt-locale-label {
    color: var(--tt-blue-900);
    font-size: 13px;
    font-weight: 700;
    margin: 0;
}

.tt-locale-select {
    border: 1px solid #c7e4f6;
    background: #ffffff;
    color: var(--tt-blue-900);
    border-radius: 9px;
    padding: 9px 11px;
    font-size: 14px;
    font-weight: 700;
    min-width: 120px;
}

.tt-auth-btn {
    cursor: pointer;
    font-family: inherit;
}

.tt-auth-link.is-active {
    border-color: #8ecff1;
    background: #e9f7ff;
}

.tt-btn {
    text-decoration: none;
    border-radius: 10px;
    padding: 11px 16px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tt-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(16, 37, 63, 0.2);
}

.tt-btn-navy {
    background: var(--tt-blue-900);
    color: var(--tt-white);
}

.tt-hero {
    padding: 68px 0 44px;
}

.tt-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 34px;
    align-items: center;
}

.tt-kicker {
    margin: 0 0 10px;
    color: var(--tt-blue-700);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.tt-hero h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 56px);
    line-height: 1.05;
    color: var(--tt-blue-900);
}

.tt-subhead {
    margin: 18px 0 22px;
    color: #264b72;
    font-size: 17px;
    line-height: 1.55;
    max-width: 62ch;
}

.tt-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tt-store-btn {
    text-decoration: none;
    background: linear-gradient(135deg, var(--tt-gold), #ffd77f);
    color: #26354c;
    padding: 12px 15px;
    border-radius: 10px;
    font-weight: 800;
    border: 1px solid #f4ca63;
    box-shadow: 0 10px 22px rgba(242, 182, 32, 0.25);
}

.tt-visual-stack {
    position: relative;
}

.tt-split-panel {
    background: #ffffff;
    border: 1px solid #d6e9f7;
    border-radius: 18px;
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    box-shadow: 0 12px 38px rgba(9, 48, 90, 0.13);
}

.tt-old-board,
.tt-phone-card {
    border-radius: 12px;
    padding: 14px;
}

.tt-old-board {
    border: 2px dashed #ffb5b5;
    background: #fff9f9;
    position: relative;
}

.tt-old-board h3,
.tt-phone-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--tt-blue-900);
}

.tt-old-board ul {
    margin: 0;
    padding-left: 18px;
    color: #794949;
    font-size: 14px;
    line-height: 1.55;
}

.tt-x {
    position: absolute;
    right: 10px;
    bottom: 8px;
    color: #e94141;
    font-size: 28px;
    font-weight: 900;
}

.tt-phone-card {
    background: linear-gradient(160deg, #f3faff, #d8f0ff);
    border: 1px solid #bde0f6;
}

.tt-phone-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(7, 56, 103, 0.12);
}

.tt-phone-line:last-child {
    border-bottom: 0;
}

.tt-elephant-float {
    position: absolute;
    width: 118px;
    right: -26px;
    bottom: -24px;
    filter: drop-shadow(0 10px 16px rgba(14, 80, 150, 0.25));
}

.tt-section {
    padding: 56px 0;
}

.tt-two-col {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: center;
}

.tt-two-col.reverse {
    grid-template-columns: 0.95fr 1.05fr;
}

.tt-section h2,
.tt-pipeline h2,
.tt-final h2 {
    margin: 0 0 10px;
    color: var(--tt-blue-900);
    font-size: clamp(28px, 4.4vw, 40px);
    line-height: 1.15;
}

.tt-section p {
    margin: 0;
    color: #24486d;
    line-height: 1.62;
}

.tt-list {
    margin: 16px 0 0;
    color: #1a3d61;
    line-height: 1.75;
    font-weight: 600;
}

.tt-panel-card {
    background: #ffffff;
    border: 1px solid #d5e8f6;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 26px rgba(12, 66, 122, 0.12);
}

.tt-panel-card h3 {
    margin: 0 0 10px;
    color: var(--tt-blue-900);
}

.tt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e4f0f9;
}

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

.tt-row strong {
    color: var(--tt-blue-900);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.tt-row img {
    width: 20px;
    height: 20px;
}

.tt-section-kids {
    background: linear-gradient(180deg, #f6fbff 0%, #edf8ff 100%);
}

.tt-trunk {
    margin-top: 18px;
    background: #ffffff;
    border: 1px solid #d7e9f6;
    border-radius: 12px;
    padding: 12px;
}

.tt-trunk-head {
    font-weight: 700;
    color: #174879;
    margin-bottom: 8px;
}

.tt-trunk-bar {
    height: 12px;
    border-radius: 999px;
    background: #dfeef9;
    overflow: hidden;
}

.tt-trunk-bar span {
    display: block;
    width: 78%;
    height: 100%;
    background: linear-gradient(90deg, var(--tt-blue-600), var(--tt-gold));
}

.tt-trunk-meta {
    margin-top: 8px;
    color: #335d85;
    font-size: 13px;
}

.tt-kid-card {
    min-height: 250px;
    border-radius: 16px;
    background: linear-gradient(150deg, #ffffff, #dff2ff);
    border: 1px solid #cbe6f7;
    position: relative;
    box-shadow: 0 10px 30px rgba(12, 66, 122, 0.12);
}

.tt-kid-elephant {
    position: absolute;
    width: 160px;
    left: calc(50% - 80px);
    top: calc(50% - 78px);
}

.tt-kid-coin {
    position: absolute;
    width: 70px;
    filter: drop-shadow(0 12px 18px rgba(242, 182, 32, 0.28));
}

.tt-kid-coin-a {
    left: 14%;
    top: 18%;
}

.tt-kid-coin-b {
    right: 14%;
    top: 31%;
}

.tt-kid-coin-c {
    left: 42%;
    bottom: 14%;
}

.tt-pipeline {
    background: #ffffff;
}

.tt-steps {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.tt-step {
    padding: 14px 12px;
    border-radius: 12px;
    border: 1px solid #d7e9f6;
    background: #f8fcff;
    position: relative;
}

.tt-step h3 {
    margin: 12px 0 6px;
    color: #0d4f87;
    font-size: 16px;
}

.tt-step p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #2f5a83;
}

.tt-step img {
    width: 44px;
    height: 44px;
}

.tt-step-elephant {
    object-fit: contain;
}

.tt-coin-muted {
    opacity: 0.45;
}

.tt-coin-faded {
    opacity: 0.2;
    transform: rotate(-14deg);
}

.tt-coin-shine {
    transform: scale(1.08);
    filter: drop-shadow(0 0 12px rgba(242, 182, 32, 0.35));
}

.tt-feature-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.tt-feature-grid article {
    border: 1px solid #d7e9f6;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(12, 66, 122, 0.08);
}

.tt-feature-grid h3 {
    margin: 0 0 8px;
    color: #0d4f87;
    font-size: 17px;
}

.tt-feature-grid p {
    margin: 0;
    color: #2a5279;
    font-size: 14px;
    line-height: 1.55;
}

.tt-final {
    padding: 62px 0 36px;
}

.tt-final-card {
    text-align: center;
    background: linear-gradient(145deg, #ffffff 0%, #edf8ff 100%);
    border: 1px solid #d6e9f7;
    border-radius: 18px;
    padding: 30px 18px;
    box-shadow: 0 10px 30px rgba(9, 48, 90, 0.12);
}

.tt-final-logo {
    width: min(340px, 78%);
    margin-bottom: 14px;
}

.tt-cta-row.center {
    justify-content: center;
}

.tt-footer {
    border-top: 1px solid #d8e9f7;
    background: #f8fcff;
    padding: 18px 0 26px;
}

.tt-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    color: #2d557d;
}

.tt-footer-inner a {
    color: #0d5fa3;
    text-decoration: none;
    font-weight: 600;
}

.tt-auth-shell {
    max-width: 980px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.tt-dashboard-shell {
    max-width: 1160px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.tt-dashboard-page .tt-auth-intro {
    padding: 16px 18px;
}

.tt-dashboard-page .portal-tabs,
.tt-dashboard-page .portal-child-tabs {
    margin-bottom: 14px;
}

.tt-dashboard-page .card {
    border: 1px solid #d7e9f6;
    box-shadow: 0 10px 24px rgba(12, 66, 122, 0.08);
}

.portal-family-photo-preview {
    margin-top: 8px;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #c7e4f6;
    box-shadow: 0 8px 18px rgba(12, 66, 122, 0.1);
}

.tt-auth-intro {
    background: #ffffff;
    border: 1px solid #d7e9f6;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(12, 66, 122, 0.08);
}

.tt-auth-intro h1 {
    margin: 0 0 8px;
    color: #0b3d6d;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.12;
}

.tt-auth-intro p {
    margin: 0;
    color: #2b557c;
    line-height: 1.55;
}

.tt-auth-card {
    border: 1px solid #d7e9f6;
    box-shadow: 0 10px 26px rgba(12, 66, 122, 0.1);
}

.tt-auth-card h2 {
    margin: 0 0 10px;
    color: #0d4f87;
}

.tt-auth-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--tt-blue-700), var(--tt-blue-500));
}

.tt-auth-footnote {
    margin: 12px 0 0;
    color: #2f5a83;
    font-size: 14px;
}

.tt-auth-footnote a {
    color: var(--tt-blue-700);
    font-weight: 700;
    text-decoration: none;
}

.tt-auth-priority-note {
    margin-bottom: 14px;
}

.tt-social-auth-label {
    margin: 0 0 8px;
    color: #1f4f79;
    font-weight: 700;
}

.tt-social-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0 14px;
}

.tt-social-btn {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 84px;
    gap: 6px;
    font-weight: 700;
    border: 1px solid #c7ddef;
    background: #ffffff;
    color: #0d4f87;
}

.tt-social-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    line-height: 0;
}

.tt-social-logo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.tt-social-logo svg {
    width: 24px;
    height: 24px;
    display: block;
}

.tt-social-name {
    display: block;
    font-size: 13px;
    line-height: 1.2;
}

.tt-social-btn:hover {
    border-color: #89b7dd;
    background: #f0f7fe;
}

.tt-social-apple {
    color: #111111;
}

.tt-social-google {
    color: #0b4ea0;
}

.tt-social-facebook {
    color: #0d3f91;
}

.tt-social-instagram {
    color: #7d2aa8;
}

.tt-social-microsoft {
    color: #0a5f9e;
}

@media (min-width: 1024px) {
    .tt-social-auth-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.tt-manual-fallback {
    margin-top: 8px;
    border-top: 1px dashed #b6d0e6;
    padding-top: 10px;
}

.tt-manual-fallback summary {
    cursor: pointer;
    color: #1f4f79;
    font-weight: 700;
    margin-bottom: 10px;
}

.tt-manual-fallback[open] summary {
    margin-bottom: 14px;
}

@media (max-width: 1040px) {
    .tt-hero-grid,
    .tt-two-col,
    .tt-two-col.reverse {
        grid-template-columns: 1fr;
    }

    .tt-elephant-float {
        right: 0;
        bottom: -46px;
    }

    .tt-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .tt-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .tt-links {
        display: none;
    }

    .tt-auth-links {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .tt-nav {
        min-height: 70px;
        justify-content: space-between;
        row-gap: 8px;
    }

    .tt-brand {
        font-size: 20px;
    }

    .tt-split-panel {
        grid-template-columns: 1fr;
    }

    .tt-elephant-float {
        width: 90px;
    }

    .tt-steps,
    .tt-feature-grid {
        grid-template-columns: 1fr;
    }

    .tt-auth-shell {
        grid-template-columns: 1fr;
    }

    .tt-dashboard-shell {
        grid-template-columns: 1fr;
    }

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

    .tt-btn,
    .tt-store-btn {
        width: 100%;
        text-align: center;
    }

    .tt-locale-form {
        width: 100%;
    }

    .tt-locale-select {
        width: 100%;
        min-width: 0;
    }

    .tt-dashboard-page .card {
        padding: 12px;
    }

    .tt-dashboard-page .tt-row {
        flex-wrap: wrap;
        gap: 8px;
        align-items: flex-start;
    }

    .tt-dashboard-page .portal-tabs,
    .tt-dashboard-page .portal-child-tabs,
    .tt-dashboard-page .family-subtabs,
    .tt-dashboard-page .task-subtabs {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        border-bottom: 1px solid #d9e4ec;
        padding-bottom: 6px;
    }

    .tt-dashboard-page .portal-tab-btn,
    .tt-dashboard-page .portal-child-tab-btn,
    .tt-dashboard-page .family-subtab-btn,
    .tt-dashboard-page .task-subtab-btn {
        width: auto;
        text-align: center;
        padding: 8px 10px;
        border-radius: 8px;
        border: 1px solid #c8d3dd;
        background: #fff;
        flex: 0 1 auto;
    }

    .tt-dashboard-page .family-subtab-btn.is-active,
    .tt-dashboard-page .task-subtab-btn.is-active {
        background: #eef7fd;
    }

    .tt-dashboard-page .portal-tab-btn.is-active {
        background: #1f7a8c;
        color: #fff;
        border-color: #1f7a8c;
    }

    .tt-dashboard-page .portal-child-tab-btn.is-active {
        background: #2b7a78;
        color: #fff;
        border-color: #2b7a78;
    }

    .tt-dashboard-page .table-wrap {
        margin: 0;
        padding: 0;
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }

    .tt-dashboard-page .portal-table {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        table-layout: auto;
        font-size: 13px;
    }

    .tt-dashboard-page .portal-table th,
    .tt-dashboard-page .portal-table td {
        padding: 8px;
        white-space: normal;
        word-break: break-word;
    }

    .tt-dashboard-page .portal-table .is-mobile-secondary {
        display: none;
    }

    .tt-dashboard-page .portal-mobile-row-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        margin-right: 6px;
        border: 1px solid #c8d3dd;
        border-radius: 6px;
        background: #f4f9fd;
        color: #1f7a8c;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
        padding: 0;
        vertical-align: middle;
    }

    .tt-dashboard-page .portal-mobile-details-row {
        display: none;
    }

    .tt-dashboard-page .portal-mobile-details-row.is-open {
        display: table-row;
    }

    .tt-dashboard-page .portal-mobile-details-cell {
        background: #f8fbfd;
        padding: 10px;
    }

    .tt-dashboard-page .portal-mobile-details-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .tt-dashboard-page .portal-mobile-details-item {
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 8px;
        align-items: start;
    }

    .tt-dashboard-page .portal-mobile-details-item-label {
        color: #4d5f70;
        font-size: 12px;
        font-weight: 700;
    }

    .tt-dashboard-page .portal-mobile-details-item-value {
        min-width: 0;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .tt-dashboard-page .inline-form {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .tt-dashboard-page .inline-form input,
    .tt-dashboard-page .inline-form select,
    .tt-dashboard-page .inline-form button,
    .tt-dashboard-page .task-submit-form .btn,
    .tt-dashboard-page .btn-inline {
        width: 100%;
    }

    .tt-dashboard-page .portal-progress {
        width: 100%;
        max-width: none;
    }

    .tt-dashboard-page .portal-modal {
        padding: 10px;
    }

    .tt-dashboard-page .portal-modal-dialog {
        width: 100%;
        max-height: 92vh;
        padding: 12px;
    }

    .tt-dashboard-page .portal-modal-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
