/* QGuide V5.2 visual finalization: approved references and official brand lockup */
.ql-brand-image{display:block;object-fit:contain;max-width:100%}
.ql-brand-image-horizontal{width:185px;height:auto}
.ql-mobile-brand .ql-brand-image-horizontal{width:150px}
.v3-brand .v3-brand-image{width:218px;height:auto;max-width:100%}
.v3-brand-suffix{font-family:var(--font-serif);font-size:17px;font-weight:700;color:var(--v3-ink);letter-spacing:.08em}
.v3-header-ai .v3-brand-image{width:156px}.v3-header-ai .v3-brand-suffix{font-size:15px}
.v4-console-brand .v3-brand-image{width:172px}
.ql-brand-image-footer{width:164px;max-height:42px}
.v4-console-brand .ql-brand-image-horizontal{width:172px}.v4-console-brand>span{font-size:13px;color:#6b6558;margin-left:8px}
.ql-v52-header .ql-desktop-brand{min-width:195px;align-items:center}
.ql-v52-footer .ql-footer-brand{min-width:175px}
.ql-v52-detail-header,.ql-v52-editor-header{width:min(1480px,calc(100% - 58px));height:82px;margin:auto;display:grid;align-items:center;grid-template-columns:50px 210px 1fr auto;gap:18px}
.ql-v52-detail-header button,.ql-v52-editor-header button{border:0;background:none;color:#1a2d3f;display:flex;align-items:center;gap:7px}
.ql-v52-back svg{width:29px;height:29px}.ql-v52-detail-brand .ql-brand-image{width:180px}.ql-v52-detail-title{font-size:18px;color:#756f61}.ql-v52-detail-header>div{display:flex;gap:10px}.ql-v52-detail-header>div button{width:42px;height:42px;justify-content:center;border:1px solid #d7cbb8;border-radius:12px;background:#fffdf8}.ql-v52-detail-header svg{width:23px}
.ql-v52-editor-header{grid-template-columns:190px 1fr 170px}.ql-v52-editor-header>a{justify-self:center}.ql-v52-editor-header>a .ql-brand-image{width:185px}.ql-v52-editor-header>button:first-child{font-size:21px}.ql-v52-save{justify-self:end;border:1px solid #6e764d!important;border-radius:12px!important;height:44px;padding:0 14px!important;color:#4d5832!important}.ql-v52-save svg{width:21px}

/* route */
.ql-v52-route-grid{display:grid;grid-template-columns:320px minmax(560px,1fr) 500px;gap:16px;align-items:start;padding:0 12px 16px}.ql-v52-condition{padding:18px}.ql-v52-condition h2,.ql-v52-route-list h2,.ql-v52-route-map h2,.ql-v52-weather h2{font-size:20px;margin:0;color:var(--ql-navy)}.ql-v52-condition>button:not(.ql-primary){width:100%;height:48px;border:1px solid #d7cbb8;border-radius:12px;background:#fffdf8;margin-top:11px;display:grid;grid-template-columns:25px 1fr 18px;align-items:center;text-align:left;padding:0 13px;color:#4b4d45}.ql-v52-condition>button svg{width:20px;color:var(--ql-green)}.ql-v52-condition>.ql-primary{width:100%;height:51px;margin-top:16px;font-size:17px}.ql-v52-route-list{padding:17px}.ql-v52-route-list>header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:11px}.ql-v52-route-list>header>div{display:flex;gap:14px}.ql-v52-route-list>header button{border:0;background:none;color:#655f54;display:flex;align-items:center;gap:5px}.ql-v52-route-list>header svg{width:16px}.ql-v52-route-row{height:82px;border:1px solid #d9cdb9;border-radius:13px;background:#fffdf8;display:grid;grid-template-columns:24px 42px 130px 1fr 105px;gap:10px;align-items:center;padding:8px 10px;margin-bottom:8px;position:relative}.ql-v52-route-row:not(:last-child)::after{content:"";position:absolute;left:53px;top:80px;height:11px;border-left:2px dashed #6b783e}.ql-v52-route-row>.ql-v52-drag{border:0;background:none;color:#c0b194;font-size:20px}.ql-v52-route-row>span{width:38px;height:38px;border-radius:50%;background:var(--ql-green);color:#fff;display:grid;place-items:center;font-size:21px}.ql-v52-route-row>img{width:130px;height:64px;object-fit:cover;border-radius:7px}.ql-v52-route-row h3{font-size:20px;margin:0 0 3px;color:var(--ql-navy);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.25}.ql-v52-route-row p{margin:0;color:#716b61;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}/* 篩到只剩 1 篇時,「更多旅人攻略」以前是有標題沒內容的空區塊——
   使用者分不出是篩太細還是頁面壞了。共 28 組「場域×篩選」會落在剛好 1 篇。 */
.ql-v52-empty-note{margin:0;padding:18px 16px;border:1px dashed var(--v3-line,#ddd1be);border-radius:14px;color:var(--v3-muted,#6a6355);font-size:14px;line-height:1.6;text-align:center}
/* 這是提示不是按鈕:桌機的拖曳排序真的能用,但「按一下」不會做任何事,
   所以它不該長得像可以按。動作在旁邊的「換個順序試試」。 */
.ql-v52-drag-hint{display:inline-flex;align-items:center;gap:4px;color:var(--v3-muted,#6a6355);font-size:13px;white-space:nowrap}
.ql-v52-drag-hint svg{width:15px;height:15px}
.ql-v52-route-actions{display:flex;justify-content:flex-end;gap:5px}.ql-v52-route-actions button{border:0;background:none;color:#5b5b54;display:grid;justify-items:center;gap:2px}.ql-v52-route-actions svg{width:22px}.ql-v52-route-actions em{font-style:normal;font-size:12px}.ql-v52-route-row.is-dragging{opacity:.45}.ql-v52-route-row.is-drag-over{transform:translateY(3px);border-color:var(--ql-orange)}.ql-v52-route-list>footer{height:54px;border:1px solid #d7cbb8;border-radius:12px;display:grid;grid-template-columns:repeat(4,1fr);align-items:center;margin-top:10px}.ql-v52-route-list>footer span{display:flex;align-items:center;justify-content:center;gap:7px;color:#454a3c}.ql-v52-route-list>footer svg{width:23px;color:var(--ql-green)}.ql-v52-route-main-actions{display:grid;grid-template-columns:1.4fr 1fr;gap:12px;margin-top:12px}.ql-v52-route-main-actions button{height:51px;border:1px solid #7a755e;border-radius:11px;background:#fffdf8;font-size:17px;color:#505542}.ql-v52-route-side{display:grid;gap:12px}.ql-v52-route-map,.ql-v52-weather{padding:17px}.ql-v52-route-map>button{width:100%;border:0;background:none;padding:0;margin-top:10px}.ql-v52-route-map img{width:100%;height:288px;object-fit:cover;border:1px solid #d4c7b1;border-radius:11px}.ql-v52-route-map>div{display:flex;gap:14px;flex-wrap:wrap;padding-top:8px;color:#686158;font-size:12px}.ql-v52-route-map i{width:24px;border-top:3px solid #6a793d;display:inline-block}.ql-v52-route-map i.orange{border-color:#d65117}.ql-v52-route-map i.blue{border-color:#2576bd;border-top-style:dashed}.ql-v52-weather header{display:flex;justify-content:space-between}.ql-v52-weather header h2{display:flex;gap:6px}.ql-v52-weather p{font-size:16px;color:#4f4e46}.ql-v52-weather>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ql-v52-weather button{height:46px;border:1px solid #9c917a;border-radius:10px;background:#fffdf8;color:#4f5344}.ql-v52-route-mobile{display:none}

/* guides */
.ql-v52-guides-grid{display:grid;grid-template-columns:210px minmax(0,1fr) 485px;gap:16px;padding:0 12px 18px}.ql-v52-guide-filter{padding:18px;display:grid;gap:16px;align-content:start}.ql-v52-guide-filter h2{font-size:20px;margin:0}.ql-v52-guide-filter label{display:grid;gap:7px;color:#4d5143}.ql-v52-guide-filter select{height:40px;border:1px solid #d6cab6;border-radius:11px;background:#fffdf8;padding:0 10px}.ql-v52-guide-filter label>div{display:flex;gap:7px;flex-wrap:wrap}.ql-v52-guide-filter label button{border:1px solid #d5cab7;border-radius:999px;background:#fffdf8;padding:5px 10px}.ql-v52-guide-filter label button.is-active{background:var(--ql-green);color:#fff}.ql-v52-guide-filter>.ql-primary{height:45px}.ql-v52-featured-guide{display:grid;grid-template-columns:44% 1fr;overflow:hidden}.ql-v52-featured-cover{position:relative;min-height:300px}.ql-v52-featured-cover>img{width:100%;height:100%;object-fit:cover}.ql-v52-featured-cover>span{position:absolute;left:12px;top:12px;background:var(--ql-orange);color:#fff;border-radius:999px;padding:7px 12px;display:flex;align-items:center;gap:5px}.ql-v52-featured-copy{padding:20px}.ql-v52-featured-copy h2{font-size:29px;margin:0 0 10px}.ql-v52-featured-copy .author{display:flex;align-items:center;gap:8px}.ql-v52-featured-copy .author img{width:32px;height:32px;border-radius:50%}.ql-v52-guide-tags{display:flex;gap:8px;flex-wrap:wrap}.ql-v52-guide-tags span{border:1px solid #d9ccb8;border-radius:999px;padding:5px 9px;font-size:12px;display:flex;align-items:center;gap:4px}.ql-v52-featured-copy h3{margin:16px 0 6px}.ql-v52-guide-notes{display:grid;grid-template-columns:1fr 1fr;gap:15px;border-top:1px solid #dbcfbd;margin-top:12px;padding-top:12px}.ql-v52-guide-notes strong{display:flex;gap:6px;color:#53652c}.ql-v52-guide-notes p{font-size:13px;line-height:1.55;color:#58554d}.ql-v52-featured-guide>footer{grid-column:1/-1;display:grid;grid-template-columns:1.3fr 1fr .55fr .55fr;gap:8px;padding:10px 16px;border-top:1px solid #ded1be}.ql-v52-featured-guide>footer button{height:42px;border:1px solid #d1c4af;border-radius:10px;background:#fffdf8;color:#4e533f}.ql-v52-more-guides{margin-top:13px}.ql-v52-more-guides>h2{font-size:23px;margin:0 0 8px}.ql-v52-more-guides>div{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.ql-v52-more-guides article,.ql-v52-mobile-more article{border:1px solid #d8cbb7;border-radius:12px;background:#fffdf8;overflow:hidden}.ql-v52-more-guides article>button,.ql-v52-mobile-more article>button{border:0;background:none;padding:0;text-align:left;width:100%;color:inherit}.ql-v52-more-guides article>button>img,.ql-v52-mobile-more article>button>img{width:100%;height:120px;object-fit:cover}.ql-v52-more-guides h3,.ql-v52-mobile-more h3{font-size:16px;margin:8px}.ql-v52-more-guides article p,.ql-v52-mobile-more article p{display:flex;align-items:center;gap:5px;margin:0 8px;font-size:11px;color:#716b60}.ql-v52-more-guides article p img,.ql-v52-mobile-more article p img{width:20px;height:20px;border-radius:50%}.ql-v52-more-guides article div,.ql-v52-mobile-more article div{display:flex;gap:8px;padding:7px 8px}.ql-v52-more-guides article div span,.ql-v52-mobile-more article div span{font-size:10px;display:flex;gap:3px}.ql-v52-more-guides article small,.ql-v52-mobile-more article small{display:block;padding:0 8px 8px;color:#53652c}.ql-v52-guide-side{display:grid;gap:12px;align-content:start}.ql-v52-guide-side>.ql-panel{padding:16px}.ql-v52-guide-side h2{font-size:20px;margin:0 0 10px}.ql-v52-guide-side>.ql-panel>img{width:100%;height:255px;object-fit:cover;border-radius:10px}.ql-v52-guide-side ol{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:7px}.ql-v52-guide-side li{display:grid;grid-template-columns:28px 72px 1fr;gap:8px;align-items:center}.ql-v52-guide-side li>span{width:27px;height:27px;border-radius:50%;background:var(--ql-green);color:#fff;display:grid;place-items:center}.ql-v52-guide-side li img{width:72px;height:45px;object-fit:cover;border-radius:6px}.ql-v52-guide-side li small{grid-column:3;color:#797264}.ql-v52-guide-side>.ql-panel:last-child>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ql-v52-guide-side>.ql-panel:last-child span{border:1px solid #ddd1be;border-radius:10px;padding:12px;display:flex;gap:7px;align-items:center}.ql-v52-guides-mobile{display:none}

/* guide detail */
.ql-v52-guide-detail,.ql-v52-guide-image-page{width:min(980px,calc(100% - 34px));margin:0 auto 30px;padding-top:12px}.ql-v52-detail-tabs{height:54px;border:1px solid #d9ccb8;border-radius:16px 16px 0 0;display:grid;grid-template-columns:1fr 1fr;overflow:hidden}.ql-v52-detail-tabs a{display:flex;align-items:center;justify-content:center;text-decoration:none;color:#4d4b45;background:#fffdf8}.ql-v52-detail-tabs a.is-active{background:var(--ql-orange);color:#fff}.ql-v52-detail-cover{height:380px;position:relative;overflow:hidden}.ql-v52-detail-cover>img{width:100%;height:100%;object-fit:cover}.ql-v52-detail-cover::after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,rgba(12,24,24,.78))}.ql-v52-detail-cover>div{position:absolute;z-index:2;left:32px;right:32px;bottom:27px;color:#fff}.ql-v52-detail-cover h1{font-size:42px;margin:8px 0}.ql-v52-detail-cover p{font-size:19px}.ql-v52-author{background:#fffdf8;border:1px solid #d9ccb8;border-radius:0 0 16px 16px;padding:16px 19px;display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:14px}.ql-v52-author>div{display:flex;align-items:center;gap:9px}.ql-v52-author img{width:48px;height:48px;border-radius:50%}.ql-v52-author span{display:grid}.ql-v52-author button{height:42px;border:1px solid #d0c3ae;border-radius:10px;background:#fffdf8;padding:0 13px}.ql-v52-guide-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:15px 0}.ql-v52-guide-facts span{height:52px;border:1px solid #d8ccb8;border-radius:12px;background:#fffdf8;display:flex;align-items:center;justify-content:center;gap:8px}.ql-v52-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
/* 第三顆按鈕跨整列，兩欄格線裡不要落單。 */
.ql-v52-detail-actions .ql-v52-remix{grid-column:1/-1}.ql-v52-detail-actions button{height:55px;border:1px solid #b7aa92;border-radius:13px;background:#fffdf8;font-size:18px}.ql-v52-guide-summary,.ql-v52-detail-stops,.ql-v52-before,.ql-v52-poster-cta{background:#fffdf8;border:1px solid #d8ccb8;border-radius:16px;padding:18px;margin-top:16px}.ql-v52-guide-summary h2,.ql-v52-detail-stops h2,.ql-v52-before h2{font-size:25px;margin:0 0 10px}.ql-v52-guide-summary p{font-size:16px;line-height:1.8;color:#4f4c45}.ql-v52-detail-stops article{display:grid;grid-template-columns:38px 180px 1fr auto;gap:12px;align-items:center;padding:10px 0;border-top:1px solid #e0d5c4}.ql-v52-detail-stops article>span{width:34px;height:34px;border-radius:50%;background:var(--ql-orange);color:#fff;display:grid;place-items:center}.ql-v52-detail-stops img{width:180px;height:86px;object-fit:cover;border-radius:9px}.ql-v52-detail-stops h3{font-size:20px;margin:0 0 4px}.ql-v52-detail-stops p{margin:0;color:#6f695e}.ql-v52-detail-stops button{height:42px;border:1px solid #d0c3ae;border-radius:10px;background:#fffdf8}.ql-v52-before>div{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.ql-v52-before>div span{border:1px solid #ded2c0;border-radius:11px;padding:13px;display:grid;justify-items:center;gap:5px}.ql-v52-before>div svg{width:28px;color:var(--ql-green)}.ql-v52-before>p{font-size:12px;color:#70695e}.ql-v52-poster-cta{display:grid;grid-template-columns:175px 1fr;gap:18px;align-items:center}.ql-v52-poster-cta img{width:175px;height:120px;object-fit:cover;border-radius:9px}.ql-v52-poster-cta h2{font-size:22px;margin:0 0 5px}.ql-v52-poster-cta a{display:inline-flex;height:42px;padding:0 16px;align-items:center;text-decoration:none}.ql-v52-guide-image-page nav{display:grid;grid-template-columns:1fr 1fr;height:54px;border:1px solid #d8ccb8;border-radius:15px;overflow:hidden}.ql-v52-guide-image-page nav a{display:flex;align-items:center;justify-content:center;text-decoration:none;color:#4b4b45}.ql-v52-guide-image-page nav a.is-active{background:var(--ql-orange);color:#fff}.ql-v52-guide-image-page>img{display:block;width:min(540px,100%);max-height:1150px;object-fit:contain;margin:18px auto}.ql-v52-guide-image-page>div{display:flex;justify-content:center;gap:10px}.ql-v52-guide-image-page>div>*{height:44px;border:1px solid #cfc1aa;border-radius:10px;background:#fffdf8;color:#4e503f;display:flex;align-items:center;padding:0 15px;text-decoration:none}

/* builder */
.ql-v52-builder-page{width:min(1280px,calc(100% - 40px));margin:18px auto 36px}.ql-v52-builder-stepper{list-style:none;margin:0 0 18px;padding:10px 24px;border:1px solid #d8ccb8;border-radius:17px;background:#fffdf8;display:grid;grid-template-columns:repeat(4,1fr)}.ql-v52-builder-stepper li{position:relative}.ql-v52-builder-stepper li:not(:last-child)::after{content:"";position:absolute;top:21px;left:61%;right:-39%;border-top:2px dotted #c7b99f}.ql-v52-builder-stepper button{width:100%;border:0;background:none;display:flex;align-items:center;justify-content:center;gap:8px;color:#615d54}.ql-v52-builder-stepper span{position:relative;z-index:2;width:40px;height:40px;border-radius:50%;border:1px solid #bcae95;background:#fffdf8;display:grid;place-items:center}.ql-v52-builder-stepper li.active span{background:var(--ql-orange);color:#fff;border-color:var(--ql-orange)}.ql-v52-builder-stepper li.done span{background:var(--ql-green);color:#fff;border-color:var(--ql-green)}.ql-v52-builder-layout{display:grid;grid-template-columns:500px 1fr;gap:17px}.ql-v52-builder-layout main{display:grid;gap:13px}.ql-v52-builder-card,.ql-v52-builder-layout>aside,.ql-v52-builder-select,.ql-v52-output{border:1px solid #d8ccb8;border-radius:17px;background:#fffdf8;padding:17px}.ql-v52-builder-card h2,.ql-v52-builder-layout>aside h2,.ql-v52-builder-select h2{font-size:21px;margin:0 0 12px}.ql-v52-builder-card>header{display:flex;justify-content:space-between}.ql-v52-builder-card>header button{border:1px solid #e15c1e;border-radius:999px;background:none;color:var(--ql-orange);padding:5px 13px}.ql-v52-builder-card .summary{display:grid;grid-template-columns:135px 1fr;gap:13px}.ql-v52-builder-card .summary img{width:135px;height:125px;object-fit:cover;border-radius:9px}.ql-v52-builder-card .summary h3{font-size:24px;margin:0 0 8px}.ql-v52-builder-card .presentation{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.ql-v52-builder-card .presentation button{border:1px solid #d4c8b6;border-radius:12px;background:#fffdf8;padding:12px 8px;display:grid;justify-items:center;gap:7px}.ql-v52-builder-card .presentation button.is-active{border:2px solid var(--ql-orange)}.ql-v52-builder-card .presentation svg{width:32px;color:var(--ql-green)}.ql-v52-builder-card .templates{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.ql-v52-builder-card .templates button{border:1px solid #d4c8b6;border-radius:12px;background:#fffdf8;padding:6px}.ql-v52-builder-card .templates button.is-active{border:2px solid var(--ql-orange)}.ql-v52-builder-card .templates img{width:100%;height:158px;object-fit:cover;border-radius:7px}.ql-v52-builder-card .sizes{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.ql-v52-builder-card .sizes button{height:55px;border:1px solid #d5c9b7;border-radius:11px;background:#fffdf8;display:grid;place-items:center}.ql-v52-builder-card .sizes button.is-active{border:2px solid var(--ql-orange);color:var(--ql-orange)}.ql-v52-builder-card .settings{display:grid;grid-template-columns:1fr 1fr}.ql-v52-builder-card .settings label{height:42px;display:flex;align-items:center;justify-content:space-between;padding-right:12px}.ql-v52-builder-layout>aside{align-self:start;position:sticky;top:105px}.ql-v52-builder-preview{position:relative;width:min(420px,100%);margin:auto}.ql-v52-builder-preview>img{width:100%;max-height:730px;object-fit:contain;border-radius:12px;box-shadow:0 6px 20px rgba(59,42,18,.13)}.ql-v52-builder-preview>div{position:absolute;left:9%;right:9%;top:8%;text-align:center;color:var(--ql-navy)}.ql-v52-builder-preview h2{font-size:28px;margin:0}.ql-v52-builder-preview p{margin:5px 0}.ql-v52-builder-layout>aside>div:last-child{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.ql-v52-builder-layout>aside button{height:44px;border:1px solid #d2c4ae;border-radius:10px;background:#fffdf8}.ql-v52-builder-action{display:grid;justify-items:center;gap:8px;margin-top:18px}.ql-v52-builder-action button{min-width:480px;height:60px;border:0;background:none;color:var(--ql-orange);font-size:18px}.ql-v52-builder-action .ql-primary{font-size:22px}.ql-v52-builder-select{width:min(780px,100%);margin:auto;display:grid;gap:10px}.ql-v52-builder-select>label{display:grid;grid-template-columns:28px 120px 1fr;gap:12px;align-items:center;border:1px solid #d7cbb8;border-radius:12px;padding:9px}.ql-v52-builder-select>label.is-active{border:2px solid var(--ql-orange)}.ql-v52-builder-select img{width:120px;height:80px;object-fit:cover;border-radius:8px}.ql-v52-builder-select .ql-primary{height:52px;margin-top:8px}.ql-v52-builder-edit .ql-v52-builder-card>label{display:grid;gap:6px;margin-bottom:10px}.ql-v52-builder-edit textarea,.ql-v52-builder-edit input{border:1px solid #d5c9b7;border-radius:10px;padding:10px;background:#fff}.ql-v52-builder-edit article{display:grid;grid-template-columns:32px 80px 1fr 35px;gap:9px;align-items:center;border-top:1px solid #dfd4c2;padding:9px 0}.ql-v52-builder-edit article>span{width:30px;height:30px;border-radius:50%;background:var(--ql-green);color:#fff;display:grid;place-items:center}.ql-v52-builder-edit article img{width:80px;height:55px;object-fit:cover;border-radius:6px}.ql-v52-builder-edit article h3{margin:0}.ql-v52-builder-edit article p{margin:2px 0;color:#716b60;font-size:12px}.ql-v52-output{display:grid;grid-template-columns:minmax(360px,560px) 1fr;gap:25px}.ql-v52-output>aside{display:grid;align-content:center;gap:10px}.ql-v52-output>aside>span{color:#53652c}.ql-v52-output h1{font-size:36px;margin:0}.ql-v52-output button{height:48px;border:1px solid #d2c5af;border-radius:10px;background:#fffdf8;text-align:left;padding:0 15px}

/* 🔴 上限原本是 1250px，但預設的三欄 320+560+500 加上 gap 與 padding
 * 需要約 1474px 視窗才放得下。於是 1251-1473px 這一段沒有任何規則涵蓋，
 * 路線頁會橫向捲動——而 1440 正是最常見的筆電寬度。
 * 2026-09-05 在 1440x900 實測：aside 右緣 1445，超出視窗。 */
@media (max-width:1499px) and (min-width:901px){.ql-v52-route-grid{grid-template-columns:260px minmax(500px,1fr) 360px}.ql-v52-route-row{grid-template-columns:20px 38px 105px 1fr 90px}.ql-v52-route-row>img{width:105px}.ql-v52-guides-grid{grid-template-columns:190px minmax(0,1fr) 360px}.ql-v52-featured-guide{grid-template-columns:40% 1fr}.ql-v52-builder-layout{grid-template-columns:440px 1fr}}

/* 901-1230px：三欄放不下就不要硬排三欄。
 * 緊湊版的 260+500+360 加上 gap 與 padding 需要約 1231px 視窗（欄寬 1120 + gap 36 + padding 24 + 容器外距 34 + 捲軸 17）。
 * 2026-09-05 在 1000x800 實測：捲動寬 1185，超出視窗 185px。
 * 這一段改成兩欄，地圖與天氣移到下面整列——中間欄若硬擠只剩 187px，
 * 一列路線根本排不開。 */
@media (max-width:1230px) and (min-width:901px){
  .ql-v52-route-grid{grid-template-columns:240px minmax(0,1fr)}
  .ql-v52-route-side{grid-column:1 / -1;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px;align-items:start}
}


@media (max-width:900px){
  .ql-v52-header .ql-desktop-header-inner{display:none}.ql-v52-mobile-header{display:grid!important}.ql-v52-mobile-header .ql-mobile-brand{min-width:0}.ql-v52-mobile-header .ql-brand-image-horizontal{width:142px}.ql-v52-detail-header,.ql-v52-editor-header{width:100%;height:72px;padding:0 14px;grid-template-columns:42px 1fr auto;gap:8px}.ql-v52-detail-brand{justify-self:center}.ql-v52-detail-brand .ql-brand-image{width:155px}.ql-v52-detail-title{display:none}.ql-v52-detail-header>div{gap:4px}.ql-v52-detail-header>div button{width:38px;height:38px;border:0}.ql-v52-editor-header{grid-template-columns:145px 1fr 112px}.ql-v52-editor-header>a .ql-brand-image{width:150px}.ql-v52-editor-header>button:first-child{font-size:17px}.ql-v52-save{height:38px!important;font-size:12px}.ql-brand-image-footer{width:145px}
  .ql-v52-route-desktop,.ql-v52-guides-desktop{display:none}.ql-v52-route-mobile,.ql-v52-guides-mobile{display:block}.ql-v52-route-mobile,.ql-v52-guides-mobile{padding:0 14px 180px}.ql-v52-mobile-title{height:63px;border-bottom:1px solid #ded2c0;display:flex;align-items:center;justify-content:space-between}.ql-v52-mobile-title h1{font-size:29px;margin:0}.ql-v52-mobile-title button{height:42px;border:1px solid #d4c7b2;border-radius:999px;background:#fffdf8;padding:0 15px}.ql-v52-route-mobile-hero{height:135px;display:grid;grid-template-columns:1fr 120px;align-items:center}.ql-v52-route-mobile-hero h2{font-size:27px;line-height:1.35;margin:0 0 7px}.ql-v52-route-mobile-hero p{font-size:14px;line-height:1.6;margin:0;color:#58544c}.ql-v52-route-mobile-hero img{width:118px;height:110px;object-fit:contain}.ql-v52-route-overview{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ql-v52-route-overview>section,.ql-v52-mobile-map{border:1px solid #d9ccb8;border-radius:15px;background:#fffdf8;padding:12px}.ql-v52-route-overview header{display:flex;justify-content:space-between}.ql-v52-route-overview h2{font-size:18px;margin:0}.ql-v52-route-overview header button{border:0;background:none;color:var(--ql-orange)}.ql-v52-route-overview>section>div{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:11px 0}.ql-v52-route-overview>section>div span{min-height:38px;border:1px solid #ded3c2;border-radius:10px;padding:6px;display:flex;align-items:center;gap:6px;font-size:11px}.ql-v52-route-overview>section>div span:first-child{grid-column:1/-1}.ql-v52-route-overview>section>div svg{width:18px;color:var(--ql-green)}.ql-v52-route-overview>section>button{width:100%;height:40px;border:1px solid #d1c3ad;border-radius:10px;background:#fffdf8;color:var(--ql-orange)}.ql-v52-mobile-map{padding:0;overflow:hidden;position:relative}.ql-v52-mobile-map img{width:100%;height:100%;object-fit:cover}.ql-v52-mobile-map>span{position:absolute;left:0;right:0;bottom:0;height:43px;background:rgba(255,249,240,.96);display:flex;align-items:center;justify-content:center;color:var(--ql-orange)}.ql-v52-mobile-route-list{margin-top:16px}.ql-v52-mobile-route-list>header{display:flex;justify-content:space-between;align-items:center}.ql-v52-mobile-route-list h2{font-size:25px;margin:0 0 9px}.ql-v52-mobile-route-list>header button{border:0;background:none}.ql-v52-mobile-route-list .ql-v52-route-row{height:88px;grid-template-columns:16px 42px 115px 1fr 50px;padding:8px 6px}.ql-v52-mobile-route-list .ql-v52-route-row>img{width:115px;height:70px}.ql-v52-mobile-route-list .ql-v52-route-row h3{font-size:17px}.ql-v52-mobile-route-list .ql-v52-route-row p{font-size:12px}.ql-v52-mobile-route-list .ql-v52-route-actions button:first-child{display:none}.ql-v52-mobile-route-list .ql-v52-route-actions button:first-child em{display:none}.ql-v52-mobile-route-list .ql-v52-route-actions svg{width:25px}.ql-v52-mobile-route-list .ql-v52-route-row:not(:last-child)::after{left:36px;height:16px;top:86px}.ql-v52-mobile-route-list>footer{display:grid;grid-template-columns:repeat(3,1fr);height:49px;border:1px solid #d8ccb8;border-radius:12px;background:#fffdf8;margin-top:12px}.ql-v52-mobile-route-list>footer span{display:flex;align-items:center;justify-content:center;gap:5px;font-size:12px}.ql-v52-mobile-route-list>footer svg{width:20px;color:var(--ql-green)}.ql-v52-mobile-weather{border:1px solid #d8ccb8;border-radius:14px;background:#fffdf8;padding:12px;margin-top:12px}.ql-v52-mobile-weather>div:first-child{display:grid;grid-template-columns:45px 1fr;gap:7px}.ql-v52-mobile-weather>div:first-child>svg{width:38px;height:38px;color:#1d5877}.ql-v52-mobile-weather span{display:grid}.ql-v52-mobile-weather small{color:#767064}.ql-v52-mobile-weather>div:last-child{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}.ql-v52-mobile-weather button{height:47px;border:1px solid #d0c3ae;border-radius:10px;background:#fffdf8}.ql-v52-mobile-sticky{position:fixed;left:0;right:0;bottom:91px;background:rgba(255,250,243,.97);border-top:1px solid #ded2c0;display:grid;grid-template-columns:1.5fr .7fr;gap:9px;padding:10px 16px;z-index:95}.ql-v52-mobile-sticky button{height:57px;border:1px solid #cfc1aa;border-radius:17px;background:#fffdf8;font-size:16px}
  .ql-v52-guide-mobile-top{height:96px;display:grid;grid-template-columns:1fr 220px;align-items:center;position:relative}.ql-v52-guide-mobile-top>div{display:flex;align-items:center;gap:18px;z-index:2}.ql-v52-guide-mobile-top button{height:42px;border:1px solid #d5c8b4;border-radius:999px;background:#fffdf8;padding:0 13px}.ql-v52-guide-mobile-top h1{font-size:29px;margin:0}.ql-v52-guide-mobile-top>img{position:absolute;right:-18px;width:235px;opacity:.62}.ql-v52-guide-mobile-hero{height:112px;display:grid;grid-template-columns:1fr 98px}.ql-v52-guide-mobile-hero h2{font-size:25px;line-height:1.35;margin:0 0 5px}.ql-v52-guide-mobile-hero p{font-size:13px;margin:0;color:#5f5a50}.ql-v52-guide-mobile-hero img{width:95px;height:100px;object-fit:contain}.ql-v52-filter-row{display:flex;gap:9px;overflow-x:auto;padding:4px 0 11px}.ql-v52-filter-row button{height:40px;padding:0 17px;border:1px solid #d7cab6;border-radius:999px;background:#fffdf8;white-space:nowrap}.ql-v52-filter-row button.is-active{background:var(--ql-orange);color:#fff;border-color:var(--ql-orange)}.ql-v52-mobile-featured{border:1px solid #d9ccb8;border-radius:16px;background:#fffdf8;padding:14px}.ql-v52-mobile-featured h2{font-size:26px;margin:0 0 8px}.ql-v52-mobile-featured .author{display:flex;align-items:center;gap:6px}.ql-v52-mobile-featured .author img{width:31px;height:31px;border-radius:50%}.ql-v52-mobile-featured .tags{display:flex;gap:6px;flex-wrap:wrap}.ql-v52-mobile-featured .tags span{border:1px solid #d9cdb9;border-radius:999px;padding:5px 8px;font-size:11px}.ql-v52-mobile-featured .collage{height:230px;display:grid;grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;margin-top:12px;overflow:hidden;border-radius:10px}.ql-v52-mobile-featured .collage img{width:100%;height:100%;object-fit:cover}.ql-v52-mobile-featured .collage img:first-child{grid-row:1/3}.ql-v52-mobile-featured .route{height:46px;background:#f1ecdf;margin:0;display:flex;align-items:center;justify-content:center;font-size:12px}.ql-v52-mobile-featured .notes{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px 0}.ql-v52-mobile-featured .notes p{font-size:12px;line-height:1.55;margin:0}.ql-v52-mobile-featured .notes strong{display:flex;color:#53652c}.ql-v52-mobile-featured footer{display:grid;grid-template-columns:1.3fr 1fr 45px 45px;gap:7px}.ql-v52-mobile-featured footer button{height:43px;border:1px solid #d1c3ad;border-radius:10px;background:#fffdf8}.ql-v52-mobile-more{margin-top:14px}.ql-v52-mobile-more>header{display:flex;justify-content:space-between}.ql-v52-mobile-more>header h2{font-size:23px}.ql-v52-mobile-more>header button{border:0;background:none;color:var(--ql-orange)}.ql-v52-mobile-more>div{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.ql-v52-mobile-more article>button>img{height:108px}.ql-v52-mobile-more h3{font-size:13px;line-height:1.35}.ql-v52-mobile-more article div{display:grid;gap:3px}.ql-v52-guide-info{font-size:11px;margin:10px 0;color:#6f695e}
  .ql-v52-guide-detail,.ql-v52-guide-image-page{width:100%;padding:0 14px 150px;margin:0}.ql-v52-detail-tabs{height:48px;border-radius:12px}.ql-v52-detail-cover{height:290px}.ql-v52-detail-cover>div{left:16px;right:16px;bottom:17px}.ql-v52-detail-cover h1{font-size:31px}.ql-v52-detail-cover p{font-size:15px}.ql-v52-author{grid-template-columns:1fr auto;padding:12px}.ql-v52-author>div:nth-child(2){grid-column:1/3;grid-row:2}.ql-v52-author>div:nth-child(3){position:absolute;right:25px;margin-top:-48px}.ql-v52-author>div:nth-child(3) button{width:42px;padding:0;font-size:0}.ql-v52-author>div:nth-child(3) svg{width:21px}.ql-v52-guide-facts{grid-template-columns:1fr 1fr;margin:10px 0}.ql-v52-detail-actions{grid-template-columns:1fr 1fr}.ql-v52-guide-summary,.ql-v52-detail-stops,.ql-v52-before,.ql-v52-poster-cta{padding:13px;margin-top:11px}.ql-v52-guide-summary h2,.ql-v52-detail-stops h2,.ql-v52-before h2{font-size:22px}.ql-v52-detail-stops article{grid-template-columns:30px 110px 1fr;padding:8px 0}.ql-v52-detail-stops img{width:110px;height:70px}.ql-v52-detail-stops article button{grid-column:3;width:120px;height:37px}.ql-v52-detail-stops h3{font-size:17px}.ql-v52-detail-stops p{font-size:11px}.ql-v52-before>div{grid-template-columns:1fr 1fr}.ql-v52-poster-cta{grid-template-columns:145px 1fr}.ql-v52-poster-cta img{width:145px;height:105px}.ql-v52-poster-cta h2{font-size:17px}.ql-v52-poster-cta p{font-size:11px}.ql-v52-guide-image-page>img{max-height:780px}
  .ql-v52-builder-page{width:100%;padding:0 14px 40px;margin:10px auto}.ql-v52-builder-stepper{padding:8px 5px}.ql-v52-builder-stepper button{display:grid;justify-items:center;gap:3px;font-size:10px}.ql-v52-builder-stepper span{width:34px;height:34px}.ql-v52-builder-layout{grid-template-columns:1fr}.ql-v52-builder-layout>aside{position:static}.ql-v52-builder-card,.ql-v52-builder-layout>aside,.ql-v52-builder-select,.ql-v52-output{padding:13px}.ql-v52-builder-card .summary{grid-template-columns:110px 1fr}.ql-v52-builder-card .summary img{width:110px;height:110px}.ql-v52-builder-card .summary h3{font-size:20px}.ql-v52-builder-card .presentation{grid-template-columns:repeat(3,1fr)}.ql-v52-builder-card .presentation button{padding:9px 4px}.ql-v52-builder-card .presentation strong{font-size:12px}.ql-v52-builder-card .presentation small{font-size:9px}.ql-v52-builder-card .templates img{height:135px}.ql-v52-builder-card .templates strong{font-size:11px}.ql-v52-builder-card .sizes{grid-template-columns:repeat(3,1fr)}.ql-v52-builder-card .sizes button:last-child{grid-column:2}.ql-v52-builder-layout>aside{order:-1}.ql-v52-builder-preview{width:min(350px,100%)}.ql-v52-builder-action button{min-width:100%;height:55px}.ql-v52-builder-select>label{grid-template-columns:24px 85px 1fr}.ql-v52-builder-select img{width:85px;height:65px}.ql-v52-output{grid-template-columns:1fr}.ql-v52-output h1{font-size:28px}
}
@media (min-width:901px){
  .ql-v52-route-desktop .ql-desktop-hero,.ql-v52-guides-desktop .ql-desktop-hero{grid-template-columns:130px minmax(720px,1fr) 260px 330px;height:132px}
  .ql-v52-route-desktop .ql-desktop-hero h1,.ql-v52-guides-desktop .ql-desktop-hero h1{font-size:38px;letter-spacing:.035em;white-space:nowrap}
  .ql-v52-route-desktop .ql-desktop-hero p,.ql-v52-guides-desktop .ql-desktop-hero p{font-size:18px;letter-spacing:.12em}
  .ql-v52-route-desktop .ql-campus-art,.ql-v52-guides-desktop .ql-campus-art{width:350px;right:20px}
}
.ql-v52-builder-preview>div{display:none}
.ql-v52 #ai-fab[hidden],.ql-v52 #mobile-bottom-nav[hidden],.ql-v52 #site-footer[hidden]{display:none!important}
@media (max-width:900px){
  .v3-brand .v3-brand-image{width:177px}.v3-header-ai .v3-brand-image{width:118px}.v3-header-ai .v3-brand-suffix{font-size:13px}
  .ql-v52-guide-mobile-top{overflow:hidden}
  .ql-v52-guide-mobile-top>div{display:grid;grid-template-columns:130px 1fr;align-items:center;gap:8px;width:100%;z-index:2}
  .ql-v52-guide-mobile-top button{width:130px;height:42px;padding:0 9px;font-size:12px;white-space:nowrap}
  .ql-v52-guide-mobile-top h1{font-size:27px;white-space:nowrap;justify-self:center}
  .ql-v52-guide-mobile-top>img{right:0;width:205px}
  .ql-v52-guides-mobile{overflow-x:hidden}
  .ql-v52-author>div:nth-child(3) button svg{display:block!important;color:var(--ql-navy)!important;stroke:currentColor!important;width:21px!important;height:21px!important}
  body[data-route-page="route"] #ai-fab,body[data-route-page="guide-detail"] #ai-fab{bottom:178px!important}
  .ql-v52-editor-header{grid-template-columns:130px 1fr 100px;padding:0 10px}
  .ql-v52-editor-header>a .ql-brand-image{width:132px}
  .ql-v52-editor-header>button:first-child{font-size:16px;white-space:nowrap}
  .ql-v52-save{width:100px!important;padding:0 7px!important;white-space:nowrap;justify-content:center}
  .ql-v52-builder-layout>aside{order:initial}
}
.ql-v52-guide-detail{position:relative}.ql-v52-inline-ai{display:none}
@media (max-width:900px){body[data-route-page="guide-detail"] #ai-fab{display:none!important}.ql-v52-inline-ai{display:grid;position:absolute;right:16px;bottom:95px;width:82px;height:82px;border-radius:50%;border:3px solid #fff;background:linear-gradient(180deg,#e45a18,#c83b08);box-shadow:0 5px 14px rgba(66,42,12,.18);place-items:center;color:#fff;z-index:5}.ql-v52-inline-ai img{width:56px;height:50px;object-fit:contain}.ql-v52-inline-ai span{position:absolute;top:63px;right:-2px;background:#d84a0f;border-radius:8px;padding:5px 7px;font-size:10px;white-space:nowrap}}
/* Final mobile hierarchy alignment against the approved QGuide references */
@media (max-width:900px){
  .ql-mobile-header-simple{grid-template-columns:minmax(0,1fr) auto!important;padding:0 16px!important;gap:10px!important}
  .ql-mobile-header-simple .ql-mobile-brand{overflow:visible;min-width:0}
  .ql-mobile-header-simple .ql-brand-image-horizontal{width:152px!important}
  .ql-mobile-header-simple .ql-mobile-head-actions{justify-self:end}
  .ql-mobile-header-with-scope{grid-template-columns:142px minmax(105px,1fr) 70px!important;padding:0 10px!important;gap:6px!important}
  .ql-home-scope-row{height:72px;position:relative;display:flex;align-items:center;overflow:hidden;margin:0 -2px}
  .ql-home-scope-row button{position:relative;z-index:2;height:48px;max-width:245px;border:1px solid #cabb9f;border-radius:999px;background:#fffaf3;padding:0 15px;color:#343a37;font-size:14px;display:flex;align-items:center;gap:5px;white-space:nowrap}
  .ql-home-scope-row button svg{width:16px}
  .ql-home-scope-row>img{position:absolute;right:-14px;top:-8px;width:230px;height:105px;object-fit:contain;opacity:.58}
  .ql-home-mobile .ql-mobile-hero{height:128px;align-items:flex-start;padding:4px 7px 0;overflow:visible}
  .ql-home-mobile .ql-mobile-hero>div{width:100%;padding-right:0}
  .ql-home-mobile .ql-mobile-hero h1{font-size:29px;line-height:1.25;letter-spacing:.025em;margin-bottom:7px;word-break:keep-all}
  .ql-home-mobile .ql-mobile-hero p{font-size:15px}
  .ql-home-mobile .ql-mobile-hero>img{display:none}
  .ql-v52-route-mobile-hero{grid-template-columns:minmax(0,1fr) 100px;height:124px}
  .ql-v52-route-mobile-hero h2{font-size:24px;line-height:1.35;letter-spacing:.01em}
  .ql-v52-route-mobile-hero img{width:98px;height:98px}
  .ql-mobile-ai-header{grid-template-columns:38px minmax(116px,1fr) minmax(126px,154px) 38px!important;padding:0 10px!important;gap:5px!important}
  .ql-mobile-ai-header>button{border:0;background:none;color:var(--ql-navy);height:44px;padding:0;display:grid;place-items:center}
  .ql-mobile-ai-header>button svg{width:25px;height:25px}
  .ql-mobile-ai-brand{display:flex;align-items:center;gap:3px!important;overflow:visible!important}
  .ql-mobile-ai-brand .ql-brand-image-horizontal{display:none}
  .ql-mobile-ai-brand .ql-brand-q{font-size:25px}.ql-mobile-ai-brand .ql-brand-guide{font-size:20px}
  .ql-mobile-ai-brand .ql-ai-word{font-size:16px;font-weight:700;margin-left:3px;color:var(--ql-navy);white-space:nowrap}
  .ql-mobile-ai-header .ql-mobile-destination{height:42px;font-size:12px;padding:0 8px}
}
/* Back-office navigation remains branded but uses a readable vertical hierarchy. */
@media (min-width:1101px){
  .v4-console-sidebar nav{display:block!important;overflow:visible!important}
  .v4-console-sidebar .v4-nav-group{display:grid;gap:4px;margin:0 0 14px}
  .v4-console-sidebar .v4-nav-group>small{display:block;padding:0 10px 4px;color:#8a7e69;font-size:11px;font-weight:800;letter-spacing:.08em}
  .v4-console-sidebar .v4-nav-group>a{display:block;min-width:0!important;padding:8px 10px!important;font-size:13px;line-height:1.35}
}
body.ql-visual-lock #ai-fab[hidden]{display:none!important}
@media (max-width:900px){
  .ql-mobile-ai-brand .ql-brand-image-symbol{display:block!important;width:34px;height:34px;object-fit:contain;flex:none}
  .ql-mobile-ai-brand .ql-mobile-ai-wordmark{font-size:16px;font-weight:800;color:var(--ql-navy);white-space:nowrap;letter-spacing:.01em}
}
/* 模擬範例攻略徽章（guide.isSimulatedExample 或 authorType==="社群投稿示範"）。
   警示紅色，跟「編輯精選」的橘色與一般 status pill 的綠/琥珀色明顯區隔，
   卡片與詳情頁共用同一套視覺。 */
.ql-simulated-badge{display:inline-flex;align-items:center;gap:5px;background:#c0392b;color:#fff;border-radius:999px;padding:6px 11px;font-size:12px;font-weight:700;white-space:nowrap}
.ql-simulated-badge svg{width:14px;height:14px}
.ql-v52-more-guides article>button,.ql-v52-mobile-more article>button{position:relative}
.ql-v52-more-guides article>button .ql-simulated-badge,.ql-v52-mobile-more article>button .ql-simulated-badge,.ql-v52-detail-cover>.ql-simulated-badge{position:absolute;z-index:3;top:10px;left:10px;box-shadow:0 2px 8px rgba(0,0,0,.35)}
.ql-v52-featured-cover>span.ql-simulated-badge{background:#c0392b}
.ql-v52-mobile-featured .tags span.ql-simulated-badge{background:#c0392b;color:#fff;border-color:#c0392b}
.ql-v52-simulation-badge{display:inline-flex!important;align-items:center!important;gap:4px!important;padding:5px 8px;border:1px solid rgba(192,57,43,.4);border-radius:999px;background:#fbe9e7;color:#a2301f;font-size:11px;line-height:1.35}
.ql-v52-simulation-notice{display:grid;gap:4px;margin:12px 0 0;padding:13px 16px;border:1px solid rgba(192,57,43,.4);border-radius:14px;background:#fbe9e7;color:#7c2417}
.ql-v52-simulation-notice strong{color:#083b56;font-size:16px}
.ql-v52-simulation-notice span{font-size:13px;line-height:1.65}
@media (max-width:900px){.ql-v52-author>div:first-child{min-width:0;padding-right:82px}.ql-v52-author>div:first-child span{min-width:0}.ql-v52-author>div:first-child strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

/* 攻略圖產生器：預覽與版型縮圖現在是真的 canvas，不再是貼一張靜態圖。 */
.ql-v52-builder-preview.is-live { display:grid; gap:10px; justify-items:center; }
.ql-v52-builder-preview.is-live canvas {
  max-width:100%; height:auto; border-radius:12px;
  box-shadow:0 10px 28px rgba(31,49,52,.16);
  background:#fffdf8;
}
.ql-poster-hint { margin:0; font-size:12.5px; color:var(--qg-muted,#667078); }
.ql-tpl-thumb {
  width:100%; height:auto; border-radius:8px; display:block;
  background:#fffdf8; box-shadow:0 4px 12px rgba(31,49,52,.12);
}
.ql-v52-builder-card .templates button { display:grid; gap:6px; }
.ql-v52-builder-card .templates button small {
  font-size:11.5px; color:var(--qg-muted,#667078); line-height:1.35;
}

/* 「我的攻略圖」存檔清單：縮圖是 canvas 不是 img，補同一份尺寸規則。 */
.ql-saved-poster-canvas-wrap { display:block; width:100%; height:120px; overflow:hidden; }
.ql-saved-poster-thumb { width:100%; height:120px; object-fit:cover; display:block; background:#fffdf8; }

/* 路線頁「產生攻略圖」：桌機版跟既有兩顆主要按鈕同一列，但獨立佔滿第三行
   （.ql-v52-route-main-actions 原本只定義兩欄，第三個項目自動換到新的一行，
   這裡讓它撐滿寬度而不是縮在左邊留一半空白）；手機版是獨立一行連結，
   不擠進原本只設計給兩顆按鈕的 sticky bar。 */
.ql-v52-route-poster-link {
  grid-column: 1 / -1; display:flex; align-items:center; justify-content:center; gap:8px;
  height:48px; border:1px dashed #a99a7c; border-radius:11px; color:var(--ql-orange);
  font-size:15px; text-decoration:none;
}
.ql-v52-route-poster-link svg { width:18px; }
.ql-v52-route-poster-link-mobile {
  display:flex; align-items:center; justify-content:center; gap:6px;
  height:44px; margin-top:10px; border:1px dashed #a99a7c; border-radius:11px;
  color:var(--ql-orange); font-size:14px; text-decoration:none;
}


/* 攻略篩選籤從 <button> 改成 <a>（讓篩選寫進網址、可以從 LINE 深層連進來），
   樣式要跟著沿用——原本的規則只選 button，不補的話這排籤會變成裸連結。 */
.ql-v52-filter-row a {
  height: 40px; padding: 0 17px; display: inline-flex; align-items: center;
  border: 1px solid #d7cab6; border-radius: 999px; background: #fffdf8;
  white-space: nowrap; text-decoration: none; color: inherit;
}
.ql-v52-filter-row a.is-active {
  background: var(--ql-orange); color: #fff; border-color: var(--ql-orange);
}
.ql-v52-guide-filter label > div a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 12px; border: 1px solid #d7cab6; border-radius: 999px;
  background: #fffdf8; text-decoration: none; color: inherit; font-size: 13px;
}
.ql-v52-guide-filter label > div a.is-active {
  background: var(--ql-orange); color: #fff; border-color: var(--ql-orange);
}
a.ql-primary { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* 訪談完成卡的「這篇還沒公開」提示與發布鈕。刻意做成次要樣式：
   補照片仍是建議路徑，但發布不能只存在於另一頁。 */
.ql-cocreate-private { display:flex; align-items:center; gap:6px; margin:10px 0 6px;
  font-size:13px; color:#6b5b45; }
.ql-cocreate-private svg { width:15px; flex:0 0 15px; }
.ql-cocreate-publish { width:100%; height:42px; border-radius:11px;
  border:1px solid var(--ql-orange); background:#fffdf8; color:var(--ql-orange); }
.v3-cocreate-private { display:flex; align-items:center; gap:6px; font-size:13px; color:#6b5b45; }
.v3-cocreate-private svg { width:15px; flex:0 0 15px; }

/* ---------- 旅人最新投稿（2026-09-04）---------- */
/* 這一區是真實投稿，跟上面的示範內容並存。視覺上要分得出來：
   示範的有「模擬範例」標記，這裡用實心的真實標記。 */
.ql-v52-real-guides { margin-top: 16px; }
.ql-v52-real-guides h2 { display: flex; align-items: center; gap: 8px; }
.ql-v52-real-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ql-v52-real-guide { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--v3-line); border-radius: 14px; background: #fff; }
.ql-v52-real-guide header { display: flex; flex-direction: column; gap: 6px; }
.ql-v52-real-guide h3 { margin: 0; font-size: 17px; color: var(--v3-ink); }
.ql-v52-real-guide header span { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: #0f766e; color: #fff; font-size: 11.5px; font-weight: 600; }
.ql-v52-real-guide header span svg { width: 12px; height: 12px; }
.ql-v52-real-guide dl { margin: 0; display: grid; gap: 8px; }
.ql-v52-real-guide dl div { display: grid; gap: 2px; }
.ql-v52-real-guide dt { color: var(--v3-muted); font-size: 11.5px; letter-spacing: .04em; }
.ql-v52-real-guide dd { margin: 0; color: var(--v3-ink); font-size: 14px; line-height: 1.65; }
.ql-v52-real-guide .ql-primary { align-self: flex-start; }
.ql-v52-real-loading, .ql-v52-real-empty { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--v3-muted); font-size: 14px; line-height: 1.7; }
.ql-v52-real-empty svg { width: 16px; height: 16px; flex: none; }

/* ---------- 跨場域的「所有人的攻略」頁（2026-09-05）---------- */
.ql-allguides-page .ql-panel { margin-bottom: 16px; }
.ql-allguides-page .ql-panel h2 { display: flex; align-items: center; gap: 8px; }
.ql-allguides-page .ql-panel h2 small { margin-left: auto; color: var(--v3-muted); font-size: 12.5px; font-weight: 400; }

.ql-allguide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ql-allguide-card button { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 0 0 12px; border: 1px solid var(--v3-line); border-radius: 14px; background: #fff; overflow: hidden; text-align: left; cursor: pointer; position: relative; }
.ql-allguide-card img { width: 100%; height: 108px; object-fit: cover; }
.ql-allguide-card h3 { margin: 0 12px; font-size: 15px; line-height: 1.45; color: var(--v3-ink); }
.ql-allguide-author { margin: 0 12px; display: grid; gap: 2px; font-size: 12.5px; color: var(--v3-ink); }
.ql-allguide-author small { color: var(--v3-muted); font-size: 11px; }
.ql-allguide-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 12px; }
.ql-allguide-meta span { display: inline-flex; align-items: center; gap: 3px; color: var(--v3-muted); font-size: 11.5px; }
.ql-allguide-meta svg { width: 12px; height: 12px; }

/* 模擬示範的說明條。這一段的存在本身就是誠信，不可以做得太不起眼。 */
.ql-allguide-note { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: #fdf4e7; color: #8a5a1c; font-size: 13px; line-height: 1.7; }
.ql-allguide-note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }

.ql-allguide-real { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ql-allguide-loading, .ql-allguide-empty { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--v3-muted); font-size: 14px; line-height: 1.7; }
.ql-allguide-empty svg { width: 16px; height: 16px; flex: none; }
.ql-allguide-cta { text-align: center; }
.ql-allguide-cta p { color: var(--v3-muted); margin: 0 0 12px; }
.ql-allguide-destlinks { display: flex; flex-wrap: wrap; gap: 8px; }
.ql-allguide-destlinks a { padding: 7px 14px; border: 1px solid var(--v3-line); border-radius: 999px; color: var(--v3-ink); font-size: 13.5px; text-decoration: none; background: #fff; }
.ql-allguide-dest p { margin: 0 0 12px; color: var(--v3-muted); font-size: 13.5px; }

/* 「看更多」（CHU-365）。真實投稿卡本身是 display:flex，會蓋掉 [hidden] 的
   預設 display:none，所以這裡用權重較高的選擇器明寫。 */
[data-allguides-list] > [hidden] { display: none; }
.ql-allguide-more { display: block; width: 100%; min-height: 44px; margin-top: 12px; padding: 10px 16px; border: 1px solid var(--v3-line); border-radius: 999px; background: #fff; color: var(--v3-ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.ql-allguide-more:hover { border-color: var(--v3-ink); }

/* 首頁「繼續寫／寫一篇攻略」卡（CHU-365）。探索頁（v3）與場域首頁（ql）共用，
   所以不依附任何一邊的版型類別。 */
.qg-home-guide-cta { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 14px 16px; border: 1px solid var(--v3-line); border-radius: 14px; background: #fff; }
.qg-home-guide-cta > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.qg-home-guide-cta small { color: var(--v3-muted); font-size: 12.5px; }
.qg-home-guide-cta small svg { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.qg-home-guide-cta strong { color: var(--v3-ink); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.qg-home-guide-cta .ql-primary { flex: none; min-height: 44px; white-space: nowrap; }
/* 加入 LINE 官方帳號提醒：跟「寫一篇攻略」卡同一個形狀，但退一階（淺底、不搶主要動作）。 */
.qg-line-friend-cta { display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 12px 8px 12px 16px; border: 1px solid var(--v3-line); border-radius: 14px; background: #f4faf5; }
.qg-line-friend-cta > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.qg-line-friend-cta small { color: var(--v3-muted); font-size: 12.5px; }
.qg-line-friend-cta small svg { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.qg-line-friend-cta strong { color: var(--v3-ink); font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.qg-line-friend-cta .ql-primary { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 12px; white-space: nowrap; text-decoration: none; }
.qg-line-friend-dismiss { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--v3-muted); cursor: pointer; }
.qg-line-friend-dismiss svg { width: 18px; height: 18px; }
.qg-line-friend-dismiss:focus-visible, .qg-line-friend-cta .ql-primary:focus-visible { outline: 3px solid var(--v3-ink); outline-offset: 2px; }
@media (max-width: 520px) { .qg-line-friend-cta { flex-wrap: wrap; padding: 12px 12px 12px 14px; } .qg-line-friend-cta > div { flex-basis: calc(100% - 56px); } .qg-line-friend-cta .ql-primary { flex: 1; } }

/* 🔴 這一頁不使用 ql-desktop-page：那個類別在手機斷點是 display:none
   （visual-lock.css）。2026-09-05 上線時因此在手機上全白——而「攻略」是
   底部導覽四格之一，LINE 進來的人第一次點就會看到空畫面。
   內部本來就是響應式格線，所以自己定義容器就好，不必複製一份手機版標記。 */
.ql-allguides-page { display: block; width: min(1600px, calc(100% - 34px)); margin: 0 auto; }
.ql-allguides-hero { display: flex; align-items: center; gap: 16px; padding: 20px 0 8px; }
.ql-allguides-hero .ql-hero-mascot { width: 96px; height: 96px; object-fit: contain; flex: none; }
.ql-allguides-hero h1 { margin: 0 0 6px; font-family: var(--font-serif); font-size: clamp(22px, 5vw, 32px); color: var(--v3-ink); }
.ql-allguides-hero p { margin: 0; color: var(--v3-muted); font-size: 14px; line-height: 1.7; }

@media (max-width: 900px) {
  .ql-allguides-page { width: 100%; box-sizing: border-box; padding: 0 16px 30px; }
  .ql-allguides-hero { gap: 12px; padding: 12px 0 4px; }
  .ql-allguides-hero .ql-hero-mascot { width: 64px; height: 64px; }
  .ql-allguide-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .ql-allguide-card img { height: 88px; }
}

/* ── 攻略圖分享頁 ────────────────────────────────────────────────
 * 2026-09-05 之前這一頁只有 <img> 加三顆按鈕，整頁 25 個字，而且每一篇
 * 攻略顯示的都是同一張寫死的圖。現在圖是當場依這篇的站點畫出來的，
 * 下面補上這篇自己的資訊，才看得出點到的是哪一篇。
 * 色票沿用 action-palette-v55.css，不另立一套。
 */
.ql-guide-poster{margin:0 0 14px;display:flex;flex-direction:column;align-items:center;gap:8px}
.ql-guide-poster canvas,.ql-guide-poster img{
  max-width:min(420px,100%);width:100%;height:auto;border-radius:14px;
  border:1px solid #d8ccb8;background:#fffdf8;box-shadow:0 6px 22px rgba(31,49,52,.10)}
.ql-guide-poster-status{font-size:.82rem;color:#667078;text-align:center;margin:0}

.ql-guide-poster-meta{
  border:1px solid #d8ccb8;border-radius:16px;background:#fffdf8;
  padding:18px 20px;margin-top:16px;display:flex;flex-direction:column;gap:12px}
.ql-guide-poster-meta h2{margin:0;font-size:1.15rem;line-height:1.4;color:#1f3134}
.ql-guide-poster-meta>p{margin:0;color:#4c5b5e;line-height:1.75;font-size:.94rem}

.ql-guide-poster-facts{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 18px}
.ql-guide-poster-facts li{display:flex;align-items:center;gap:6px;font-size:.88rem;color:#4c5b5e}
.ql-guide-poster-facts .icon{width:16px;height:16px;color:var(--ql-action,#174e5b);flex:none}

.ql-guide-poster-tags{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.ql-guide-poster-tags li{
  font-size:.78rem;padding:3px 10px;border-radius:999px;
  background:var(--accent-soft,#f5eae1);color:#76503d}

.ql-guide-poster-stops h3{
  margin:0 0 10px;font-size:.95rem;display:flex;align-items:center;gap:6px;color:#1f3134}
.ql-guide-poster-stops h3 .icon{width:17px;height:17px;color:var(--ql-action,#174e5b)}
.ql-guide-poster-stops ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;counter-reset:stop}
.ql-guide-poster-stops li{
  display:grid;grid-template-columns:56px 1fr;gap:12px;align-items:center;
  padding:8px;border-radius:12px;background:#f7f2ea}
.ql-guide-poster-stops li::before{
  counter-increment:stop;content:counter(stop);
  grid-column:1;grid-row:1;width:56px;height:56px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  font-size:.9rem;font-weight:700;color:#76503d;background:var(--accent-soft,#f5eae1)}
.ql-guide-poster-stops li img{
  grid-column:1;grid-row:1;width:56px;height:56px;object-fit:cover;border-radius:10px}
.ql-guide-poster-stops strong{display:block;font-size:.92rem;color:#1f3134}
.ql-guide-poster-stops small{display:block;font-size:.8rem;color:#667078;margin-top:2px}

@media (max-width:900px){
  .ql-guide-poster-meta{padding:16px 14px;border-radius:14px}
  .ql-guide-poster-facts{gap:6px 14px}
}

/* 卡片補上的內容：摘要、站點數、標籤、更新日期。
 * 原本卡片只有標題＋作者＋三個欄位，「松菸半日遊」跟「松菸雨天備案」
 * 看起來差不多，得點進去才知道差在哪。 */
.ql-allguide-summary{
  margin:0;font-size:.85rem;line-height:1.65;color:#4c5b5e;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ql-allguide-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:2px}
.ql-allguide-tags span{
  font-size:.72rem;padding:2px 8px;border-radius:999px;
  background:var(--accent-soft,#f5eae1);color:#76503d}
.ql-allguide-date{margin:0;font-size:.74rem;color:#8a959a}

/* ── #/guides 的搜尋與篩選 ──────────────────────────────────────
 * 跨場域這一頁本來 34 篇全部攤開、沒有任何收斂方式，要找「駁二的親子
 * 攻略」只能自己捲。條件放在網址（?q= / ?filter= / ?dest=），可分享、
 * 可按上一頁、重整不會掉——跟場域版的 ?filter= 同一個做法。 */

/* 🔴 全站原本沒有「視覺隱藏但螢幕閱讀器讀得到」的工具類別。
 * 用 display:none 會讓輔助科技也讀不到，等於沒有標籤。 */
.ql-visually-hidden{
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;
  overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}

.ql-allguide-controls{display:flex;flex-direction:column;gap:12px}

.ql-allguide-search{display:flex;gap:8px;flex-wrap:wrap}
.ql-allguide-search input{
  flex:1 1 220px;min-width:0;height:44px;padding:0 14px;
  border:1px solid #d8ccb8;border-radius:12px;background:#fffdf8;
  font-size:1rem;color:#1f3134}
.ql-allguide-search input::placeholder{color:#98a3a6}
.ql-allguide-search button{flex:none;min-height:44px;padding:0 18px;white-space:nowrap}

.ql-allguide-chiprow{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.ql-allguide-chiplabel{
  display:inline-flex;align-items:center;gap:5px;
  font-size:.8rem;color:#667078;margin-right:4px;white-space:nowrap}
.ql-allguide-chiplabel .icon{width:15px;height:15px;color:var(--ql-action,#174e5b)}
.ql-allguide-chiprow a{
  min-height:36px;display:inline-flex;align-items:center;
  padding:0 12px;border-radius:999px;border:1px solid #d8ccb8;
  background:#fffdf8;color:#4c5b5e;font-size:.85rem;text-decoration:none}
.ql-allguide-chiprow a:hover{border-color:var(--ql-action,#174e5b);color:#1f3134}
.ql-allguide-chiprow a.is-active{
  background:var(--ql-action,#174e5b);border-color:var(--ql-action,#174e5b);color:#fff}

.ql-allguide-count{margin:0;font-size:.88rem;color:#4c5b5e}
.ql-allguide-count strong{color:#1f3134}
.ql-allguide-count a{color:var(--ql-action,#174e5b)}

.ql-allguide-nohit{text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center}
.ql-allguide-nohit p{margin:0;color:#4c5b5e}

@media (max-width:900px){
  .ql-allguide-search input{flex:1 1 100%}
  .ql-allguide-search button{width:100%}
  .ql-allguide-chiprow{gap:5px}
}

/* CHU-358：攻略共創的選項按鈕（桌機 pages.js 與手機 visual-lock.js 共用）。
   選項題點一下就送出；地點題可複選，選到的用 aria-pressed 標出來。 */
.qg-choice-hint{margin:8px 0 0;color:#5b6b82;font-size:14px}
.qg-choice-chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.qg-chip{min-height:44px;padding:8px 16px;border:1.5px solid #c9d3e0;border-radius:999px;background:#fff;color:#12263f;font-size:15px;font-weight:700;line-height:1.3;text-align:left;cursor:pointer}
.qg-chip:hover{border-color:#1f6feb}
.qg-chip[aria-pressed="true"]{border-color:#1f6feb;background:#1f6feb;color:#fff}
.qg-chip:disabled{opacity:.6;cursor:default}
.qg-place-other{display:flex;gap:8px;margin:0 0 12px}
.qg-place-other input{flex:1 1 auto;min-width:0;min-height:44px;padding:8px 12px;border:1.5px solid #c9d3e0;border-radius:12px;font-size:16px}
.qg-place-other button{min-height:44px;flex:none}
/* CHU-380：寫完六題的完成卡＝發布的地方（桌機 pages.js 與手機 visual-lock.js 共用
   QG.cocreate.publishPanel）。兩顆按鈕並排，窄螢幕各佔一半；說明文字在上。 */
.qg-publish-panel{display:grid;gap:10px;margin:14px 0 4px}
.qg-publish-panel>p{display:flex;align-items:flex-start;gap:6px;margin:0;font-size:14px;line-height:1.55;color:#6b5b45}
.qg-publish-panel>p svg{width:16px;flex:0 0 16px;margin-top:3px}
.qg-publish-panel.is-published>p{color:#1b6b3a;font-weight:700}
.qg-publish-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-width:480px}
.qg-publish-actions>*{width:100%;min-height:44px;justify-content:center;text-align:center}
.qg-publish-photos{margin:10px 0 0;text-align:center}
.qg-location-skip{margin:12px 0 0;text-align:center}
.qg-cocreate-back{min-height:44px}
.ql-cocreate-secondary{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:0 14px;border:1px solid #c9d3e0;border-radius:11px;background:#fff;color:#12263f;font-size:15px;font-weight:700;text-decoration:none;cursor:pointer}
.ql-cocreate-secondary:disabled{opacity:.6;cursor:default}
.ql-cocreate-recap{display:grid;gap:8px;margin:10px 0}
.ql-cocreate-recap strong{display:block;font-size:13px;color:#6b5b45}
.ql-cocreate-recap p{margin:2px 0 0;font-size:15px}
/* 「照這篇走」：路線頁上方說清楚這條路線照哪一篇排、原作者走多久（2026-09-28） */
.ql-v52-route-source{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 12px 14px;padding:12px 14px;border:1px solid #e3b79a;border-radius:14px;background:#fff6ee}
.ql-v52-route-source>div:first-child{display:grid;gap:2px;min-width:0}
.ql-v52-route-source small{color:var(--ql-orange);font-weight:700;letter-spacing:.04em}
.ql-v52-route-source strong{font-size:18px;color:var(--ql-navy);overflow-wrap:anywhere}
.ql-v52-route-source span{font-size:13px;color:#6b6457}
.ql-v52-route-source>div:last-child{display:flex;gap:8px;flex-wrap:wrap}
.ql-v52-route-source a,.ql-v52-route-source button{display:inline-flex;align-items:center;min-height:40px;padding:0 13px;border:1px solid #d1c3ad;border-radius:10px;background:#fffdf8;color:#4e503f;font-size:14px;text-decoration:none;cursor:pointer}
.ql-v52-route-source a:focus-visible,.ql-v52-route-source button:focus-visible,.ql-stop-picker button:focus-visible{outline:3px solid rgba(232,108,52,.45);outline-offset:2px}
.ql-v52-route-mobile .ql-v52-route-source{margin:12px 0}
.ql-v52-mobile-route-list>header>div{display:flex;gap:4px}
.ql-v52-mobile-route-list>header>div button{display:inline-flex;align-items:center;gap:4px;min-height:40px;padding:0 6px;color:#4e503f}
.ql-v52-mobile-route-list>header>div svg{width:18px}
/* 「更換」「加一站」的選站清單：讓人自己挑，不再由系統直接換 */
.ql-stop-picker{display:grid;gap:8px;max-height:60vh;overflow-y:auto}
.ql-stop-picker button{display:grid;grid-template-columns:72px 1fr;gap:10px;align-items:center;min-height:60px;padding:6px;border:1px solid #ded2c0;border-radius:12px;background:#fffdf8;text-align:left;cursor:pointer}
.ql-stop-picker img{width:72px;height:48px;object-fit:cover;border-radius:7px}
.ql-stop-picker span{display:grid;gap:2px;min-width:0}
.ql-stop-picker strong{color:var(--ql-navy)}
.ql-stop-picker small{color:#716b60}
/* 旅人攻略對得到場域地點時的「照這篇走」 */
.ql-v52-real-guide>button{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border:1px solid #d1c3ad;border-radius:10px;background:#fffdf8;color:#4e503f;cursor:pointer}
.ql-v52-real-guide>button svg{width:18px}
/* 寫攻略打的地點對得到地圖名稱時的「你說的是…嗎？」 */
.qg-place-suggest{margin:0 0 12px;padding:10px 12px;border:1px solid #e3b79a;border-radius:12px;background:#fff6ee}
.qg-place-suggest p{margin:0 0 8px;font-size:14px;color:#5b4a3b}
/* AI 導遊頁手機版頂部（2026-09-29）：
   1. 標題列「QGuide AI 導遊」比它的欄位寬，壓到右邊的場域按鈕；場域名改成一行、
      放不下就省略，品牌那欄吃剩下的寬度。
   2.「目前位置／今日路線／場域示意圖」那條在 375 寬每個字都擠成兩行；
      字不換行、地點名太長就省略，示意圖按鈕改成圖示在上、字在下的小按鈕。 */
@media (max-width:900px){
  .ql-mobile-ai-header{grid-template-columns:38px minmax(0,1fr) auto 38px!important}
  .ql-mobile-ai-brand{min-width:0;overflow:hidden!important}
  .ql-mobile-ai-brand .ql-brand-image-symbol{width:34px!important;height:34px!important;max-width:34px!important;flex:none!important;object-fit:contain}
  .ql-mobile-ai-brand .ql-mobile-ai-wordmark{flex:0 1 auto;min-width:0;font-size:15px!important;letter-spacing:0!important}
  .ql-mobile-ai-brand .ql-mobile-ai-wordmark,.ql-mobile-ai-brand .ql-ai-word{overflow:hidden;text-overflow:ellipsis}
  .ql-mobile-ai-header .ql-mobile-destination{display:flex!important;align-items:center;gap:2px;max-width:128px;padding:0 4px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ql-mobile-ai-header .ql-mobile-destination svg{flex:none;width:14px;height:14px}
  .ql-ai-mobile-context{grid-template-columns:minmax(0,1fr) auto auto!important;gap:12px!important;padding:12px!important}
  .ql-ai-mobile-context>div:first-child{min-width:0}
  .ql-ai-mobile-context>div:first-child>span{display:grid;min-width:0}
  .ql-ai-mobile-context small,.ql-ai-mobile-context strong{white-space:nowrap}
  .ql-ai-mobile-context>div:first-child strong{overflow:hidden;text-overflow:ellipsis}
  .ql-ai-mobile-context>div:nth-child(2){grid-template-columns:1fr!important;row-gap:2px;min-width:64px}
  .ql-ai-mobile-context i{grid-column:1/-1!important}
  .ql-ai-mobile-context button{height:auto!important;min-height:52px;flex-direction:column;justify-content:center;gap:2px!important;padding:4px 10px!important;font-size:12px;white-space:nowrap}
  .ql-ai-mobile-context button svg{width:20px;height:20px}
}
@media (max-width:370px){
  .ql-mobile-ai-brand .ql-mobile-ai-wordmark{font-size:14px!important}
  .ql-mobile-ai-header .ql-mobile-destination{font-size:11px!important}
  .ql-ai-mobile-context{gap:8px!important;padding:10px!important}
  .ql-ai-mobile-context strong{font-size:15px!important}
  .ql-ai-mobile-context button{padding:4px 6px!important}
}
/* 選站清單的搜尋框與空狀態 */
.ql-stop-picker-search{width:100%;box-sizing:border-box;min-height:46px;margin:0 0 10px;padding:0 14px;border:1.5px solid #c9d3e0;border-radius:12px;background:#fff;font-size:16px}
.ql-stop-picker-search:focus-visible{outline:3px solid rgba(232,108,52,.45);outline-offset:2px}
.ql-stop-picker-status{margin:6px 0 12px;color:#716b60;font-size:14px}
.ql-stop-picker-status.is-quiet{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ql-stop-picker button[hidden]{display:none}
