.ta-profile { color: #222; width: 100%; }
.ta-profile .ta-intro { padding: clamp(16px,3vw,30px); background: #fff; border: 1px solid #e3e3e3; border-radius: 12px; margin-bottom: 32px; }
.ta-profile .ta-eyebrow { color: #666; font-size: .75rem; letter-spacing: .12em; margin: 0 0 8px; }
.ta-profile #ta-name { font-size: clamp(1.6rem,3vw,2.2rem); margin: 0 0 14px; }
.ta-profile .ta-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ta-profile .ta-badges span { background: #f4eeee; color: #633b3b; padding: 5px 12px; border-radius: 20px; }
.ta-profile .ta-bio { line-height: 1.75; overflow-wrap: anywhere; }
.ta-profile .ta-owner-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.ta-profile .ta-owner-actions a { text-decoration: none; border: 1px solid #b3272b; padding: 10px 16px; border-radius: 5px; color: #a11e22; background: #fff; }
.ta-profile .ta-owner-actions a:last-child { background: #b3272b; color: #fff; }
.ta-profile .ta-art-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: 20px; }
.ta-profile .ta-art-card { min-width: 0; border: 1px solid #ddd; border-radius: 10px; overflow: hidden; background: #fff; padding-bottom: 18px; }
.ta-profile .ta-art-image, .ta-profile .ta-no-image { display: block; width: 100%; height: 240px; object-fit: contain; background: #f3f3f3; }
.ta-profile .ta-no-image { display: grid; place-items: center; }
.ta-profile .ta-art-card h3 { font-size: 1.15rem; margin: 16px 16px 10px; overflow-wrap: anywhere; }
.ta-profile .ta-art-card p { margin: 5px 16px; }
.ta-profile .ta-art-link { color: inherit; text-decoration: none; }
.ta-profile .ta-status { color: #555; font-size: .9rem; }
.ta-profile .ta-price { font-size: 1.15rem; font-weight: 700; }
.ta-profile .ta-inquiry { display: inline-block; margin: 12px 16px 0; color: #9c1f23; }
.ta-profile .ta-pagination { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.ta-profile a:focus-visible { outline: 3px solid #245ba8; outline-offset: 3px; }
/* Version 0.2: one-page artist layout, scoped to the new profile screen. */
.ta-profile-page #item-header,
.ta-profile-page #item-nav,
.ta-profile-page .bp-navs.main-navs { display: none !important; }
.ta-profile-page #buddypress .bp-wrap { display: block; border: 0; background: transparent; }
.ta-profile-page #buddypress #item-body { float: none; width: 100%; margin: 0; border: 0; padding: 0; }
.ta-profile-page #buddypress .bp-subnavs { display: none; }
.ta-profile { --ta-accent: #bd2856; max-width: 1140px; margin: 0 auto; }
.ta-profile .ta-profile-hero { background: #fff; border: 1px solid #e5e5e5; border-radius: 14px; overflow: hidden; margin-bottom: 24px; }
.ta-profile .ta-cover { height: clamp(160px,24vw,280px); background: linear-gradient(120deg,#e8ddd7,#d6e1dc); }
.ta-profile .ta-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ta-profile .ta-identity { display: flex; align-items: flex-start; gap: 24px; padding: 0 30px 24px; position: relative; }
.ta-profile .ta-profile-avatar { flex: 0 0 140px; margin-top: -45px; position: relative; }
.ta-profile .ta-profile-avatar img { width: 140px; height: 140px; border-radius: 50%; border: 5px solid #fff; object-fit: cover; box-shadow: 0 2px 10px #0002; }
.ta-profile .ta-identity > div:last-child { padding-top: 18px; }
.ta-profile .ta-eyebrow { font-size: .7rem; }
.ta-profile .ta-identity #ta-name { margin: 3px 0 10px; line-height: 1.2; }
.ta-profile .ta-badges { margin-bottom: 8px; }
.ta-profile .ta-badges span { background: #f8edf1; color: #82314b; }
.ta-profile .ta-techniques { color: #555; margin: 0; }
.ta-profile .ta-section-nav { display: flex; flex-wrap: wrap; gap: 28px; border-top: 1px solid #eee; padding: 0 30px; }
.ta-profile .ta-section-nav a { padding: 16px 0 13px; color: #333; border-bottom: 3px solid transparent; text-decoration: none; font-weight: 600; }
.ta-profile .ta-section-nav a:hover { border-bottom-color: var(--ta-accent); }
.ta-profile section[id] { scroll-margin-top: 110px; }
.ta-profile .ta-intro { margin-bottom: 28px; }
.ta-profile .ta-intro h2 { margin-top: 0; font-size: 1.4rem; }
.ta-profile .ta-bio { max-width: 78ch; }
.ta-profile .ta-owner-actions a { border-color: var(--ta-accent); color: var(--ta-accent); }
.ta-profile .ta-owner-actions a:last-child { background: var(--ta-accent); color: #fff; }
.ta-profile .ta-artworks { padding: clamp(16px,3vw,30px); background: #fff; border: 1px solid #e5e5e5; border-radius: 14px; }
.ta-profile .ta-section-heading { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
.ta-profile .ta-section-heading h2 { margin: 0; font-size: 1.5rem; }
.ta-profile .ta-section-heading span { color: #666; font-size: .9rem; }
.ta-profile .ta-filters { display: flex; gap: 8px; margin: 20px 0; }
.ta-profile .ta-filters a { padding: 7px 14px; border-radius: 6px; background: #f1f2f4; color: #444; text-decoration: none; }
.ta-profile .ta-filters a[aria-current] { background: #24383d; color: #fff; }
.ta-profile .ta-art-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.ta-profile .ta-art-card { border: 0; border-radius: 0; }
.ta-profile .ta-art-image { height: 230px; border-radius: 8px; }
.ta-profile .ta-art-card h3 { margin: 12px 0 8px; font-size: 1.08rem; }
.ta-profile .ta-art-card p { margin: 4px 0; }
.ta-profile .ta-inquiry { margin: 10px 0 0; color: #a7224c; font-size: .9rem; }
.ta-profile .ta-account-link { margin: 22px 0; }
.ta-art-dialog { width: min(1120px,95vw); max-width: 95vw; height: 90vh; max-height: 90vh; border: 0; border-radius: 12px; padding: 0; background: #fff; box-shadow: 0 24px 80px #0006; }
.ta-art-dialog[open] { display: flex; flex-direction: column; }
.ta-art-dialog::backdrop { background: #132126b8; }
.ta-profile .ta-dialog-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid #ddd; }
.ta-profile .ta-dialog-bar h2 { margin: 0; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-profile .ta-dialog-bar button { white-space: nowrap; padding: 8px 14px; border: 1px solid #bbb; border-radius: 6px; background: #fff; color: #222; cursor: pointer; }
.ta-profile .ta-art-frame { width: 100%; flex: 1; min-height: 0; border: 0; background: #fff; }
.ta-profile .ta-dialog-fallback { margin: 0; padding: 8px 20px; border-top: 1px solid #ddd; font-size: .85rem; }
html.ta-modal-open { overflow: hidden; }
body.ta-art-window { margin: 0 !important; padding: 0 !important; background: #fff; color: #252525; font-family: system-ui,sans-serif; }
.ta-art-window #wpadminbar { display: none; }
.ta-detail { padding: clamp(18px,3vw,36px); }
.ta-detail-top { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 30px; }
.ta-detail-picture img { width: 100%; max-height: 65vh; object-fit: contain; border-radius: 8px; background: #f3f3f3; }
.ta-detail h1 { font-size: clamp(1.4rem,3vw,2rem); line-height: 1.2; margin: 0 0 18px; }
.ta-detail-price { font-weight: 700; font-size: 1.6rem; }
.ta-detail-author { display: flex; align-items: center; gap: 12px; }
.ta-detail-author img { border-radius: 50%; }
.ta-detail dl { margin: 24px 0; }
.ta-detail dl > div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eee; }
.ta-detail dt { color: #666; font-weight: 400; }
.ta-detail dd { margin: 0; }
.ta-detail .ta-primary { display: inline-block; background: #bd2856; color: #fff; border-radius: 6px; padding: 12px 20px; text-decoration: none; }
.ta-detail-description { margin-top: 32px; padding-top: 24px; border-top: 1px solid #ddd; }
.ta-detail-description input:not([type=submit]), .ta-detail-description textarea { max-width: 100%; width: 100%; box-sizing: border-box; }
@media(max-width:780px) {
 .ta-profile .ta-art-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
 .ta-profile .ta-art-image { height: 190px; }
 .ta-detail-top { grid-template-columns: 1fr; }
}
@media(max-width:480px) {
 .ta-profile .ta-identity { gap: 14px; padding: 0 16px 20px; }
 .ta-profile .ta-profile-avatar { flex-basis: 88px; margin-top: -28px; }
 .ta-profile .ta-profile-avatar img { width: 88px; height: 88px; border-width: 3px; }
 .ta-profile .ta-identity #ta-name { font-size: 1.5rem; }
 .ta-profile .ta-eyebrow { display: none; }
 .ta-profile .ta-art-grid { grid-template-columns: 1fr; }
 .ta-profile .ta-art-image { height: 250px; }
 .ta-profile .ta-section-nav { padding: 0 16px; }
}

.ta-profile .ta-owner-actions a.ta-logout { background: #fff; color: #354b50; border-color: #b9c3c5; }
.ta-profile .ta-owner-actions a.ta-logout:hover { background: #eef1f1; }

/* 0.3.5: full-resolution artwork lightbox. */
.ta-detail-picture .ta-image-zoom{display:block;cursor:zoom-in;text-align:center;text-decoration:none;color:#ab2f57}
.ta-image-zoom>span{display:block;margin-top:8px;font-size:16px;text-decoration:underline}
.ta-image-zoom:focus-visible{outline:3px solid #17534c;outline-offset:4px}
html.ta-image-open{overflow:hidden}
body dialog.ta-image-dialog{position:fixed;inset:0;box-sizing:border-box;width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:100dvh;margin:0;padding:72px 16px 16px;border:0;border-radius:0;background:#111;color:#fff}
body dialog.ta-image-dialog[open]{display:flex;align-items:center;justify-content:center}
.ta-image-dialog::backdrop{background:#111e}
body dialog.ta-image-dialog>img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;margin:0;border:0;border-radius:0}
body dialog.ta-image-dialog>.ta-image-close{position:absolute;top:12px;right:16px;min-height:44px;padding:10px 18px;background:#fff;color:#263840;border:1px solid #fff;border-radius:8px;font:700 16px Arial,sans-serif;cursor:pointer}
body dialog.ta-image-dialog>.ta-image-close:focus-visible{outline:3px solid #fff;outline-offset:4px}
.ta-image-dialog .ta-image-error{position:absolute;left:16px;right:16px;bottom:16px;text-align:center;background:#111;color:#fff;padding:16px}

/* 0.3.6: independent public artist album with owner-only controls. */
body.ta-profile-page .ta-profile .ta-album{margin-top:28px;padding:clamp(16px,3vw,30px);background:#fff;border:1px solid #dedbd5;border-radius:12px;color:#263840}
.ta-album,.ta-album *{box-sizing:border-box}
.ta-album .ta-section-heading{flex-wrap:wrap}
.ta-album .ta-album-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:24px}
.ta-album .ta-album-card{margin:0;min-width:0;border:1px solid #dedbd5;border-radius:10px;overflow:hidden;background:#fff}
.ta-album-card>a{display:block;cursor:zoom-in;background:#f5f3ef}
.ta-album .ta-album-card>a>img{display:block;width:100%;height:230px;object-fit:contain;margin:0}
.ta-album figcaption{padding:12px 14px;font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.ta-album .ta-album-upload{max-width:760px;padding:16px;background:#f5f3ef;border:1px solid #dedbd5;border-radius:8px;margin:20px 0}
.ta-album summary{cursor:pointer;font-size:16px;font-weight:700;color:#ab2f57;min-height:44px;padding:10px 0}
.ta-album .ta-album-delete{padding:0 14px 14px}
.ta-album .ta-album-delete summary{font-size:14px}
.ta-album form label{display:block;font-size:16px;margin-bottom:6px;line-height:1.5}
.ta-album form input:not([type=hidden]):not([type=checkbox]){width:100%;max-width:100%;min-width:0;padding:10px 12px;font:inherit;font-size:16px;border:1px solid #aaa9a4;border-radius:8px;background:#fff;color:#263840}
.ta-album .ta-album-check{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.5}
.ta-album .ta-album-check input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;margin:3px 0 0;accent-color:#ab2f57}
.ta-album .ta-album-check label{margin:0;font-size:14px}
.ta-album button[type=submit]{max-width:100%;min-height:46px;padding:12px 18px;border:1px solid #ab2f57;border-radius:8px;background:#ab2f57;color:#fff;font:700 16px Arial,sans-serif;white-space:normal;cursor:pointer}
.ta-album .ta-album-help{font-size:14px;line-height:1.5;color:#56666c}
.ta-album :is(a,input,button,summary):focus-visible{outline:3px solid #17534c;outline-offset:3px}
.ta-album-success{padding:14px;background:#edf5ef;color:#17534c;border-radius:8px}
.ta-album-error{padding:14px;background:#fff0ed;color:#842d2d;border-radius:8px}
@media(max-width:1100px){.ta-album .ta-album-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.ta-album .ta-album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ta-album .ta-album-card>a>img{height:180px}}
@media(max-width:480px){.ta-album .ta-album-grid{grid-template-columns:1fr}.ta-album .ta-album-card>a>img{height:240px}}

/* 0.3.7: owner-only inline artwork removal, matching album controls. */
.ta-profile .ta-gallery-delete{margin-top:14px;border-top:1px solid #dedbd5;padding-top:4px}
.ta-profile .ta-gallery-delete summary{cursor:pointer;color:#ab2f57;font-size:14px;font-weight:700;min-height:44px;padding:12px 0}
.ta-profile .ta-gallery-delete form p{font-size:14px;line-height:1.5;margin:6px 0 12px}
.ta-profile .ta-gallery-delete label{display:flex;gap:8px;align-items:flex-start;font-size:14px;line-height:1.5;overflow-wrap:anywhere;margin:12px 0}
.ta-profile .ta-gallery-delete input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;margin:3px 0 0;accent-color:#ab2f57}
.ta-profile .ta-gallery-delete button{max-width:100%;min-height:44px;white-space:normal;background:#ab2f57;color:#fff;border:1px solid #ab2f57;border-radius:8px;padding:10px 14px;font:700 16px Arial,sans-serif;cursor:pointer}
.ta-profile .ta-gallery-delete :is(summary,input,button):focus-visible{outline:3px solid #17534c;outline-offset:3px}
.ta-profile .ta-gallery-delete-success{padding:14px;background:#edf5ef;color:#17534c;border-radius:8px}
