/* Geezbook Touch: compact 2011–2012 mobile web presentation.
   Forms and navigation remain usable before JavaScript is available.

    New Geezbook Touch CSS to replicate the Facebook app for
    iPhone from 2012, versions 4.5 and 5.0.

    developed by maxgfortes in 9th octuber 2026 for Geezbook Team

*/

html {
    background: #e7ebf2;
    -webkit-text-size-adjust: 100%;
}

body.touch-surface {
    margin: 0;
    background: #e7ebf2;
    color: #333;
    font: 14px/1.3 Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    touch-action: manipulation;
}

body.touch-surface a {
    color: #3b5998;
}

body.touch-surface #page {
    position: relative;
    max-width: 640px;
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
    border-left: 1px solid #b8c3d5;
    border-right: 1px solid #b8c3d5;
    box-sizing: border-box;
    box-shadow: 0 0 5px rgba(27, 44, 74, .15);
    -webkit-transition: -webkit-transform .2s ease;
    transition: transform .2s ease;
}

body.touch-surface .touch-appbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    border-top: 1px solid #899cc9;
    border-bottom: 1px solid #1e3266;
    background: linear-gradient(#647BB1, #324C8F);
    box-shadow: inset 0 -2px 2px 0 #1421440e;
    display: flex;
    width: 100%;
    height: 64px;
    padding: 0 10px;
}

body.touch-surface .touch-appbar a {
    text-decoration: none;
}

body.touch-surface .touch-appbar-button {
    box-sizing: border-box;
    height: 44px;
    width: 64px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1e3266;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 -1px 1px #000;
    border-radius: 4px;
    background: linear-gradient(#647BB1, #324C8F);
    box-shadow: inset 0 -2px 2px 0 #14214427, inset 0 2px 3px 0 #0a12258c, 0 1px 1px 0 #647BB1;
}

body.touch-surface .touch-menu-button {
    height: 44px;
    width: 64px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1e3266;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 -1px 1px #000;
    border-radius: 4px;
    background: linear-gradient(#647BB1, #324C8F);
    box-shadow: inset 0 -2px 2px 0 #14214427, inset 0 2px 3px 0 #0a12258c, 0 1px 1px 0 #647BB1;
}

body.touch-surface .touch-menu-button svg {
    height: 24px;
    width: 24px;
    fill: #fff;
    filter: drop-shadow(0 -1px 0 #000000);
}

body.touch-surface .touch-appbar-title {
    display: block;
    flex: 1;
    padding: 0 10px;
    color: #fff;
    font: bold 21px/42px Helvetica, Arial, sans-serif;
    text-shadow: 0 -1px #29477a;
}

body.touch-surface .touch-jewels {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    gap: 10px;
}

body.touch-surface .touch-jewel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    width: 52px;
    box-sizing: border-box;
}

body.touch-surface .touch-jewel img {
    display: block;
    width: 50px;
    height: 50px;
    border: none;
    filter: brightness(86%) drop-shadow(0 1px 0 #7188be);
}

body.touch-surface .touch-jewel[aria-expanded="true"] {
    background: linear-gradient(#3b588a, #254779);
    border-color: #284778;
    box-shadow: inset 0 1px 3px rgba(13, 36, 74, .28);
}

body.touch-surface .touch-jewel-badge {
    position: absolute;
    right: 3px;
    top: 3px;
    min-width: 10px;
    padding: 1px 3px;
    border: 1px solid #6d1520;
    border-radius: 2px;
    background: #c3343b;
    color: #fff;
    font: bold 10px/12px Arial, sans-serif;
    text-align: center;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}

body.touch-surface .touch-sort-button {
    height: 44px;
    width: 64px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1e3266;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 -1px 1px #000;
    border-radius: 4px;
    background: linear-gradient(#647BB1, #324C8F);
    box-shadow: inset 0 -2px 2px 0 #14214427, inset 0 2px 3px 0 #0a12258c, 0 1px 1px 0 #647BB1;
}

body.touch-surface .touch-home-button {
    display: block;
    flex: 0 0 36px;
    text-align: center;
}

body.touch-surface .touch-home-button img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    border: 0;
}

body.touch-surface .nav {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    background: #eef1f6;
    border-bottom: 1px solid #b4bfce;
}

body.touch-surface .nav a {
    flex: 1 0 auto;
    padding: 6px 8px;
    color: #3b5998;
    text-align: center;
    font-size: 12px;
    border-right: 1px solid #c8d0dc;
}

body.touch-surface .nav .sel {
    background: #d8dfeb;
    color: #233d6c;
}

body.touch-surface .bar,
body.touch-surface .touch-feed-heading {
    padding: 4px 7px;
    background: #eef0f5;
    border-top: 1px solid #d8dde5;
    border-bottom: 1px solid #d6dbe4;
    color: #5b626d;
    font-size: 12px;
    font-weight: normal;
}

body.touch-surface .touch-feed-heading {
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: .15px;
}

body.touch-surface .subbar {
    padding: 6px;
    background: #f4f5f7;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #ccd1dc;
}

body.touch-surface .touch-composer-tabs {
    display: flex;
    padding: 10px 8px;
    background: #f4f5f7;
    border-bottom: 1px solid #cccecf;
    background: #dedfe0;
    box-shadow: inset 0 1px 1px 0 #ffffff;
}

body.touch-surface .touch-composer-tab {
    flex: 1;
    box-sizing: border-box;
    min-width: 0;
    margin: 0 2px;
    padding: 10px 2px;
    color: #5b6577;
    text-align: center;
    font: 12px/17px Helvetica, Arial, sans-serif;

    border-radius: 6px;
    gap: 6px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cccecf;
    box-shadow: inset 0 1px 1px 0 rgb(156, 156, 158), 0 0 1px 0 rgb(255, 255, 255), inset  0 -1px 0 rgb(226, 228, 230);
    background: #dedfe0;
    text-decoration: none;
}

body.touch-surface .touch-composer-tab img {
    width: 16px;
    height: 16px;
    vertical-align: -3px;
    margin-right: 4px;
    border: 0;
}

body.touch-surface .touch-composer-tab.active,
body.touch-surface .touch-composer-tab[aria-expanded="true"] {
    background: linear-gradient(#edf1f7, #dce3ee);
    border-color: #9baac1;
    color: #334e7c;
}

body.touch-surface.touch-enhanced #touch-composer {
    display: none;
}

body.touch-surface.touch-enhanced #touch-composer.touch-composer-open {
    display: block;
}

body.touch-surface.touch-enhanced #touch-composer .touch-photo-control,
body.touch-surface.touch-enhanced #touch-composer .touch-location-control {
    display: none;
}

body.touch-surface.touch-enhanced #touch-composer.touch-compose-photo .touch-photo-control,
body.touch-surface.touch-enhanced #touch-composer.touch-compose-checkin .touch-location-control {
    display: block;
}

body.touch-surface .touch-composer label {
    font-size: 12px;
    color: #596373;
}

body.touch-surface .touch-composer form > p {
    margin: 6px 0 0;
    text-align: right;
}

body.touch-surface .touch-composer input[type="file"] {
    max-width: 100%;
    font-size: 12px;
}

body.touch-surface .box,
body.touch-surface .group-card {
    padding: 7px 6px;
    background: #fff;
    border-bottom: 1px solid #e1e5eb;
}

body.touch-surface .story {
    margin: 0;
    padding: 7px 6px 9px;
    background: #fff;
    border-top: 0;
    border-bottom: 1px solid #e6e8ec;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

body.touch-surface .story-head {
    min-height: 32px;
}

body.touch-surface .avatar {
    width: 38px;
    height: 38px;
    margin: 0 6px 3px 0;
    object-fit: cover;
}

body.touch-surface .avatar-big {
    width: 54px;
    height: 54px;
    object-fit: cover;
}

body.touch-surface .name {
    font-size: 14px;
    color: #3b5998;
}

body.touch-surface .meta {
    margin-top: 2px;
    color: #8a8f97;
    font-size: 11px;
    line-height: 1.25;
}

body.touch-surface .text {
    margin: 4px 0 5px 38px;
    font-size: 14px;
    line-height: 1.3;
}

body.touch-surface .story .post-media {
    margin: 5px 0 5px 38px;
}

body.touch-surface .story .photo,
body.touch-surface .postimg {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
}

body.touch-surface .story .actions {
    margin: 5px 0 0 38px;
    padding: 0;
    border-top: 0;
    color: #8991a0;
    font-size: 12px;
    line-height: 24px;
}

body.touch-surface .story .actions .btn2 {
    min-height: 24px;
    margin: 0;
    padding: 2px 8px;
    background: linear-gradient(#f6f7fa, #e5eaf2);
    border: 1px solid #c3ccda;
    color: #526580;
    font-size: 12px;
    font-weight: normal;
    line-height: 17px;
    border-radius: 0;
    box-shadow: inset 0 1px #fff;
}

body.touch-surface .shared-story {
    margin: 5px 0 5px 38px;
    padding: 5px;
    background: #f7f8fa;
    border: 1px solid #dce1e9;
}

body.touch-surface .shared-story .text,
body.touch-surface .shared-story .post-media {
    margin-left: 0;
}

body.touch-surface .comment {
    margin: 4px 0 0 38px;
    padding: 5px;
    background: #eef1f6;
    font-size: 12px;
}

body.touch-surface .comment .name {
    font-size: 12px;
}

body.touch-surface .comment .meta {
    font-size: 10px;
}

body.touch-surface .touch-comment-form {
    margin: 5px 0 0 38px;
}

body.touch-surface.touch-enhanced .touch-comment-form {
    display: none;
}

body.touch-surface.touch-enhanced .touch-comment-form.touch-comment-open {
    display: block;
}

body.touch-surface .touch-comment-form .field {
    margin-bottom: 4px;
}

body.touch-surface .field,
body.touch-surface textarea,
body.touch-surface select {
    box-sizing: border-box;
    max-width: 100%;
    padding: 5px;
    border: 1px solid #b1bdcf;
    border-radius: 0;
    background: #fff;
    color: #333;
    font: 14px/1.3 Helvetica, Arial, sans-serif;
}

body.touch-surface textarea {
    height: 65px;
}

body.touch-surface .btn,
body.touch-surface .btn2 {
    min-height: 29px;
    padding: 4px 10px;
    border-radius: 2px;
    font: 12px/18px Helvetica, Arial, sans-serif;
    touch-action: manipulation;
}

body.touch-surface .btn {
    background: linear-gradient(#6c84b1, #496899);
    border: 1px solid #365381;
    color: #fff;
    text-shadow: 0 -1px #365381;
    box-shadow: inset 0 1px rgba(255, 255, 255, .23);
}

body.touch-surface .btn2 {
    background: linear-gradient(#fff, #e9edf3);
    border: 1px solid #b8c2d0;
    color: #4b5e7b;
    box-shadow: inset 0 1px #fff;
}

body.touch-surface .group-messages-entry {
    display: block;
    padding: 7px;
    font-size: 12px;
}

body.touch-surface .box.unread {
    background: #eef2f8;
}

body.touch-surface .pager {
    padding: 9px;
    background: #f5f7fa;
    border-color: #d8dfe9;
    font-size: 12px;
}

body.touch-surface .footer {
    padding: 13px 7px 20px;
    background: #fff;
    color: #8b919a;
    font-size: 11px;
    line-height: 1.7;
    border-top: 1px solid #e5e8ee;
}

body.touch-surface .notice,
body.touch-surface .error,
body.touch-surface .success {
    margin: 6px;
    padding: 7px;
    border-radius: 0;
    font-size: 13px;
}

/* Jewel dropdowns never mark items read or submit their preview links. */

body.touch-surface .touch-jewel-panel {
    display: none;
    position: fixed;
    top: 44px;
    left: 50%;
    z-index: 50;
    box-sizing: border-box;
    width: 320px;
    max-width: calc(100% - 10px);
    margin-left: -160px;
    border: 1px solid #203c6b;
    border-radius: 4px 4px 0 0;
    background: #fff;
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .34);
}

body.touch-surface .touch-jewel-panel.touch-panel-open {
    display: block;
}

body.touch-surface .touch-panel-arrow {
    display: none;
    position: fixed;
    z-index: 51;
    top: 37px;
    left: 50%;
    width: 0;
    height: 0;
    margin-left: -8px;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    border-bottom: 8px solid #416297;
    pointer-events: none;
}

body.touch-surface .touch-panel-arrow.touch-panel-arrow-open {
    display: block;
}

body.touch-surface .touch-panel-heading {
    padding: 8px 9px;
    border-top: 1px solid #839ac0;
    border-bottom: 1px solid #294879;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(#6783b0, #416297);
    color: #fff;
    text-align: center;
    font: bold 13px/18px Helvetica, Arial, sans-serif;
    text-shadow: 0 -1px #294879;
}

body.touch-surface .touch-panel-row {
    display: block;
    min-height: 35px;
    padding: 7px 8px;
    border-bottom: 1px solid #e0e5ed;
    color: #3b414d;
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
    text-decoration: none;
}

body.touch-surface .touch-panel-row:hover,
body.touch-surface .touch-panel-row:focus {
    background: #eaf0f8;
    text-decoration: none;
}

body.touch-surface .touch-panel-row.unread {
    background: #eef3fa;
}

body.touch-surface .touch-panel-row img {
    float: left;
    width: 34px;
    height: 34px;
    margin-right: 7px;
    border: 0;
    object-fit: cover;
}

body.touch-surface .touch-panel-copy {
    display: block;
    margin-left: 41px;
}

body.touch-surface .touch-panel-copy > span,
body.touch-surface .touch-panel-copy > strong {
    display: block;
}

body.touch-surface .touch-panel-copy .meta {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    color: #969da8;
}

body.touch-surface .touch-panel-footer {
    padding: 8px;
    text-align: center;
    background: #f6f7fa;
    font-size: 12px;
}

body.touch-surface .touch-panel-empty {
    padding: 15px 10px;
    color: #818996;
    font-size: 12px;
    text-align: center;
}

body.touch-surface #touch-sort-panel {
    width: 170px;
}

body.touch-surface #touch-sort-panel .touch-panel-row {
    min-height: 0;
    padding: 10px;
    color: #3b5998;
}

/* The dark drawer pushes the narrow mobile document aside. */

body.touch-surface .touch-drawer {
    visibility: hidden;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 40;
    box-sizing: border-box;
    width: 270px;
    max-width: calc(100% - 44px);
    margin-left: -320px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #313b50;
    border-right: 1px solid #172237;
    box-shadow: inset -3px 0 6px rgba(0, 0, 0, .2);
    color: #d8dfeb;
}

body.touch-surface.touch-drawer-open .touch-drawer {
    visibility: visible;
}

body.touch-surface.touch-drawer-open #page {
    -webkit-transform: translateX(270px);
    transform: translateX(270px);
    box-shadow: -3px 0 6px rgba(0, 0, 0, .4);
}

body.touch-surface .touch-drawer-scrim {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 35;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}

body.touch-surface.touch-drawer-open .touch-drawer-scrim {
    display: block;
}

body.touch-surface .touch-drawer-search {
    position: relative;
    margin: 0;
    padding: 7px 8px;
    background: linear-gradient(#49536b, #363f55);
    border-top: 1px solid #617086;
    border-bottom: 1px solid #202a3d;
}

body.touch-surface .touch-drawer-search label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

body.touch-surface .touch-drawer-search input {
    box-sizing: border-box;
    width: 100%;
    height: 29px;
    padding: 4px 33px 4px 12px;
    border: 1px solid #253148;
    border-radius: 15px;
    background: #4e5b71;
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, .3),
        0 1px rgba(199, 212, 230, .1);
    color: #f0f3f9;
    font: 14px/20px Helvetica, Arial, sans-serif;
}

body.touch-surface .touch-drawer-search input::placeholder {
    color: #c4cede;
}

body.touch-surface .touch-drawer-search button {
    position: absolute;
    right: 17px;
    top: 10px;
    overflow: hidden;
    width: 26px;
    height: 23px;
    padding: 0;
    border: 0;
    background: transparent;
    color: transparent;
    font-size: 0;
}

body.touch-surface .touch-drawer-search button:before {
    content: "⌕";
    color: #c4cede;
    font: 24px/22px Arial, sans-serif;
}

body.touch-surface .touch-drawer-profile,
body.touch-surface .touch-drawer-link {
    display: block;
    position: relative;
    min-height: 42px;
    box-sizing: border-box;
    padding: 9px 10px;
    border-top: 1px solid #414b60;
    border-bottom: 1px solid #242d40;
    color: #dfe5ef;
    text-shadow: 0 -1px #263044;
    font: bold 15px/24px Helvetica, Arial, sans-serif;
    overflow: hidden;
    text-decoration: none;
}

body.touch-surface .touch-drawer-profile {
    min-height: 48px;
    padding-top: 8px;
    padding-bottom: 8px;
}

body.touch-surface .touch-drawer-profile img {
    float: left;
    width: 32px;
    height: 32px;
    margin-right: 9px;
    border: 0;
    object-fit: cover;
}

body.touch-surface .touch-drawer-profile span {
    display: block;
    padding-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.touch-surface .touch-drawer-link img {
    float: left;
    width: 26px;
    height: 26px;
    margin-right: 9px;
    border: 0;
    object-fit: contain;
}

body.touch-surface .touch-drawer-link > span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 27px;
}

body.touch-surface .touch-drawer-link:focus,
body.touch-surface .touch-drawer-link:hover,
body.touch-surface .touch-drawer-profile:focus {
    background: #26334a;
    text-decoration: none;
}

body.touch-surface .touch-menu-section {
    padding: 5px 10px 4px;
    background: linear-gradient(#475166, #3a445a);
    border-top: 1px solid #515c70;
    border-bottom: 1px solid #2b3449;
    color: #aab5c7;
    font: bold 10px/13px Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    text-shadow: 0 -1px #2a3347;
}

body.touch-surface .touch-drawer-link .touch-menu-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    min-width: 12px;
    padding: 0 4px;
    border: 1px solid #535f76;
    border-radius: 2px;
    background: #56637c;
    color: #d2dce9;
    font: bold 12px/20px Helvetica, Arial, sans-serif;
    box-shadow: inset 0 1px rgba(225, 234, 249, .1);
}

body.touch-surface .touch-drawer-logout {
    padding: 10px;
}

body.touch-surface .touch-drawer-logout .btn2 {
    width: 100%;
    background: linear-gradient(#586783, #3e4e6c);
    border-color: #22314b;
    color: #e2e8f1;
    text-shadow: 0 -1px #27354b;
}

/* Mobile cover, overlapping portrait and three visual profile tabs. */

body.touch-surface .touch-profile-cover {
    position: relative;
    height: 0;
    padding-top: 36%;
    overflow: hidden;
    background: #d8e0ec;
    border-bottom: 1px solid #bbc6d6;
}

body.touch-surface .touch-profile-cover img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

body.touch-surface .touch-profile-identity {
    position: relative;
    min-height: 57px;
    box-sizing: border-box;
    padding: 13px 9px 6px 108px;
    background: #fff;
}

body.touch-surface .touch-profile-avatar {
    position: absolute;
    left: 16px;
    top: -47px;
    width: 80px;
    height: 80px;
    margin: 0;
    border: 3px solid #fff;
    box-shadow: 0 0 1px #77869b;
    object-fit: cover;
    background: #d4dce8;
}

body.touch-surface .touch-profile-name {
    margin: 0;
    color: #252b35;
    font: bold 20px/24px Helvetica, Arial, sans-serif;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

body.touch-surface .touch-profile-username {
    margin-top: 3px;
    color: #9298a2;
    font-size: 11px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

body.touch-surface .touch-cover-change {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 1;
    min-height: 32px;
    box-sizing: border-box;
    padding: 6px 9px;
    background: rgba(255, 255, 255, .94);
    color: #334e7c;
    text-decoration: none;
}

body.touch-surface .touch-avatar-change {
    position: absolute;
    left: 71px;
    top: 12px;
    z-index: 1;
    display: block;
    box-sizing: border-box;
    width: 33px;
    height: 29px;
    padding: 3px;
    border: 1px solid #8190a7;
    border-radius: 3px;
    background: rgba(255, 255, 255, .96);
    color: #334e7c;
    text-align: center;
    font-size: 16px;
    text-decoration: none;
}

body.touch-surface .touch-profile-photo-editors {
    padding: 0 10px 8px;
    border-bottom: 1px solid #e0e5ed;
}

body.touch-surface .touch-photo-editor {
    margin: 5px 0;
    border: 1px solid #c7d1df;
    background: #f6f8fb;
}

body.touch-surface .touch-photo-editor > summary {
    box-sizing: border-box;
    min-height: 38px;
    padding: 9px 10px;
    color: #3b5998;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
}

body.touch-surface .touch-photo-editor-body {
    padding: 0 10px 10px;
}

body.touch-surface .touch-photo-help,
body.touch-surface .touch-photo-privacy {
    margin: 5px 0 9px;
    color: #657184;
    font-size: 12px;
    line-height: 1.4;
}

body.touch-surface .touch-photo-pickers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.touch-surface .touch-photo-picker {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    min-height: 40px;
    padding: 10px 12px;
    overflow: hidden;
    cursor: pointer;
}

body.touch-surface .touch-photo-picker input {
    position: absolute;
    left: 0;
    top: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    font-size: 16px;
}

body.touch-surface .touch-photo-picker:focus-within {
    outline: 2px solid #5478b8;
    outline-offset: 2px;
}

body.touch-surface .touch-photo-preview {
    display: block;
    max-width: 100%;
    max-height: 260px;
    margin: 10px auto;
    background: #e3e8f0;
    object-fit: contain;
}

body.touch-surface .touch-photo-editor[data-touch-photo-editor="avatar"] .touch-photo-preview {
    max-width: 190px;
    max-height: 190px;
}

body.touch-surface .touch-photo-preview[hidden] {
    display: none;
}

body.touch-surface .touch-photo-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 9px;
}

body.touch-surface .touch-photo-editor-actions button {
    min-height: 40px;
    padding: 8px 12px;
}

body.touch-surface .touch-photo-editor button:disabled {
    opacity: .6;
    cursor: default;
}

body.touch-surface .touch-photo-status {
    min-height: 18px;
    margin: 9px 0 0;
    color: #4b5f7d;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: break-word;
}

body.touch-surface .touch-photo-error .touch-photo-status {
    color: #9c2635;
    font-weight: bold;
}

body.touch-surface .touch-photo-editor[aria-busy="true"] {
    border-color: #829bc0;
}

body.touch-surface .post-client-source {
    white-space: normal;
}

body.touch-surface .touch-profile-info {
    padding: 6px 12px 9px;
    color: #8b919a;
    font-size: 12px;
    line-height: 1.4;
}

body.touch-surface .touch-profile-info > div {
    margin: 2px 0;
}

body.touch-surface .touch-profile-info-icon {
    display: inline-block;
    width: 18px;
    margin-right: 3px;
    color: #a4a9b0;
    vertical-align: top;
    text-align: center;
}

body.touch-surface .touch-profile-tiles {
    display: flex;
    padding: 6px 8px 12px;
    background: #fff;
    border-bottom: 1px solid #c8d1df;
}

body.touch-surface .touch-profile-tile {
    display: block;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 5px;
    color: #6c7585;
    text-align: center;
    font-size: 12px;
}

body.touch-surface .touch-profile-tile-image {
    display: block;
    width: 100%;
    height: 80px;
    box-sizing: border-box;
    margin-bottom: 5px;
    border: 1px solid #cbd3df;
    object-fit: cover;
    overflow: hidden;
    background: #e3e9f2;
}

body.touch-surface .touch-profile-tile-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

body.touch-surface .touch-profile-about-image {
    background: linear-gradient(#e7edf6, #c8d5e9);
}

body.touch-surface .touch-profile-about-image img,
body.touch-surface .touch-profile-tile-image img.touch-profile-tile-placeholder {
    width: 40px;
    height: 40px;
    margin: 19px auto;
    object-fit: contain;
}

body.touch-surface .touch-profile-friend-grid img {
    float: left;
    width: 50%;
    height: 40px;
    object-fit: cover;
}

body.touch-surface .touch-profile-actions {
    padding: 7px 10px;
    background: #f0f3f8;
    border-bottom: 1px solid #cbd3df;
    font-size: 12px;
}

body.touch-surface .touch-profile-actions form {
    display: inline;
}

body.touch-surface .touch-profile-actions .btn2 {
    margin: 2px;
}

body.touch-surface .touch-profile-section {
    padding: 8px;
    background: #fff;
    border-bottom: 1px solid #dce1e8;
}

body.touch-surface .touch-profile-section h2 {
    margin: 2px 0 8px;
    color: #5b6678;
    font-size: 15px;
}

body.touch-surface .touch-profile-section-nav {
    padding: 7px 8px;
    background: #f0f3f7;
    border-bottom: 1px solid #c8d1df;
    color: #8b95a6;
    font-size: 12px;
}

body.touch-surface .touch-profile-photo-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -3px;
}

body.touch-surface .touch-profile-photo-grid > a {
    display: block;
    box-sizing: border-box;
    width: 33.333%;
    padding: 3px;
}

body.touch-surface .touch-profile-photo-grid > a > img {
    display: block;
    width: 100%;
    height: 100px;
    object-fit: cover;
    border: 0;
}

body.touch-surface .touch-profile-friend-row {
    min-height: 38px;
    padding: 6px 0;
    border-bottom: 1px solid #e7eaf0;
    overflow: hidden;
}

body.touch-surface .touch-profile-friend-row .avatar {
    width: 36px;
    height: 36px;
    margin-right: 7px;
}

body.touch-surface a:focus-visible,
body.touch-surface button:focus-visible,
body.touch-surface input:focus-visible,
body.touch-surface textarea:focus-visible,
body.touch-surface select:focus-visible {
    outline: 2px solid #89a5d7;
    outline-offset: 2px;
}

@media (max-width: 640px) {
    body.touch-surface #page {
        border-left: 0;
        border-right: 0;
        box-shadow: none;
    }

    body.touch-surface .touch-drawer {
        left: 0;
        margin-left: 0;
    }
}

@media (max-width: 360px) {
    body.touch-surface .touch-jewel {
        flex-basis: 43px;
    }

    body.touch-surface .touch-profile-tile-image {
        height: 72px;
    }

    body.touch-surface .touch-profile-friend-grid img {
        height: 36px;
    }

    body.touch-surface .touch-profile-about-image img,
    body.touch-surface .touch-profile-tile-image img.touch-profile-tile-placeholder {
        margin: 15px auto;
    }
}
/* Shared photo forms retain native controls on early Touch browsers. */
.touch-surface .photo-album-form fieldset,.touch-surface .photo-detail fieldset{margin:12px 0;padding:10px;border:1px solid #ccd0d5}
.touch-surface .photo-choice-group{margin:10px 0}
.touch-surface .photo-choice-group label{padding:5px 0}
.touch-surface .photo-album-form input[type=file]{display:block;max-width:100%;margin:10px 0}
.touch-surface .photo-audience-note{color:#4b4f56;font-size:13px;line-height:1.4}
.touch-surface .photo-album-item form{display:inline-block;margin:6px 5px 0 0}
.touch-surface .touch-album-shortcut{padding:6px 12px;background:#f5f6f7;border-bottom:1px solid #d9dce2}
.touch-surface .touch-photo-navigation a{display:inline-block;padding:6px 0}

.touch-comment-form[aria-busy="true"] input[name="comment"]{background:#e1e3e6;color:#777;cursor:wait}
.touch-comment-form[aria-busy="true"] input[type="submit"]{opacity:.6;cursor:wait}
