.interest-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.interest-heading h2 { font-size: 28px; }
.interest-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.interest-card { padding: 24px; border: 1px solid #efdfea; border-radius: 20px; background: #fff7fb; min-width: 0; }
.interest-card h3 { font-size: 20px; margin-bottom: 14px; overflow-wrap: anywhere; }
.interest-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.interest-tags span { display: inline-block; background: white; border-radius: 12px; padding: 8px 12px; }
.interest-card label { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.interest-card input { appearance: auto; width: 18px; height: 18px; accent-color: #ed287b; }
.interest-section button { cursor: pointer; }
.interest-section .btn { min-height: 42px; width: auto; padding: 10px 20px; }
.interest-section [data-interest-tools] { margin-top: 20px; line-height: 1.8; }
.interest-section [data-interest-tools] button { margin: 12px 16px 0 0; }
.interest-section dialog { width: min(90%, 1400px); max-height: 80vh; margin: auto; padding: 28px; border: 1px solid #efdfea; border-radius: 24px; }
.interest-section dialog::backdrop { background: #25202b66; }
.interest-section [data-interest-choices] { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 20px; }
.interest-card__actions { display: flex; gap: 12px; margin-top: 16px; }
.interest-section [data-interest-status] { margin-top: 16px; color: #ad265c; }
.interest-section :focus-visible { outline: 3px solid #ec287b88; outline-offset: 3px; }

.interest-cards { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.interest-card { padding:0; border:0; border-radius:0; background:transparent; }
.interest-card__cover { display:flex; align-items:center; aspect-ratio:2.65; border-radius:14px; padding:20px; background:linear-gradient(120deg,#f8e3ef,#efe7fa); overflow:hidden; }
.interest-card__cover h3 { margin:0; color:#282033; font-size:20px; }
.interest-card__cover[class*="interest-art--"] { background-image:url('../img/interests/categories.png'); background-repeat:no-repeat; }
.interest-card__cover[class*="interest-art--"] h3 { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.interest-tags { justify-content:center; gap:7px; padding-top:8px; }
.interest-tags span,.interest-tags summary { font-size:12px; padding:5px 10px; border:1px solid #efdfeb; border-radius:7px; background:#fff; color:#99608c; }
.interest-tags details { position:relative; }.interest-tags summary { cursor:pointer; }.interest-tags details > span { position:absolute; top:100%; right:0; z-index:2; margin-top:5px; box-shadow:0 4px 12px #44203720; white-space:nowrap; }
.interest-heading > div { display:flex; gap:12px; flex-wrap:wrap; }.interest-heading [data-add-interest-top] { background:#0ca799; color:#fff; }.interest-heading [data-edit-interests] { background:#fff; border:1px solid #e4d7e4; color:#6a5878; }
.interest-card > label { font-size:13px; line-height:1.5; }.interest-card__actions button { border:1px solid #e5d5e2; border-radius:9px; padding:8px 12px; background:#fff; color:#96718c; }
@media(max-width:900px) { .interest-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:500px) { .interest-heading { align-items:start; flex-wrap:wrap; gap:14px; }.interest-heading h2 { font-size:24px; }.interest-cards { grid-template-columns:minmax(0,1fr); gap:16px; }.interest-card__cover { aspect-ratio:3; }.interest-heading .btn { font-size:12px; padding:10px 14px; } }
.interest-art--cinema { background-size:304.158416% 492.307692%; background-position:1.551891% 1.838235%; }
.interest-art--music { background-size:312.830957% 492.307692%; background-position:50.909091% 1.838235%; }
.interest-art--games { background-size:316.701031% 492.307692%; background-position:98.382493% 1.838235%; }
.interest-art--books { background-size:304.158416% 504.433498%; background-position:1.551891% 28.501827%; }
.interest-art--sport { background-size:312.830957% 504.433498%; background-position:50.909091% 28.501827%; }
.interest-art--travel { background-size:316.701031% 504.433498%; background-position:98.382493% 28.501827%; }
.interest-art--food { background-size:304.158416% 565.745856%; background-position:1.551891% 53.143535%; }
.interest-art--art { background-size:312.830957% 565.745856%; background-position:50.909091% 53.143535%; }
.interest-art--nature { background-size:316.701031% 565.745856%; background-position:98.382493% 53.143535%; }
.interest-art--auto { background-size:304.158416% 568.888889%; background-position:1.551891% 75.829384%; }
.interest-art--tech { background-size:312.830957% 568.888889%; background-position:50.909091% 75.829384%; }
.interest-art--growth { background-size:316.701031% 568.888889%; background-position:98.382493% 75.829384%; }
.interest-art--style { background-size:304.158416% 568.888889%; background-position:1.551891% 98.341232%; }
.interest-art--rest { background-size:312.830957% 568.888889%; background-position:50.909091% 98.341232%; }
.interest-art--unusual { background-size:316.701031% 568.888889%; background-position:98.382493% 98.341232%; }
.interest-tags--editing { justify-content:flex-start; }
.interest-tags--editing button { padding:7px 10px; border:1px solid #efdfeb; border-radius:8px; background:#fff; color:#99608c; font:inherit; font-size:13px; }
.interest-card__options { margin-top:12px; }
.interest-card__options summary { display:list-item; cursor:pointer; padding:9px 12px; border:1px solid #e8deeb; border-radius:10px; color:#796687; font-size:13px; }
.interest-card__options > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 12px; margin-top:12px; }
.interest-card__options label { min-width:0; overflow-wrap:anywhere; font-size:13px; }
.interest-card__options input { flex:none; }

.interest-section dialog { box-sizing:border-box; width:min(960px,calc(100% - 32px)); max-width:none; max-height:calc(100dvh - 32px); }
.interest-section dialog header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.interest-section dialog h2 { font-size:24px; }
.interest-section dialog header button { border:0; background:transparent; color:#7d728b; width:40px; height:40px; font-size:28px; flex:none; }
.interest-section dialog > p { color:#6a6079; font-size:14px; line-height:1.5; margin:16px 0; }
.interest-section dialog [data-interest-count] { color:#10a58f; font-weight:600; }
.interest-section [data-interest-search] { box-sizing:border-box; width:100%; padding:12px; border:1px solid #dcdbe7; border-radius:12px; font:inherit; }
.interest-section [data-interest-choices] { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.interest-choice { position:relative; min-width:0; border:1px solid #e2dbea; padding:5px; border-radius:14px; background:white; color:#30283d; font:inherit; }
.interest-choice .interest-card__cover { display:block; padding:0; width:100%; border-radius:10px; }
.interest-choice > span:last-child { display:block; padding:8px 3px; font-size:13px; overflow-wrap:anywhere; }
.interest-choice[aria-pressed=true] { border-color:#ff237b; background:#fff0f6; box-shadow:0 0 0 1px #ff237b; }
.interest-choice[aria-pressed=true]::after { content:'✓'; position:absolute; right:6px; top:6px; display:grid; place-items:center; width:22px; height:22px; background:#ff237b; color:white; border-radius:50%; }
.interest-choice:disabled { opacity:.5; cursor:default; }
.interest-choice[hidden],.interest-section dialog [hidden] { display:none; }
.interest-dialog-actions { display:flex; gap:12px; padding-top:16px; }
.interest-dialog-actions > button { flex:1; min-height:48px; border:1px solid #ddd8e5; border-radius:12px; background:white; color:#6a6079; font:inherit; padding:10px; }
.interest-dialog-actions > .btn { background:#f5267c; color:white; border-color:#f5267c; }
@media(max-width:600px) {
 .interest-section dialog { width:100%; margin:auto 0 0; max-height:calc(100dvh - 16px); padding:20px; border-radius:24px 24px 0 0; }
 .interest-section dialog h2 { font-size:22px; }
 .interest-section [data-interest-choices] { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; max-height:42dvh; overflow:auto; padding:2px; }
 .interest-dialog-actions { flex-direction:column; }
}
.honey-feed > .interest-section { width:100%; padding:0; margin:24px 0; }
@media(max-width:600px) {
 .interest-section [data-interest-choices] { grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
 .interest-choice { padding:3px; border-radius:9px; }
 .interest-choice > span:last-child { font-size:10px; line-height:1.25; padding:6px 1px; }
 .interest-choice[aria-pressed=true]::after { width:16px; height:16px; font-size:11px; right:3px; top:3px; }
}

/* The picker shows the illustration area of the supplied category sheet. */
.interest-choice .interest-card__cover { aspect-ratio:1.1; }
.interest-choice .interest-art--cinema { background-size:671.328671% 492.307692%; background-position:22.353121% 1.838235%; }
.interest-choice .interest-art--music { background-size:671.328671% 492.307692%; background-position:60.755814% 1.838235%; }
.interest-choice .interest-art--games { background-size:671.328671% 492.307692%; background-position:98.699511% 1.838235%; }
.interest-choice .interest-art--books { background-size:687.863861% 504.433498%; background-position:22.678449% 28.501827%; }
.interest-choice .interest-art--sport { background-size:687.863861% 504.433498%; background-position:60.920241% 28.501827%; }
.interest-choice .interest-art--travel { background-size:687.863861% 504.433498%; background-position:98.704959% 28.501827%; }
.interest-choice .interest-art--food { background-size:771.471622% 565.745856%; background-position:24.078091% 53.143535%; }
.interest-choice .interest-art--art { background-size:771.471622% 565.745856%; background-position:61.627646% 53.143535%; }
.interest-choice .interest-art--nature { background-size:771.471622% 565.745856%; background-position:98.728402% 53.143535%; }
.interest-choice .interest-art--auto { background-size:775.757576% 568.888889%; background-position:24.140508% 75.829384%; }
.interest-choice .interest-art--tech { background-size:775.757576% 568.888889%; background-position:61.659193% 75.829384%; }
.interest-choice .interest-art--growth { background-size:775.757576% 568.888889%; background-position:98.729447% 75.829384%; }
.interest-choice .interest-art--style { background-size:775.757576% 568.888889%; background-position:24.140508% 98.341232%; }
.interest-choice .interest-art--rest { background-size:775.757576% 568.888889%; background-position:61.659193% 98.341232%; }
.interest-choice .interest-art--unusual { background-size:775.757576% 568.888889%; background-position:98.729447% 98.341232%; }
@media(max-width:600px) { .interest-choice > span:last-child { font-size:9px; overflow-wrap:normal; hyphens:auto; } }
