/* V11 新手體驗：共用的確認視窗、欄位錯誤、素材庫與我的帳號的左側選單 */
.fy-dialog{border:0;border-radius:18px;padding:0;max-width:min(520px,calc(100vw - 32px));width:100%;background:#fffdf8;color:#1e1c18;box-shadow:0 24px 60px rgba(30,28,24,.28);font:16px/1.7 'Noto Sans TC',system-ui,sans-serif}
.fy-dialog::backdrop{background:rgba(30,28,24,.45)}
.fy-dialog form{padding:24px 26px 20px;margin:0}
.fy-dialog h2{font-size:20px;line-height:1.5;margin:0 0 10px;font-weight:700;font-family:inherit;color:#1e1c18}
.fy-dialog-body{color:#4b4438;font-size:16px}
.fy-dialog-body p{margin:0 0 10px}.fy-dialog-body ul{margin:0 0 10px;padding-left:1.2em}.fy-dialog-body li{margin:2px 0}
.fy-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px;flex-wrap:wrap}
.fy-btn{min-height:46px;padding:0 20px;border-radius:12px;border:1.5px solid #cfc6b6;background:#fff;color:#1e1c18;font:inherit;font-weight:700;cursor:pointer}
.fy-btn:hover{border-color:#a9481a}.fy-btn:focus-visible{outline:3px solid #e2b48f;outline-offset:2px}
.fy-btn.fy-primary{background:#1e1c18;border-color:#1e1c18;color:#fff}
.fy-btn.fy-danger{background:#b23a2b;border-color:#b23a2b;color:#fff}
@media(max-width:520px){.fy-dialog-actions{flex-direction:column-reverse}.fy-btn{width:100%}}

.fy-invalid,[aria-invalid=true].fy-invalid{border-color:#b23a2b!important;box-shadow:0 0 0 3px rgba(178,58,43,.18)!important}
.fy-field-msg{color:#9a2d20;font-size:14.5px;font-weight:700;margin:6px 0 10px;display:flex;gap:6px;align-items:flex-start}
.fy-field-msg::before{content:"!";flex:0 0 20px;height:20px;border-radius:50%;background:#b23a2b;color:#fff;display:grid;place-items:center;font-size:12px;margin-top:3px}

/* 素材庫、我的帳號：左側選單＋上方列（尺寸、顏色跟後台 admin/v2.css、portal.css、easy.css 一致） */
.fy-shell-side,.fy-shell-bar{display:none}
body.fy-shell{background:#f3ede2}
body.fy-shell .fy-shell-side{display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:252px;background:#fffdf9;border-right:1px solid #e0d7c7;padding:20px 14px;overflow-y:auto;z-index:40;font:16px/1.7 'Noto Sans TC',system-ui,sans-serif}
.fy-shell-brand{display:flex;align-items:center;gap:13px;color:#1e1c18;text-decoration:none;font-weight:600;font-size:19px;line-height:1.4;padding:0 8px;flex:none}
.fy-shell-brand img{width:48px;height:48px;flex:0 0 48px}
.fy-shell-brand small{display:block;font-size:12px;font-weight:400;color:#6d665a;letter-spacing:.1em}
.fy-shell-side nav{flex:1}
.fy-shell-group{margin-top:22px}.fy-shell-group:first-child{margin-top:18px}
.fy-shell-label{display:block;font-size:12px;font-weight:700;letter-spacing:.08em;color:#6d665a;margin:0 12px 8px}
.fy-shell-fold-btn{display:flex;align-items:center;justify-content:space-between;width:calc(100% - 24px);padding:0;border:0;background:none;font-family:inherit;cursor:pointer}
.fy-shell-fold-btn:hover{color:#1e1c18}.fy-shell-fold-btn span{font-size:11px;letter-spacing:0;transition:transform .2s}
.fy-shell-fold.open .fy-shell-fold-btn span{transform:rotate(180deg)}
.fy-shell-fold:not(.open) .fy-shell-link{display:none}
.fy-shell-link{display:flex;align-items:center;gap:12px;min-height:40px;padding:0 12px;margin-bottom:2px;border-radius:10px;color:#3a362f;text-decoration:none;font-size:15px;font-weight:600;transition:background .2s}
.fy-shell-link:hover{background:#f3ede2;color:#1e1c18}
.fy-shell-link.active{background:#ece5d8;color:#1e1c18;font-weight:700}.fy-shell-link.active .nav-ic{color:#a9481a}
.fy-shell-link .nav-ic{width:20px;height:20px;flex:none}
.fy-shell-link.nav-new{margin-top:8px;border:1.5px dashed #e0d7c7;color:#a9481a}
.fy-shell-link.nav-new:hover{border-style:solid}
.fy-shell-side :focus-visible,.fy-shell-bar :focus-visible{outline:3px solid #d0652e;outline-offset:2px}
.fy-shell-bottom{flex:none;border-top:1px solid #e0d7c7;padding:16px 8px 0;margin-top:22px}
.fy-shell-bottom>a{color:#a9481a;font-size:15px;font-weight:700;text-decoration:none}
.fy-shell-bottom small{display:block;color:#6d665a;font-size:13px;margin-top:6px}.fy-shell-bottom small a{color:inherit}
body.fy-shell .fy-shell-bar{display:flex;align-items:center;gap:12px;position:sticky;top:0;z-index:35;height:68px;padding:0 28px;background:rgba(243,237,226,.9);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid #e0d7c7;font:14px/1.5 'Noto Sans TC',system-ui,sans-serif;color:#6d665a}
.fy-shell-crumb strong{color:#1e1c18;font-weight:700}
.fy-shell-howto{margin-left:auto;margin-right:18px;font-weight:700;color:#a9481a;text-decoration:underline;text-underline-offset:3px}
.fy-shell-site{color:#a9481a;font-weight:700;text-decoration:none}
.fy-shell-menu{display:none}
/* 一載入就先讓出左邊位置、藏起舊的上方列，選單出現時畫面不會跳一下 */
body[data-page=library] .auth-top,body[data-page=account] .auth-top{display:none}
@media(min-width:901px){
 body[data-page=library],body[data-page=account]{padding-left:252px;background:#f3ede2}
 body[data-page=library]:not(.fy-shell)::before,body[data-page=account]:not(.fy-shell)::before{content:"";position:fixed;inset:0 auto 0 0;width:252px;background:#fffdf9;border-right:1px solid #e0d7c7;z-index:40}
}
@media(min-width:901px) and (max-width:1200px){
 body[data-page=library],body[data-page=account]{padding-left:220px}
 body.fy-shell .fy-shell-side,body[data-page=library]:not(.fy-shell)::before,body[data-page=account]:not(.fy-shell)::before{width:220px}
}
@media(max-width:900px){
 body.fy-shell .fy-shell-bar{height:60px;padding:0 12px}
 .fy-shell-menu{display:grid;place-items:center;width:44px;height:44px;border:1.5px solid #cfc4b1;border-radius:12px;background:#fff;cursor:pointer;color:#1e1c18}
 .fy-shell-crumb{font-size:16px}.fy-shell-crumb>span{display:none}
 .fy-shell-site{display:none}.fy-shell-howto{margin-right:4px}
 body.fy-shell .fy-shell-side{width:280px;z-index:60;transform:translateX(-100%);transition:transform .2s}
 body.fy-shell-open .fy-shell-side{transform:none;box-shadow:20px 0 60px rgba(0,0,0,.2)}
}
@media(prefers-reduced-motion:reduce){body.fy-shell .fy-shell-side,.fy-shell-fold-btn span{transition:none}}
/* 我的帳號：主要按鈕統一成咖啡色（原本「進入管理後台」是綠色） */
body[data-page=account] .btn.green{background:var(--brand,#a9481a)}
/* 上方列下面，標題跟後台一樣留 28px */
@media(min-width:901px){body[data-page=library] .lib-shell,body[data-page=account] main{padding-top:28px}}
@media(max-width:900px){body[data-page=library] .lib-shell{padding-top:16px}}
/* 綁定 LINE 提醒（fy-line.js） */
.fy-line-dialog{max-width:min(560px,calc(100vw - 32px))}
.fy-line-steps{list-style:none;counter-reset:s;margin:14px 0 4px;padding:0;display:grid;gap:12px}
.fy-line-steps li{counter-increment:s;display:grid;grid-template-columns:32px 1fr;gap:6px 12px;align-items:center;padding:12px;border:1px solid #e6dccb;border-radius:14px;background:#fff}
.fy-line-steps li::before{content:counter(s);grid-row:span 2;width:32px;height:32px;border-radius:50%;background:#06c755;color:#fff;font-weight:700;display:grid;place-items:center}
.fy-line-steps .fy-btn{display:flex;align-items:center;justify-content:center;text-decoration:none;width:100%}
.fy-line-qr{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center;margin:14px 0 8px}
.fy-line-qr [data-line-qr]{width:190px;height:190px;display:grid;place-items:center;border:1px solid #e6dccb;border-radius:14px;background:#fff}
.fy-line-qr img{width:180px;height:180px;image-rendering:pixelated}
.fy-line-qr ol{margin:0;padding-left:1.2em;display:grid;gap:8px}
.fy-line-wait{color:#6d665a;font-size:14px;padding:8px;text-align:center}
.fy-line-manual{font-size:14.5px;color:#5d574d}
.fy-line-msg{min-height:1.5em;margin:6px 0 0;font-weight:700;color:#9a2d20}.fy-line-msg.ok{color:#1f5a43}
@media(max-width:520px){.fy-line-qr{grid-template-columns:1fr;justify-items:center}}
.fy-line-steps [data-line-send]{background:#047a36;border-color:#047a36;color:#fff}   /* LINE 的動作用綠色（白字對比 5:1 以上），跟「我傳好了」區分 */
.fy-line-steps li::before{background:#047a36}
/* 第二階段（2026-11）：頂端連結、「管理與系統」摺疊鈕加大點擊範圍（長輩手指好按） */
.fy-shell-howto,.fy-shell-site{display:inline-flex;align-items:center;min-height:44px}
.fy-shell-fold-btn{min-height:40px}
/* 2026-11 字體統一（前台、後台、素材庫共用）：
   每個畫面最上面的大標題＝思源宋體 700、同一個大小；卡片標題＝思源黑體 700；大數字＝思源宋體 700 */
body :is(.workspace-heading h1,.portal-hello h1,.portal-editor-head h1,.portal-gate h1,.home-heading h2,.calendar-heading h2,.i18n-head h2,.trash-workspace>h2,.notification-studio>header h2,.ann-head h2,.lib-head h1){font-family:"Noto Serif TC","Noto Serif JP",serif;font-weight:700;font-size:clamp(28px,3vw,38px);line-height:1.3;letter-spacing:.02em}
body :is(.portal-card h2,.fy-jobs-head h2,.nl-row h2,.acc-head h2,.lib-h2){font-family:"Noto Sans TC",system-ui,sans-serif;font-weight:700}
body :is(.nl-stats b,.fy-rv-stats b,.dashboard-stats strong,.v2-date b){font-family:"Noto Serif TC",serif;font-weight:700}
@media (max-width:650px){body :is(.workspace-heading h1,.portal-hello h1,.portal-editor-head h1,.portal-gate h1,.home-heading h2,.calendar-heading h2,.i18n-head h2,.trash-workspace>h2,.notification-studio>header h2,.ann-head h2,.lib-head h1){font-size:28px}}
