/* Standalone Selling Hub: no WordPress theme header, sidebar or footer */
html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}
body.tgcp-app-body{margin:0!important;padding:0!important;background:#f3f5f8!important;color:#142d51!important;font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif!important;min-height:100vh}
.tgcp-app-shell{min-height:100vh;display:flex;flex-direction:column}
.tgcp-app-topbar{background:#fff;border-bottom:1px solid #e1e6ed;padding:14px max(16px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:50;box-shadow:0 1px 6px #142d5110}
.tgcp-app-brand{display:flex;align-items:center;gap:11px;text-decoration:none!important;color:#142d51!important}
.tgcp-app-brand-icon{display:grid;place-items:center;width:46px;height:46px;background:#142d51;color:#fff;border-radius:12px;font-size:25px}
.tgcp-app-brand strong{display:block;font-size:19px;line-height:1.15}.tgcp-app-brand small{display:block;color:#64748b;font-size:12px;margin-top:4px}
.tgcp-app-menu{position:relative}.tgcp-app-menu summary{list-style:none;cursor:pointer;background:#eef2f7;border-radius:10px;width:44px;height:44px;display:grid;place-items:center;font-size:24px}.tgcp-app-menu summary::-webkit-details-marker{display:none}
.tgcp-app-menu nav{position:absolute;right:0;top:52px;background:#fff;box-shadow:0 12px 30px #142d5128;border:1px solid #e1e6ed;border-radius:14px;width:220px;padding:8px;display:grid;z-index:60}
.tgcp-app-menu nav a{padding:11px 12px;color:#142d51!important;text-decoration:none!important;border-radius:8px}.tgcp-app-menu nav a:hover{background:#edf2f9}
.tgcp-app-main{width:100%;max-width:1040px;margin:0 auto;padding:22px 16px 36px;flex:1}
.tgcp-app-footer{text-align:center;color:#7a8697;font-size:12px;padding:14px}
.tgcp-app-body .tgcp-staff{max-width:none!important;margin:0!important;color:#142d51}
.tgcp-app-body .tgcp-hub-dashboard{max-width:none;padding:0}.tgcp-app-body .tgcp-hub-heading{margin:0 0 18px}.tgcp-app-body .tgcp-hub-heading h1{font-size:24px}.tgcp-app-body .tgcp-hub-appicon{display:none}
.tgcp-app-body .tgcp-hub-tiles{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important}
.tgcp-app-body .tgcp-hub-tile{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:9px!important;background:#fff!important;border:1px solid #dbe2ec!important;border-radius:16px!important;padding:17px!important;min-height:140px!important;box-shadow:0 3px 10px #142d510a!important;color:#142d51!important;text-decoration:none!important;white-space:normal!important;line-height:1.25!important}
.tgcp-app-body .tgcp-hub-tile .dashicons{display:grid!important;place-items:center!important;width:44px!important;height:44px!important;background:#edf2f9!important;color:#142d51!important;border-radius:11px!important;font-size:23px!important;line-height:1!important}
.tgcp-app-body .tgcp-hub-tile strong{display:block!important;font-size:16px!important;font-weight:700!important;line-height:1.25!important}.tgcp-app-body .tgcp-hub-tile small{display:block!important;font-size:12px!important;color:#64748b!important;line-height:1.35!important}
.tgcp-app-body .tgcp-hub-connection{display:flex!important;justify-content:space-between!important;gap:10px!important;background:#fff;border:1px solid #e0e6ed;border-radius:12px;padding:14px!important;margin:20px 0 16px!important}
.tgcp-app-body .tgcp-hub-logout{width:100%;padding:12px!important;font-weight:600!important}
.tgcp-app-body .tgcp-staff-panel{background:#fff!important;box-shadow:0 2px 10px #142d5108!important;border-radius:16px!important}
.tgcp-app-body input,.tgcp-app-body select,.tgcp-app-body textarea{max-width:100%;font-size:16px}
@media(min-width:700px){.tgcp-app-main{padding:32px 26px}.tgcp-app-body .tgcp-hub-tiles{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(min-width:1150px){.tgcp-app-body .tgcp-hub-tiles{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:380px){.tgcp-app-body .tgcp-hub-tile{padding:12px!important;min-height:128px!important}.tgcp-app-body .tgcp-hub-tile strong{font-size:14px!important}}

/* Selling Hub 1.1 mobile-first screens */
.tgcp-product-list,.tgcp-inbox-list{display:grid;gap:10px;margin-top:16px}.tgcp-product-card,.tgcp-inbox-row{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #dce3eb;border-radius:14px;padding:12px;color:#172b4d;text-decoration:none;min-height:86px}.tgcp-product-card:hover,.tgcp-inbox-row:hover{background:#f2f6fc}.tgcp-product-card[hidden],.tgcp-inbox-row[hidden]{display:none}.tgcp-product-thumb,.tgcp-inbox-row img,.tgcp-inbox-placeholder{width:76px;height:76px;object-fit:cover;border-radius:9px;flex-shrink:0}.tgcp-product-empty,.tgcp-inbox-placeholder{display:grid;place-items:center;background:#e9eff7;font-size:30px}.tgcp-product-info,.tgcp-inbox-row>a,.tgcp-inbox-row>span:nth-child(2){display:grid;gap:4px;flex:1;min-width:0}.tgcp-product-info strong,.tgcp-inbox-row strong{font-size:16px}.tgcp-product-info small,.tgcp-inbox-row small,.tgcp-inbox-snippet{color:#617084;font-size:13px}.tgcp-product-info b{font-size:17px}.tgcp-unread-count{display:inline-block;background:#c82739;color:#fff;border-radius:30px;padding:2px 7px;margin-left:7px;font-size:12px}.tgcp-unread-dot{background:#c82739;border-radius:50%;width:10px;height:10px;flex-shrink:0}.tgcp-inbox-row.is-unread{border-left:4px solid #c82739}.tgcp-chat{display:grid;gap:12px;margin:20px 0}.tgcp-chat-bubble{background:#eef3fa;border-radius:14px;padding:14px;max-width:90%}.tgcp-chat-staff{background:#dbe9f8;margin-left:auto}.tgcp-chat-bubble p{margin:6px 0}.tgcp-fb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:10px}.tgcp-fb-item{display:grid;gap:6px;padding:8px;border:1px solid #dce3eb;border-radius:10px;font-size:13px}.tgcp-fb-item img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px}.tgcp-fb-item input{width:auto!important}.tgcp-hub-tile .dashicons{font-size:32px;width:36px;height:36px}.tgcp-hub-tile strong{display:block}
/* 1.1.1 Inbox: fixed-size photo and independent text column */
.tgcp-app-body .tgcp-inbox-list{display:flex!important;flex-direction:column;gap:9px;min-width:0}
.tgcp-app-body .tgcp-inbox-row{display:grid!important;grid-template-columns:68px minmax(0,1fr) 12px!important;align-items:center!important;column-gap:12px!important;min-width:0;width:100%;padding:11px!important;overflow:hidden;text-decoration:none!important}
.tgcp-app-body .tgcp-inbox-row .tgcp-inbox-thumb,.tgcp-app-body .tgcp-inbox-row img,.tgcp-app-body .tgcp-inbox-row .tgcp-inbox-placeholder{display:block!important;width:68px!important;height:68px!important;min-width:68px!important;max-width:68px!important;min-height:68px!important;max-height:68px!important;aspect-ratio:1!important;object-fit:cover!important;border-radius:10px!important;margin:0!important;padding:0!important}
.tgcp-app-body .tgcp-inbox-row .tgcp-inbox-placeholder{display:grid!important;place-items:center!important;background:#eaf0f7}
.tgcp-app-body .tgcp-inbox-content{display:flex!important;flex-direction:column!important;gap:2px!important;min-width:0!important;overflow:hidden!important}
.tgcp-app-body .tgcp-inbox-name{font-size:16px;font-weight:700;color:#142d51;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tgcp-app-body .tgcp-inbox-product{font-size:13px;color:#52637a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tgcp-app-body .tgcp-inbox-snippet{display:block!important;font-size:14px;color:#52637a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.tgcp-app-body .tgcp-inbox-row .tgcp-unread-dot{width:10px;height:10px;justify-self:center}
.tgcp-app-body .tgcp-inbox-row:not(.is-unread){border-left:1px solid #dce3eb}
@media(max-width:360px){.tgcp-app-body .tgcp-inbox-row{grid-template-columns:56px minmax(0,1fr) 10px!important;gap:9px!important}.tgcp-app-body .tgcp-inbox-row img,.tgcp-app-body .tgcp-inbox-row .tgcp-inbox-placeholder{width:56px!important;height:56px!important;min-width:56px!important;max-width:56px!important;min-height:56px!important;max-height:56px!important}}

/* 1.1.2 Manage Products: compact, tappable photo rows (override old plugin/theme styles) */
body.tgcp-app-body .tgcp-product-list{display:flex!important;flex-direction:column!important;gap:10px!important;min-width:0!important;width:100%!important}
body.tgcp-app-body a.tgcp-product-card{display:grid!important;grid-template-columns:72px minmax(0,1fr) 18px!important;align-items:center!important;gap:12px!important;min-width:0!important;width:100%!important;max-width:100%!important;min-height:96px!important;padding:12px!important;overflow:hidden!important;text-decoration:none!important;box-sizing:border-box!important}
body.tgcp-app-body a.tgcp-product-card[hidden]{display:none!important}
body.tgcp-app-body a.tgcp-product-card img.tgcp-product-thumb,body.tgcp-app-body a.tgcp-product-card .tgcp-product-thumb{display:block!important;width:72px!important;height:72px!important;min-width:72px!important;max-width:72px!important;min-height:72px!important;max-height:72px!important;aspect-ratio:1/1!important;object-fit:cover!important;border-radius:10px!important;margin:0!important;padding:0!important;overflow:hidden!important}
body.tgcp-app-body a.tgcp-product-card .tgcp-product-empty{display:grid!important;place-items:center!important;background:#eaf0f7!important}
body.tgcp-app-body a.tgcp-product-card .tgcp-product-info{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important;min-width:0!important;width:100%!important;overflow:hidden!important}
body.tgcp-app-body a.tgcp-product-card .tgcp-product-info strong{display:block!important;max-width:100%!important;font-size:16px!important;line-height:1.3!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.tgcp-app-body a.tgcp-product-card .tgcp-product-info small{display:block!important;max-width:100%!important;font-size:12px!important;line-height:1.4!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.tgcp-app-body a.tgcp-product-card .tgcp-product-info b{display:block!important;font-size:16px!important;line-height:1.3!important}
body.tgcp-app-body a.tgcp-product-card .tgcp-product-chevron{font-size:27px!important;line-height:1!important;justify-self:end!important}
@media(max-width:360px){body.tgcp-app-body a.tgcp-product-card{grid-template-columns:58px minmax(0,1fr) 14px!important;gap:9px!important}body.tgcp-app-body a.tgcp-product-card img.tgcp-product-thumb,body.tgcp-app-body a.tgcp-product-card .tgcp-product-thumb{width:58px!important;height:58px!important;min-width:58px!important;max-width:58px!important;min-height:58px!important;max-height:58px!important}}
/* v1.3.8 staff profile actions and gallery */
.tgcp-internal-profile .tgcp-profile-actions{display:grid;gap:12px;margin-top:24px}
.tgcp-internal-profile .tgcp-action{display:flex!important;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:54px;border:1.5px solid #c6d1df!important;border-radius:999px!important;background:#fff!important;color:#17365d!important;font-size:16px!important;font-weight:700!important;text-align:center;text-decoration:none!important;line-height:1.3;padding:14px 16px!important;cursor:pointer;box-shadow:none!important}
.tgcp-internal-profile .tgcp-action-primary{background:#17365d!important;color:#fff!important;border-color:#17365d!important}
.tgcp-internal-profile .tgcp-action-danger{color:#b42332!important;border-color:#d64b58!important}
.tgcp-internal-profile .tgcp-action-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tgcp-internal-profile .tgcp-profile-actions form{margin:0}
.tgcp-camera-button{display:inline-flex!important;align-items:center;gap:8px;background:#17365d;color:#fff;border-radius:12px;padding:12px 18px;cursor:pointer}
.tgcp-camera-button input{position:absolute;opacity:0;width:1px;height:1px}
.tgcp-photo-tile{position:relative;min-width:0;overflow:hidden;border:1px solid #d9e1ec;border-radius:12px;padding:5px;background:white}
.tgcp-photo-tile img{display:block;width:100%;aspect-ratio:1;object-fit:cover}
.tgcp-photo-tile button{margin:3px 2px;padding:5px 7px;border:1px solid #b5c2d2;border-radius:7px;background:#f3f6fa;color:#17365d;cursor:pointer}
@media(max-width:450px){.tgcp-internal-profile .tgcp-action-pair{grid-template-columns:1fr}}

/* 1.4.3: clear per-photo removal controls and undo */
.tgcp-photo-tile button{min-height:36px}.tgcp-photo-tile button[aria-label^="Remove"],.tgcp-photo-tile button:nth-last-child(2){border-color:#e4a5a5;background:#fff1f1;color:#a31e1e;font-weight:700}.tgcp-photo-undo{margin:12px 0;padding:12px;border:1px solid #b7d6c3;background:#eff9f2;border-radius:10px;color:#173b2b}.tgcp-photo-undo button{margin-left:12px;border:1px solid #23845b;border-radius:7px;padding:6px 12px;background:white;color:#176142;font-weight:700}
