/* BIO editor presentation only. No changes to application state or saving. */
body.index-page #tab5 {
    --bio-surface: #f6f9f7;
    --bio-border: #dce6df;
    --bio-accent: #20766b;
    color: var(--home-ink, #18332f);
}

body.index-page #tab5 > .row:first-child {
    padding: 0 0 24px !important;
}

body.index-page #tab5 .bio-header {
    min-width: 0;
    width: 100%;
}

body.index-page #tab5 .bio-header h6 {
    margin: 0 0 18px !important;
    padding: 0 !important;
    font-size: 17px;
    line-height: 1.75;
    font-weight: 700;
    color: var(--home-ink, #18332f) !important;
}

body.index-page #tab5 .bio-header h6 a {
    color: var(--bio-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.index-page #tab5 .bio-header > span {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--bio-border);
    border-radius: 16px;
    background: var(--bio-surface);
}

body.index-page #tab5 .bio-header > span > span {
    width: auto;
    min-width: 0;
    color: #687d73;
    font-size: 11px !important;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

body.index-page #tab5 #bio_slug {
    width: 100% !important;
    min-width: 0;
    min-height: 44px;
    height: auto;
    border: 1px solid #d7e2da;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    color: var(--home-ink, #18332f) !important;
    font-size: 13px !important;
    line-height: 1.7;
}

body.index-page #tab5 .bio-header button {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    min-width: 60px;
    min-height: 44px;
    height: auto !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #e7eee9;
    color: #415d50;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1.7 !important;
    white-space: normal;
    overflow-wrap: anywhere;
}

body.index-page #tab5 .bio-header .save-bio {
    background: var(--bio-accent);
    color: #fff;
}

body.index-page #tab5 .bio-header button:disabled {
    color: #77867e;
    background: #edf1ee;
    border-color: #e0e6e1;
    opacity: .8;
}

body.index-page #tab5 .bio-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin: 0 0 14px;
    padding: 5px !important;
    border: 1px solid var(--bio-border);
    border-radius: 14px;
    background: #f0f5f1;
}

body.index-page #tab5 .bio-buttons button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    height: auto !important;
    padding: 10px 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #6b7f74;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1.6 !important;
    transition: background .2s, color .2s, box-shadow .2s;
}

body.index-page #tab5 .bio-buttons button:hover { background: #e5eee7; color: var(--bio-accent); }
body.index-page #tab5 .bio-buttons button.active {
    background: #fff;
    color: var(--bio-accent);
    border-color: #dce7de;
    box-shadow: 0 2px 6px rgba(26,63,42,.06);
}

body.index-page #tab5 #bio-section-1,
body.index-page #tab5 #bio-section-2,
body.index-page #tab5 #bio-section-3 {
    padding: 20px;
    border: 1px solid var(--bio-border) !important;
    border-radius: 18px !important;
    background: #fff;
    min-width: 0;
}

body.index-page #tab5 .sliders {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 4px 3px 14px !important;
    margin: 0 !important;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #b9cfc1 transparent;
}

body.index-page #tab5 .sliders .item {
    display: block;
    flex: 0 0 86px;
    width: 86px;
    height: 146px;
    margin: 0;
    border: 1px solid #e3e9e4;
    border-radius: 12px;
    background-color: #edf3ef;
    box-shadow: 0 3px 8px rgba(25,54,36,.06);
    transition: outline-color .2s, box-shadow .2s;
}

body.index-page #tab5 .sliders .item:hover { box-shadow: 0 4px 12px rgba(25,54,36,.14); }
body.index-page #tab5 .sliders .active_img {
    border: 1px solid #bad5c3;
    outline: 2px solid var(--bio-accent);
    outline-offset: 1px;
}

body.index-page #tab5 #bio-section-2 > .row:not(.d-none) {
    margin: 0 -6px 20px !important;
    padding: 0 !important;
    --bs-gutter-x: 12px;
}

body.index-page #tab5 #bio-section-2 > .row > .col-12.mt-4 { margin-top: 14px !important; }

body.index-page #tab5 .bioInput,
body.index-page #tab5 .bioDescription,
body.index-page #tab5 .bioInputLink {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    height: auto;
    border: 1px solid #d7e2da !important;
    border-radius: 12px !important;
    background: #f8faf8;
    padding: 11px 14px !important;
    color: var(--home-ink, #18332f);
    font-size: 14px;
    line-height: 1.7 !important;
}

body.index-page #tab5 .bioDescription {
    min-height: 114px;
    resize: vertical;
    margin-bottom: 12px;
}

body.index-page #tab5 input::placeholder,
body.index-page #tab5 textarea::placeholder { color: #91a095; opacity: 1; }

body.index-page #tab5 #bio_slug:focus,
body.index-page #tab5 .bioInput:focus,
body.index-page #tab5 .bioDescription:focus,
body.index-page #tab5 .bioInputLink:focus {
    outline: none;
    border-color: var(--bio-accent) !important;
    box-shadow: 0 0 0 3px rgba(32,118,107,.1);
}

body.index-page #tab5 #bio-section-2 .bio-button,
body.index-page #tab5 #bio-section-3 .bio-button {
    width: auto !important;
    max-width: 100%;
    min-width: 0;
    min-height: 42px;
    height: auto !important;
    padding: 10px 14px !important;
    gap: 7px;
    border: 1px solid #d3e3d9;
    border-radius: 11px;
    background: #e8f2eb;
    color: var(--bio-accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.65 !important;
}

body.index-page #tab5 #bio-section-2 .bio-button i,
body.index-page #tab5 #bio-section-3 .bio-button i { padding: 0 !important; }
body.index-page #tab5 #bio-section-2 .bio-button:hover,
body.index-page #tab5 #bio-section-3 .bio-button:hover { background: #dcece2; }

body.index-page #tab5 #bio-section-2 .col-12 > .d-flex {
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

body.index-page #tab5 .description-text-count {
    margin: 0 0 0 auto;
    color: #8a9c90;
    font-size: 11px;
    line-height: 1.6 !important;
}

body.index-page #tab5 .links-list-main {
    margin: 0 -6px 20px !important;
    padding: 0 !important;
    --bs-gutter-x: 12px;
}

body.index-page #tab5 .links-list-main > hr { display: none; }
body.index-page #tab5 .links-list-main .link-item { margin-bottom: 12px !important; }
body.index-page #tab5 .link-item > .d-flex { gap: 8px; min-width: 0; }
body.index-page #tab5 .link-item > .d-flex > .position-relative { flex: 1 1 0; min-width: 0; }
body.index-page #tab5 .link-item .move-icon { width: 18px; height: 22px; object-fit: contain; flex-shrink: 0; }
body.index-page #tab5 .link-item .bioInputLink { padding-left: 34px !important; cursor: pointer; }
body.index-page #tab5 .link-item .bi-pencil { top: 50% !important; transform: translateY(-50%); left: 12px !important; color: #829589; }
body.index-page #tab5 .link-item .bi-trash {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    min-height: 40px;
    margin: 0 !important;
    border-radius: 10px;
    background: #fdf0ed;
    color: #b96860 !important;
    font-size: 19px !important;
    line-height: 1 !important;
}

body.index-page #tab5 .links-list-main > .col-12 { margin-bottom: 0 !important; }
body.index-page #tab5 .links-list-main > .col-12 > .d-flex { justify-content: space-between !important; align-items: center; gap: 10px; }
body.index-page #tab5 .links-list-main > .col-12 > .d-flex > .position-relative { width: auto !important; flex: 0 0 auto; }
body.index-page #tab5 .links-list-main .bi-plus {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    background: var(--bio-accent);
    font-size: 23px;
    line-height: 1 !important;
}

/* Restyle the device chrome, not the user's chosen BIO colors or link design. */
body.index-page #tab5 .mobile-frame {
    width: min(100%, 300px);
    height: auto;
    aspect-ratio: 9 / 16;
    margin: 28px auto 4px;
    border: 8px solid #293c35;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 16px 32px -16px rgba(30,55,40,.32), 0 0 0 1px #dae4dc;
}

body.index-page #tab5 .mobile-frame .screen { height: 100%; }
body.index-page #tab5 .mobile-frame .bio-heading { height: auto !important; min-height: 21px; line-height: 1.65; overflow-wrap: anywhere; }
body.index-page #tab5 .mobile-frame .bio-description { line-height: 1.7; overflow-wrap: anywhere; }
body.index-page #tab5 .mobile-frame .cover-photo > span { font-size: 13px !important; line-height: 1.6 !important; top: 18px; left: 12px; right: 68px !important; overflow-wrap: anywhere; }
body.index-page #tab5 .mobile-frame .cover-photo > .bi { top: 18px !important; }

@media (max-width: 1199.98px) {
    body.index-page #tab5 .bio-header > span { grid-template-columns: minmax(0, 1fr) auto auto; }
    body.index-page #tab5 .bio-header > span > span { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    body.index-page #tab5 .bio-header > span { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; }
    body.index-page #tab5 #bio_slug { grid-column: 1 / -1; font-size: 16px !important; padding: 10px 12px; }
    body.index-page #tab5 .bio-header button { width: 100% !important; min-width: 0; font-size: 12px !important; }
    body.index-page #tab5 .bio-header > span > span { font-size: 11px !important; }
    body.index-page #tab5 .bio-header h6 { font-size: 15px; }
    body.index-page #tab5 > .row:first-child { padding-bottom: 18px !important; }
    body.index-page #tab5 .bio-buttons button { font-size: 11px !important; padding: 10px 4px; }
    body.index-page #tab5 #bio-section-1,
    body.index-page #tab5 #bio-section-2,
    body.index-page #tab5 #bio-section-3 { padding: 16px 12px; border-radius: 14px !important; }
    body.index-page #tab5 .sliders { gap: 10px; }
    body.index-page #tab5 .sliders .item { flex-basis: 72px; width: 72px; height: 122px; border-radius: 10px; }
    body.index-page #tab5 .bioInput,
    body.index-page #tab5 .bioDescription,
    body.index-page #tab5 .bioInputLink { font-size: 16px; }
    body.index-page #tab5 .mobile-frame { border-width: 7px; border-radius: 26px; }
    body.index-page #tab5 .link-item > .d-flex { gap: 6px; }
    body.index-page #tab5 .link-item .move-icon { width: 14px; }
    body.index-page #tab5 .link-item .bi-trash { width: 30px; }
}
