body.link-my-active { background: #fff; color: #101214; }
body.link-my-active #auth-shell-main { max-width: 1024px; padding: 34px 28px 100px; }
body.link-my-active .workspace { display: block; }
body.link-my-active .workspace > :not(#link-my) { display: none !important; }
body.link-my-active #auth-shell-header { border-color: #f0f1f2; padding: 16px max(28px, calc((100vw - 968px)/2)); min-height: 68px; }
body.link-my-active #auth-shell-header .wordmark { font-size: 0; gap: 0; }
body.link-my-active #auth-shell-header .wordmark > * { display: none !important; }
body.link-my-active #auth-shell-header .wordmark::after { content: "AMZ.LINK"; font-size: 22px; font-weight: 950; letter-spacing: -.8px; color: #111416; }
body.link-my-active #auth-shell-header .badge { display: none; }
body.link-my-active #auth-shell-header #logout { margin-left: auto; min-height: 44px; padding: 10px 14px; border: 1px solid #e5e8ec; border-radius: 14px; color: #3e454b; font-size: 12px; font-weight: 800; }
body.link-my-active #auth-shell-footer, body.link-my-active #link-mobile-nav { display: none !important; }
#link-my { font-family: system-ui, -apple-system, "Noto Sans KR", sans-serif; color: #111416; scroll-margin-top: 18px; }
#link-my [hidden] { display: none !important; }
#link-my * { box-sizing: border-box; }
#link-my button, #link-my input, #link-my textarea, #link-my select { font: inherit; }
#link-my button { cursor: pointer; }
#link-my button:disabled { cursor: not-allowed; opacity: .48; }
#link-my :is(a,button,input,textarea,select):focus-visible { outline: 3px solid #057dce; outline-offset: 3px; }
#link-my .lm-top { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin: 3px 0 26px; }
#link-my .lm-kicker, #link-my .lm-view-head > small, #link-my .lm-section-title small { display: block; color: #101214; font-size: 11px; font-weight: 900; letter-spacing: 1.1px; }
#link-my h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.2; letter-spacing: -1.8px; margin: 8px 0 8px; }
#link-my h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.8px; margin: 7px 0 0; }
#link-my h3 { margin: 0 0 14px; font-size: 19px; }
#link-my p { margin-top: 0; }
#link-my .lm-subtitle { color: #697176; font-size: 14px; margin: 0; }
#link-my .lm-top-mark { font-size: 18px; font-weight: 950; white-space: nowrap; }
#link-my .lm-top-mark b { color: #ff0055; }
#link-my .lm-alert { padding: 13px 16px; margin: 0 0 16px; border-radius: 12px; color: #30416a; background: #eff8ff; font-size: 13px; line-height: 1.5; }
#link-my .lm-alert.is-error { color: #8a321f; background: #fff1e8; }
#link-my .lm-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; margin-bottom: 22px; border-radius: 18px; background: #f3f5f5; }
#link-my .lm-tabs button { min-height: 46px; border: 0; background: transparent; border-radius: 13px; color: #6c7479; font-size: 13px; font-weight: 800; }
#link-my .lm-tabs button[aria-current=page] { background: #fff; color: #101214; box-shadow: 0 2px 12px #11141610; }
#link-my .lm-view { display: grid; gap: 16px; }
#link-my .lm-site-card, #link-my .lm-card { min-width: 0; background: #fff; border: 1px solid #e9ebec; border-radius: 24px; padding: 24px; box-shadow: 0 8px 24px #11141605; }
#link-my .lm-section-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 17px; }
#link-my .lm-status-chip { display: inline-block; border-radius: 100px; padding: 7px 11px; background: #eafa91; color: #293319; font-size: 11px; font-weight: 900; white-space: nowrap; }
#link-my .lm-site-preview { min-height: 156px; padding: 22px; border-radius: 20px; background: linear-gradient(145deg,#352014,#151718); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; overflow-wrap: anywhere; }
#link-my .lm-site-preview span { font-size: 11px; font-weight: 850; letter-spacing: 1.4px; color: #e8d5bb; }
#link-my .lm-site-preview strong { font-size: clamp(21px, 3vw, 27px); line-height: 1.22; margin: 8px 0 4px; }
#link-my .lm-site-preview small { font-size: 11px; color: #e6ecea; }
#link-my .lm-help { color: #6f777d; font-size: 13px; line-height: 1.65; margin-bottom: 16px; }
#link-my .lm-site-preview + .lm-help { margin: 13px 0 15px; }
#link-my .lm-site-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 0 0 17px; }
#link-my .lm-site-summary strong { flex-basis: 100%; font-size: 13px; line-height: 1.5; }
#link-my .lm-site-count { display: inline-flex; min-height: 30px; align-items: center; padding: 6px 10px; border-radius: 99px; background: #f3f6f5; color: #3d4b4d; font-size: 11px; font-weight: 800; }
#link-my .lm-site-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#link-my .lm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 16px; border-radius: 13px; text-align: center; text-decoration: none; font-size: 13px; font-weight: 850; white-space: nowrap; }
#link-my .lm-site-actions .lm-btn { flex: 1; }
#link-my .lm-site-actions #lm-site-import { flex-basis: 100%; }
#link-my .lm-lime { background: #bbff1f; border: 1px solid #bbff1f; color: #101214; }
#link-my .lm-outline { background: #fff; border: 1px solid #dde2e4; color: #20292b; }
#link-my .lm-import-card { scroll-margin-top: 20px; }
#link-my .lm-criteria-label { display: block; font-size: 13px; margin: 14px 0 10px; }
#link-my .lm-market-filters, #link-my .lm-market-types { display: flex; flex-wrap: wrap; gap: 8px; }
#link-my .lm-market-filters button, #link-my .lm-market-types button { min-height: 44px; padding: 10px 16px; border: 1px solid #e2e7e6; border-radius: 999px; background: #fff; color: #505d60; font-size: 12px; font-weight: 850; }
#link-my .lm-market-filters button[aria-pressed=true] { color: #111416; border-color: #bbff1f; background: #bbff1f; }
#link-my .lm-market-types { margin-top: 13px; }
#link-my .lm-market-types button { min-height: 38px; padding: 8px 12px; }
#link-my .lm-market-types button[aria-pressed=true] { color: #fff; border-color: #161b1c; background: #161b1c; }
#link-my .lm-market-region { display: block; margin: 16px 0 0; color: #313b40; font-size: 12px; font-weight: 850; }
#link-my .lm-market-region select { display: block; width: min(100%, 320px); min-height: 48px; padding: 10px 14px; margin-top: 7px; border: 1px solid #dce2e4; border-radius: 12px; background: #fff; color: #101214; font-size: 16px; }
#link-my .lm-import-status { margin: 13px 0 0; padding: 12px 14px; border-radius: 12px; background: #f1f7de; color: #304321; font-size: 12px; line-height: 1.6; }
#link-my .lm-import-status.is-error { background: #fff1e8; color: #8a321f; }
#link-my .lm-import-preview { margin-top: 17px; border-top: 1px solid #e9eeed; padding-top: 17px; }
#link-my .lm-import-list-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin: 20px 0 10px; }
#link-my .lm-import-list-head strong { font-size: 14px; }
#link-my .lm-import-list-head span { font-size: 11px; color: #79837d; }
#link-my .lm-import-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; max-height: 480px; overflow-y: auto; }
#link-my .lm-market-item { min-width: 0; padding: 15px; border: 1px solid #e8ece9; border-radius: 15px; background: #fff; }
#link-my .lm-market-item-heading { display: flex; align-items: baseline; gap: 8px; }
#link-my .lm-market-item-heading strong { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
#link-my .lm-market-item small { display: block; color: #647073; font-size: 11px; margin-top: 7px; }
#link-my .lm-market-added { display: block; color: #657568; font-size: 11px; margin-top: 7px; font-weight: 850; }
#link-my .lm-market-import { width: 100%; margin-top: 15px; font-size: 15px; }
#link-my .lm-import-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
#link-my .lm-import-actions .lm-btn { flex: 1; white-space: normal; line-height: 1.4; }
#link-my .lm-import-complete { margin-top: 16px; padding: 18px; border: 1px solid #dceca9; border-radius: 16px; background: #f6fbe9; }
#link-my .lm-import-complete .lm-created-open { flex-basis: 100%; font-size: 15px; }
#link-my .lm-import-complete strong { font-size: 15px; }
#link-my .lm-import-complete p { margin: 7px 0 0; color: #506246; font-size: 12px; line-height: 1.6; }
#link-my .lm-builder-manage { margin-top: 14px; }
#link-my .lm-direct-card { scroll-margin-top: 20px; }
#link-my .lm-direct-card .lm-custom-form { max-width: none; padding: 0; border: 0; border-radius: 0; }
#link-my .lm-direct-card .lm-custom-form h3 { font-size: 14px; margin: 0; }
#link-my #lm-open-market { justify-self: start; }
#link-my .lm-add-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#link-my .lm-add { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 102px; border: 0; border-radius: 17px; padding: 18px; text-align: left; color: #111416; }
#link-my .lm-add b { font-size: 17px; }
#link-my .lm-add span { font-size: 12px; font-weight: 750; }
#link-my .lm-add-lime { background: #bbff1f; }
#link-my .lm-add-blue { background: #eff8ff; }
#link-my .lm-text-button { flex: none; border: 0; background: transparent; color: #4e5b5c; font-size: 12px; font-weight: 850; padding: 10px 0; }
#link-my .lm-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
#link-my .lm-mix { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
#link-my .lm-stat { min-width: 0; border-radius: 15px; background: #f3f7f8; padding: 14px; }
#link-my .lm-stat:nth-child(2) { background: #eff8ff; }
#link-my .lm-stat:nth-child(3) { background: #fff1f6; }
#link-my .lm-stat span { display: block; color: #626d71; font-size: 11px; line-height: 1.4; }
#link-my .lm-stat strong { display: block; margin-top: 8px; font-size: clamp(16px, 2.3vw, 21px); line-height: 1.25; overflow-wrap: anywhere; }
#link-my .lm-caption { color: #7d858a; font-size: 11px; line-height: 1.65; margin: 13px 0 0; }
#link-my .lm-people { display: grid; gap: 2px; }
#link-my .lm-person { display: flex; align-items: center; min-height: 63px; padding: 10px 0; gap: 14px; border-bottom: 1px solid #eff0f1; }
#link-my .lm-person:last-child { border-bottom: 0; }
#link-my .lm-person-rank { width: 30px; flex: none; font-size: 14px; font-weight: 950; color: #627184; }
#link-my .lm-person-info { flex: 1; min-width: 0; display: grid; gap: 3px; }
#link-my .lm-person-info strong { overflow-wrap: anywhere; font-size: 14px; }
#link-my .lm-person-info small { color: #7b838a; font-size: 11px; }
#link-my .lm-person-open { white-space: nowrap; color: #212b32; text-decoration: none; font-size: 11px; font-weight: 850; }
#link-my .lm-empty { margin: 0; padding: 22px; background: #f6f9f9; border-radius: 14px; color: #738086; font-size: 13px; line-height: 1.6; }
#link-my .lm-downloads { display: grid; gap: 9px; }
#link-my .lm-download-card .lm-section-title { flex-wrap: wrap; }
#link-my .lm-download-tools { display: flex; align-items: center; gap: 8px; }
#link-my .lm-download-tools .lm-small-btn { min-height: 34px; padding: 6px 9px; }
#link-my .lm-download-tools .lm-small-btn:disabled { opacity: .55; }
#link-my .lm-download-summary { margin: 0 0 4px; color: #5b696c; font-size: 12px; line-height: 1.5; }
#link-my .lm-download-item { min-width: 0; padding: 16px; border: 1px solid #e9eeee; border-radius: 16px; background: #f9fbfa; }
#link-my .lm-download-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
#link-my .lm-download-main strong { color: #151b19; font-size: 14px; overflow-wrap: anywhere; }
#link-my .lm-download-main small { color: #52635e; font-size: 11px; font-weight: 800; }
#link-my .lm-download-title { margin: 8px 0 10px; color: #34413e; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
#link-my .lm-download-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; color: #75807e; font-size: 11px; }
#link-my .lm-download-status { color: #385329; background: #eef8db; border-radius: 999px; padding: 4px 7px; font-weight: 800; }
#link-my .lm-download-error { margin: 0; color: #a34b33; font-size: 12px; }
#link-my .lm-download-more { width: 100%; margin-top: 14px; }
#link-my .lm-view-head { margin: 4px 0 6px; }
#link-my .lm-view-head h2 { margin: 8px 0 6px; font-size: 30px; }
#link-my .lm-view-head p { color: #70787e; font-size: 14px; }
#link-my .lm-role-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
#link-my .lm-role { min-width: 0; padding: 18px; border-radius: 18px; background: #eff8ff; }
#link-my .lm-role:nth-child(2) { background: #fff1f6; }
#link-my .lm-role:nth-child(3) { background: #f1f8de; }
#link-my .lm-role span { font-size: 11px; font-weight: 900; color: #5d686b; }
#link-my .lm-role h3 { font-size: 16px; margin: 10px 0 8px; }
#link-my .lm-role p { font-size: 12px; line-height: 1.55; color: #5f6b71; margin: 0; word-break: keep-all; }
#link-my .lm-rank-types, #link-my .lm-periods { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
#link-my .lm-rank-types::-webkit-scrollbar, #link-my .lm-periods::-webkit-scrollbar { display: none; }
#link-my .lm-rank-types button, #link-my .lm-periods button { flex: none; min-height: 42px; padding: 9px 13px; border: 1px solid #e2e7e7; border-radius: 12px; background: #fff; color: #687176; font-size: 12px; font-weight: 850; white-space: nowrap; }
#link-my .lm-rank-types button[aria-pressed=true] { background: #bbff1f; border-color: #bbff1f; color: #161d12; }
#link-my .lm-periods { margin: 12px 0 16px; }
#link-my .lm-periods button { min-height: 36px; padding: 7px 11px; }
#link-my .lm-periods button[aria-pressed=true] { background: #151a18; border-color: #151a18; color: #fff; }
#link-my .lm-ranking-card .lm-help { margin-bottom: 7px; }
#link-my .lm-sales-own { padding: 13px 15px; margin: 12px 0; border-radius: 13px; background: #f0f8da; color: #263b20; font-size: 12px; font-weight: 850; line-height: 1.5; }
#link-my .lm-sales-consent { padding: 17px; margin-top: 18px; border-radius: 16px; background: #f7f9f7; border: 1px solid #e4eae4; }
#link-my .lm-sales-consent strong { font-size: 13px; }
#link-my .lm-sales-consent p { margin: 8px 0 13px; color: #637069; font-size: 12px; line-height: 1.6; }
#link-my .lm-sales-consent .lm-btn { white-space: normal; line-height: 1.4; }
#link-my .lm-sales-consent .lm-small-btn { margin-top: 8px; }
#link-my .lm-rank-person { flex-wrap: wrap; }
#link-my .lm-rank-score { min-width: 108px; text-align: right; font-size: 13px; color: #303b35; white-space: nowrap; }
#link-my .lm-rank-person .lm-person-open { margin-left: 2px; }
#link-my .lm-public-content, #link-my .lm-guide-list, #link-my .lm-notices { display: grid; gap: 10px; }
#link-my .lm-content-site, #link-my .lm-guide, #link-my .lm-notice { min-width: 0; padding: 17px; border: 1px solid #e8ecec; border-radius: 16px; background: #fff; }
#link-my .lm-content-site { background: #f8faf9; }
#link-my .lm-content-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#link-my .lm-content-top strong, #link-my .lm-notice strong { overflow-wrap: anywhere; font-size: 14px; }
#link-my .lm-content-items { display: grid; gap: 7px; margin-top: 13px; }
#link-my .lm-content-items p { display: flex; align-items: baseline; gap: 8px; margin: 0; color: #3c4848; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
#link-my .lm-content-items .lm-tag { flex: none; }
#link-my .lm-guide-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
#link-my .lm-guide { display: flex; flex-direction: column; background: #f7f9f2; }
#link-my .lm-guide h3 { font-size: 15px; line-height: 1.4; margin: 0 0 8px; }
#link-my .lm-guide p, #link-my .lm-notice p { color: #667174; font-size: 12px; line-height: 1.6; margin: 0; word-break: keep-all; }
#link-my .lm-guide .lm-small-btn { align-self: flex-start; margin-top: auto; padding: 10px 12px; }
#link-my .lm-guide p + .lm-small-btn { margin-top: 16px; }
#link-my .lm-notice p { margin: 8px 0; }
#link-my .lm-notice small { color: #899195; font-size: 11px; }
#link-my .lm-filter { display: flex; flex-wrap: wrap; gap: 7px; }
#link-my .lm-filter button { min-height: 42px; padding: 10px 13px; border: 1px solid #e4e7e8; border-radius: 12px; background: #fff; color: #687176; font-size: 12px; font-weight: 800; }
#link-my .lm-filter button[aria-pressed=true] { background: #141718; color: #fff; border-color: #141718; }
#link-my .lm-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
#link-my .lm-link-item { min-width: 0; padding: 19px; border: 1px solid #eaedef; border-radius: 19px; background: #fff; }
#link-my .lm-link-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
#link-my .lm-link-title strong { font-size: 17px; overflow-wrap: anywhere; line-height: 1.4; }
#link-my .lm-tag { border-radius: 6px; background: #eff8ff; padding: 5px 7px; color: #415b63; white-space: nowrap; font-size: 10px; font-weight: 850; }
#link-my .lm-link-meta { margin: 10px 0; color: #7e878a; font-size: 12px; overflow-wrap: anywhere; }
#link-my .lm-link-item > small { display: block; color: #52656a; font-size: 11px; line-height: 1.65; }
#link-my .lm-link-item > .lm-btn { width: 100%; margin-top: 16px; }
#link-my .lm-link-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
#link-my .lm-small-btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 12px; border: 1px solid #e0e5e6; border-radius: 11px; background: #fff; color: #303c41; text-decoration: none; font-size: 11px; font-weight: 850; }
#link-my .lm-custom-form { max-width: 630px; padding: 24px; border: 1px solid #e8eced; border-radius: 20px; }
#link-my .lm-custom-form label, #link-my .lm-dialog label { display: block; margin: 16px 0 7px; font-size: 12px; color: #313b40; font-weight: 850; }
#link-my .lm-custom-form input, #link-my .lm-dialog :is(input,textarea,select) { width: 100%; height: auto; min-height: 48px; padding: 12px 14px; border: 1px solid #dce2e4; border-radius: 11px; background: #fff; color: #101214; font-size: 16px; }
#link-my .lm-dialog textarea { resize: vertical; line-height: 1.5; }
#link-my .lm-custom-form > button { margin-top: 18px; width: 100%; }
#link-my .lm-bottom { display: none; }
#link-my .lm-dialog { width: min(480px,calc(100vw - 28px)); max-height: calc(100dvh - 28px); overflow-y: auto; padding: 24px; border: 0; border-radius: 23px; box-shadow: 0 18px 70px #1114164d; color: #101214; background: #fff; }
#link-my .lm-dialog::backdrop { background: #1012149e; }
#link-my .lm-dialog h2 { font-size: 23px; margin: 0 0 13px; }
#link-my .lm-dialog-actions { display: flex; gap: 8px; margin-top: 20px; }
#link-my .lm-dialog-actions > * { flex: 1; }
#link-my .lm-form-error { color: #9a3f28; font-size: 12px; margin: 12px 0 0; }
#link-my #lm-my-rank { color: #536168; font-size: 14px; line-height: 1.6; }
#link-my #lm-rank-join { margin-top: 16px; }
@media(max-width:760px){
  body.link-my-active #auth-shell-main { max-width: 560px; padding: 18px max(16px,env(safe-area-inset-right)) calc(100px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }
  body.link-my-active #auth-shell-header { padding: 10px 16px; }
  #link-my .lm-top { margin: 0 0 18px; }
  #link-my .lm-top-mark { display: none; }
  #link-my .lm-kicker { font-size: 10px; }
  #link-my h1 { font-size: clamp(26px, 7.4vw, 35px); letter-spacing: -1.2px; }
  #link-my .lm-tabs { display: none; }
  #link-my .lm-view { gap: 12px; }
  #link-my .lm-site-card, #link-my .lm-card { padding: 18px; border-radius: 20px; }
  #link-my .lm-section-title { margin-bottom: 14px; }
  #link-my h2 { font-size: 19px; }
  #link-my .lm-site-preview { min-height: 135px; padding: 17px; border-radius: 17px; }
  #link-my .lm-site-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  #link-my .lm-site-actions .lm-btn:first-child { grid-column: 1/-1; }
  #link-my .lm-site-actions #lm-site-import { grid-column: 1/-1; }
  #link-my .lm-site-summary { gap: 6px; }
  #link-my .lm-site-count { font-size: 10px; padding: 5px 8px; }
  #link-my .lm-market-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  #link-my .lm-market-filters button { min-width: 0; padding: 9px 4px; font-size: 11px; }
  #link-my .lm-market-types { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
  #link-my .lm-market-types button { min-width: 0; padding: 8px 4px; }
  #link-my .lm-import-list { grid-template-columns: 1fr; }
  #link-my .lm-import-actions { flex-direction: column; }
  #link-my .lm-import-actions .lm-btn { width: 100%; }
  #link-my .lm-btn { min-width: 0; min-height: 48px; font-size: 12px; padding: 10px; }
  #link-my .lm-add { min-width: 0; min-height: 96px; padding: 14px; }
  #link-my .lm-add b { font-size: 14px; line-height: 1.3; }
  #link-my .lm-add span { font-size: 11px; line-height: 1.3; }
  #link-my .lm-stat { padding: 11px 9px; }
  #link-my .lm-stat strong { font-size: 16px; }
  #link-my .lm-mix { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #link-my .lm-list { grid-template-columns: 1fr; }
  #link-my .lm-download-item { padding: 14px; }
  #link-my .lm-role-grid { grid-template-columns: 1fr; gap: 8px; }
  #link-my .lm-role { padding: 14px 16px; }
  #link-my .lm-role h3 { display: inline; margin: 0 8px; font-size: 14px; }
  #link-my .lm-role p { margin: 6px 0 0; }
  #link-my .lm-guide-list { grid-template-columns: 1fr; }
  #link-my .lm-guide { padding: 15px; }
  #link-my .lm-rank-person .lm-person-info { flex-basis: calc(100% - 50px); }
  #link-my .lm-rank-score { margin-left: 44px; text-align: left; }
  #link-my .lm-rank-person .lm-person-open { margin-left: auto; }
  #link-my .lm-filter { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  #link-my .lm-filter button { min-width: 0; }
  #link-my .lm-bottom { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); border-top: 1px solid #e7eaeb; background: #fffffff2; backdrop-filter: blur(14px); box-shadow: 0 -8px 24px #1114160c; }
  #link-my .lm-bottom button { display: flex; min-width: 0; min-height: 54px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; border-radius: 12px; background: transparent; color: #70777e; font-size: 11px; font-weight: 850; }
  #link-my .lm-bottom button span { font-size: 18px; line-height: 1; }
  #link-my .lm-bottom button[aria-current=page] { color: #142319; background: #eafa91; }
}
@media(max-width:370px){
  #link-my .lm-builder .lm-add-actions { grid-template-columns: 1fr; }
  #link-my .lm-builder .lm-add { min-height: 80px; }
  #link-my .lm-person { gap: 7px; }
  #link-my .lm-person-open { font-size: 10px; }
  #link-my .lm-stats .lm-stat span { font-size: 10px; }
  #link-my .lm-stats .lm-stat strong { font-size: 14px; }
}
@media(prefers-reduced-motion:reduce){#link-my *{scroll-behavior:auto}}

#link-my .lm-person-link { color: inherit; text-decoration: none; border-radius: 10px; padding-left: 10px; padding-right: 10px; }
#link-my .lm-person-link:hover, #link-my .lm-person-link:focus-visible { background: #f5ffd3; }

/* LINK MY layout picker */
#link-my .lm-template-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;border:0;padding:0;margin:0 0 16px}
#link-my .lm-template-choices legend{font-size:12px;font-weight:850;margin-bottom:9px}
#link-my .lm-template-choices label{position:relative;cursor:pointer}
#link-my .lm-template-choices input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
#link-my .lm-template-choices label span{display:block;min-height:84px;padding:15px 12px;border:1px solid #dcebe9;border-radius:14px;background:#fff}
#link-my .lm-template-choices b,#link-my .lm-template-choices small{display:block}
#link-my .lm-template-choices b{font-size:14px}
#link-my .lm-template-choices small{margin-top:5px;color:#657674;font-size:11px;line-height:1.4}
#link-my .lm-template-choices input:checked+span{background:#0abab5;border-color:#0abab5;color:#092c2a}
#link-my .lm-template-choices input:checked+span small{color:#154a47}
#link-my .lm-template-choices input:focus-visible+span{outline:3px solid #087f7c;outline-offset:2px}
#link-my .lm-layout-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:15px}
#link-my .lm-layout-controls label{font-size:12px;font-weight:850}
#link-my .lm-layout-controls select{display:block;width:100%;min-height:46px;margin-top:7px;padding:9px 12px;border:1px solid #dcebe9;border-radius:11px;background:#fff;color:#102d2b;font:inherit}
#link-my .lm-layout-card #lm-layout-save{width:100%}
@media(max-width:560px){#link-my .lm-template-choices{gap:6px}#link-my .lm-template-choices label span{padding:11px 8px;min-height:92px}#link-my .lm-template-choices b{font-size:12px}#link-my .lm-template-choices small{font-size:10px}}
@media(max-width:370px){#link-my .lm-template-choices{grid-template-columns:1fr}#link-my .lm-template-choices label span{min-height:56px}#link-my .lm-layout-controls{grid-template-columns:1fr}}

/* MY home reflects the public site; management panels live in Links. */
#link-my #lm-home{gap:12px}
#link-my #lm-home .lm-site-card{padding:16px 18px}
#link-my #lm-home .lm-site-preview{min-height:86px;padding:14px 17px;border-radius:15px}
#link-my #lm-home .lm-site-preview strong{font-size:20px;margin:4px 0 1px}
#link-my #lm-home #lm-site-desc,#link-my #lm-home #lm-site-summary{display:none}
#link-my #lm-home .lm-site-actions{margin-top:12px}
#link-my #lm-home .lm-site-actions #lm-site-import{flex-basis:auto}
#link-my .lm-public-preview{min-width:0;padding:19px;border:1px solid #dcebe9;border-radius:22px;background:#fff}
#link-my .lm-preview-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}
#link-my .lm-preview-head small{color:#087f7c;font-size:10px;font-weight:900;letter-spacing:.09em}
#link-my .lm-preview-head h2{margin:5px 0 0;font-size:20px}
#link-my .lm-preview-head .lm-btn{flex:none}
#link-my .lm-preview-groups{display:grid;gap:25px}
#link-my .lm-preview-section-head{display:flex;align-items:baseline;gap:7px;margin:0 0 10px}
#link-my .lm-preview-section-head h3{margin:0;font-size:18px}
#link-my .lm-preview-section-head span{color:#72817e;font-size:12px}
#link-my .lm-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#link-my .lm-preview-product{display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:158px;padding:17px;border:1px solid #dcebe9;border-radius:16px;background:#fff;color:#102d2b;text-decoration:none}
#link-my .lm-preview-product:hover{border-color:#0abab5}
#link-my .lm-preview-badge{display:inline-flex;padding:5px 8px;border-radius:7px;background:#0abab5;color:#092c2a;font-size:10px;font-weight:850}
#link-my .lm-preview-store{margin-top:10px;color:#657674;font-size:11px}
#link-my .lm-preview-benefit{margin-top:12px;color:#087f7c;font-size:21px;line-height:1.3}
#link-my .lm-preview-title{margin-top:8px;font-size:15px;line-height:1.45;overflow-wrap:anywhere}
#link-my .lm-preview-action{margin-top:auto;padding-top:12px;color:#087f7c;font-size:11px;font-weight:850}
#link-my .lm-public-preview[data-template=list] .lm-preview-grid{grid-template-columns:1fr}
#link-my .lm-public-preview[data-template=list] .lm-preview-product{min-height:105px}
#link-my .lm-public-preview[data-template=magazine] .lm-preview-grid>:first-child{grid-column:1/-1;background:#0abab5;border-color:#0abab5}
#link-my .lm-public-preview[data-template=magazine] .lm-preview-grid>:first-child .lm-preview-badge{background:#fff;color:#087f7c}
#link-my .lm-public-preview[data-template=magazine] .lm-preview-grid>:first-child :is(.lm-preview-benefit,.lm-preview-action){color:#092c2a}
@media(max-width:560px){
 #link-my .lm-public-preview{padding:15px;border-radius:19px}
 #link-my .lm-preview-head{align-items:flex-start}
 #link-my .lm-preview-head h2{font-size:18px}
 #link-my .lm-preview-head .lm-btn{min-height:42px;padding:8px;font-size:11px}
 #link-my .lm-preview-product{padding:13px;min-height:145px}
 #link-my .lm-preview-benefit{font-size:18px}
 #link-my .lm-preview-title{font-size:13px}
 #link-my #lm-home .lm-site-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 #link-my #lm-home .lm-site-actions .lm-btn:first-child{grid-column:1/-1}
 #link-my #lm-home .lm-site-actions #lm-site-import{grid-column:1/-1}
}

/* Product imagery in the MY public-site preview. */
#link-my .lm-preview-product{padding:12px;overflow:hidden}
#link-my .lm-preview-media{display:block;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:12px;background:#0abab5;margin-bottom:11px}
#link-my .lm-preview-media img{display:block;width:100%;height:100%;object-fit:cover}
#link-my .lm-public-preview[data-template=list] .lm-preview-product{display:grid;grid-template-columns:104px minmax(0,1fr);column-gap:12px;align-items:start;min-height:122px}
#link-my .lm-public-preview[data-template=list] .lm-preview-media{grid-row:1/6;aspect-ratio:1;margin:0}
#link-my .lm-public-preview[data-template=list] .lm-preview-product>:not(.lm-preview-media){grid-column:2}
#link-my .lm-public-preview[data-template=list] .lm-preview-product .lm-preview-media{grid-column:1;grid-row:1/6}
#link-my .lm-public-preview[data-template=list] .lm-preview-store{margin-top:5px}
#link-my .lm-public-preview[data-template=list] .lm-preview-benefit{margin-top:5px;font-size:18px}
#link-my .lm-public-preview[data-template=list] .lm-preview-title{margin-top:5px}
@media(max-width:560px){
 #link-my .lm-preview-product{padding:9px}
 #link-my .lm-preview-media{border-radius:9px;margin-bottom:9px}
 #link-my .lm-public-preview[data-template=list] .lm-preview-product{grid-template-columns:86px minmax(0,1fr);column-gap:10px}
}
