:root {
  --navy: #16324F;
  --white: #FFFFFF;
  --gray: #F1F5F9;
  --yellow: #F5C542;
  --teal: #0F766E;
  --ink: #18334C;
  --muted: #5D6C7C;
  --line: #DDE4EC;
  --radius: 8px;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--gray);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.6; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
h1, h2, h3, p { margin: 0; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.icon { width: 22px; height: 22px; flex-shrink: 0; vertical-align: middle; }
.small-icon { width: 16px; height: 16px; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 100; padding: 14px; background: var(--yellow); }
.skip-link:focus { top: 12px; }
.topbar { background: var(--navy); color: white; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 36px; border-top: 5px solid var(--yellow); }
.brand { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.brand-mark { position: relative; font-family: Arial, sans-serif; font-weight: 900; font-size: 29px; line-height: 1; letter-spacing: -1.3px; padding: 12px 0; }
.brand-mark > span { color: var(--yellow); }
.brand-mark i { position: absolute; height: 3px; width: 22px; background: var(--yellow); bottom: 3px; left: 0; transform: skewX(-25deg); }
.brand-title { display: block; padding-left: 22px; border-left: 1px solid #52667B; font-size: 19px; font-weight: 700; letter-spacing: 1.5px; line-height: 1.4; }
.brand-title small { display: block; color: #BAC7D5; font-size: 11px; margin-top: 4px; font-weight: 400; letter-spacing: 1px; }
.topbar-right { display: flex; align-items: center; gap: 28px; }
.prototype-tag { border: 1px solid #617185; background: #28445F; color: #E8EEF5; font-size: 12px; padding: 4px 12px; border-radius: 4px; font-weight: 600; }
.header-date { display: flex; align-items: center; gap: 10px; }
.header-date .icon { color: #BFCCDA; }
.header-date strong { font-size: 15px; font-weight: 650; letter-spacing: .6px; }
.header-date small { display: block; color: #BFCCDA; font-size: 11px; letter-spacing: 1px; }
.app-shell { display: flex; min-height: calc(100vh - 88px); }
.sidebar { flex: 0 0 242px; width: 242px; padding: 37px 22px 24px; border-right: 1px solid var(--line); background: white; display: flex; flex-direction: column; }
.sidebar-label { padding: 0 14px 20px; color: #748190; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; display: flex; justify-content: space-between; }
.sidebar-label span { font-size: 9px; color: #8B96A4; letter-spacing: .5px; }
.nav-item { min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 14px; font-weight: 550; color: #55697D; border-radius: 5px; margin-bottom: 5px; }
.nav-item .icon { width: 20px; height: 20px; }
.nav-item.active { background: #EAF0F5; color: var(--navy); font-weight: 700; border-left: 3px solid var(--yellow); padding-left: 11px; }
.nav-item:not(.nav-disabled):hover { background: #F1F5F9; color: var(--navy); }
.nav-active-dot { margin-left: auto; height: 5px; width: 5px; background: var(--navy); border-radius: 50%; }
.nav-group-label { font-size: 10px; color: #798696; letter-spacing: 1px; padding: 19px 14px 9px; }
.nav-disabled { color: #8A96A4; }
.nav-disabled .small-icon { width: 14px; height: 14px; margin-left: auto; }
.sidebar-safety { background: #F7F9FB; border: 1px solid #E7ECF1; border-radius: 5px; margin: 37px 2px 22px; padding: 18px 18px 16px; }
.safety-lines { display: block; width: 37px; height: 5px; background: repeating-linear-gradient(120deg, var(--yellow) 0 7px, var(--navy) 7px 12px); margin-bottom: 15px; }
.sidebar-safety strong { font-size: 15px; font-weight: 700; }
.sidebar-safety p { font-size: 12px; line-height: 1.9; margin-top: 8px; color: #697B8C; }
.sidebar-safety-meta { font-size: 9px; letter-spacing: .8px; display: block; color: #8693A1; margin-top: 14px; }
.side-help { display: flex; align-items: center; gap: 9px; background: transparent; border: 0; padding: 10px 7px; font-size: 12px; min-height: 44px; text-align: left; color: #657789; margin-top: auto; }
.side-help .icon { width: 18px; }
.side-foot { font-size: 10px; color: #8A96A4; padding: 13px 7px 0; display: flex; align-items: center; gap: 6px; }
.status-dot, .tiny-dot { background: var(--teal); border-radius: 50%; height: 6px; width: 6px; display: inline-block; flex-shrink: 0; }
.content-wrap { flex: 1; min-width: 0; padding: 38px 44px 0; max-width: 1460px; margin: 0 auto; width: 100%; }
main { min-height: calc(100vh - 214px); outline: none; }
.page-heading { margin-bottom: 28px; }
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: 2px; color: #6D7C8D; margin-bottom: 11px; }
.heading-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
h1 { font-size: clamp(26px, 2.4vw, 36px); font-weight: 750; letter-spacing: -.4px; line-height: 1.4; }
.heading-row p { color: var(--muted); font-size: 14px; margin-top: 9px; }
.button { border: 1px solid transparent; min-height: 44px; border-radius: 5px; padding: 11px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.35; font-size: 14px; font-weight: 650; transition: background .15s, border-color .15s; }
.button .icon { width: 18px; height: 18px; }
.button-outline { border-color: #CCD6E1; background: white; }
.button-outline:hover { background: #EAF0F5; border-color: #97AABE; }
.button-primary { background: var(--navy); color: white; }
.button-primary:hover { background: #254864; }
.button-yellow { background: var(--yellow); color: var(--navy); }
.button-yellow:hover { background: #EDBA2E; }
.refresh-button { flex-shrink: 0; font-size: 12px; padding: 9px 13px; background: transparent; }
.session-bar { background: #E7F2F0; border: 1px solid #CFE5E1; border-radius: 6px; min-height: 56px; display: flex; justify-content: space-between; align-items: center; padding: 8px 15px; gap: 15px; color: var(--teal); }
.session-bar > div:first-child { display: flex; gap: 9px; align-items: center; }
.session-bar > div:first-child > .icon { width: 20px; height: 20px; }
.session-bar > div:first-child > span { font-size: 12px; font-weight: 700; }
.session-bar small { color: #507C78; font-weight: 400; margin-left: 15px; font-size: 11px; }
.session-time { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.session-time > .icon { width: 15px; height: 15px; }
.session-time strong { font-family: "SFMono-Regular", Consolas, monospace; font-size: 14px; letter-spacing: .5px; font-weight: 600; }
.icon-button { padding: 10px; width: 44px; height: 44px; border: 0; border-radius: 4px; background: transparent; display: inline-flex; align-items: center; justify-content: center; }
.icon-button:hover { background: rgba(22,50,79,.06); }
.session-time .icon-button { margin: -7px -5px -7px 0; }
.session-time .icon-button .icon { width: 16px; height: 16px; }
.session-bar.is-expired { background: #FFF3D4; border-color: #EDDAA6; color: #806011; }
.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: 28px 0 16px; }
.section-heading h2 { font-size: 17px; font-weight: 700; }
.section-label { font-size: 11px; color: #798898; }
.entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.entry-card { border: 1px solid #DFE5ED; border-radius: var(--radius); background: var(--white); padding: 24px 23px 19px; min-height: 247px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.document-card { transition: transform .18s, border-color .18s, box-shadow .18s; }
.document-card:hover { border-color: #8AA3BA; box-shadow: 0 6px 22px #16324F0B; transform: translateY(-3px); }
.document-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: transparent; transition: background .18s; }
.document-card:hover::before { background: var(--yellow); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.entry-icon { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 7px; background: #EEF3F8; color: var(--navy); }
.entry-icon .icon { height: 25px; width: 25px; }
.entry-icon.checks { background: #FFF6DB; color: #84651A; }
.entry-icon.education { background: #EAF4F1; color: var(--teal); }
.entry-icon.gate { background: #EDF1F5; color: #7B8997; }
.card-number { font: 12px "SFMono-Regular", Consolas, monospace; color: #A1ACB9; }
.entry-card h3 { font-size: 19px; line-height: 1.5; letter-spacing: -.25px; font-weight: 750; }
.entry-card p { font-size: 12px; color: #748292; margin-top: 6px; }
.scope-chip { margin-top: 12px; padding: 2px 8px; border: 1px solid #DCE4ED; border-radius: 4px; background: #F6F8FA; align-self: flex-start; font: 12px "SFMono-Regular", Consolas, monospace; letter-spacing: .1px; color: #617287; line-height: 1.6; }
.file-summary { display: flex; align-items: center; gap: 6px; color: #50736E; font-size: 11px; margin-top: 12px; }
.file-summary.missing { color: #947328; }
.file-summary .icon { width: 13px; height: 13px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 9px; border-top: 1px solid #EDF0F5; margin-top: auto; padding-top: 15px; }
.entry-card .card-bottom { margin-top: 22px; }
.badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; padding: 3px 7px; font-size: 10px; line-height: 1.5; font-weight: 600; white-space: nowrap; }
.badge-demo { color: #5E7286; background: #EDF2F7; }
.badge-pending { color: #83661C; background: #FFF3CE; }
.badge-muted { color: #746283; background: #F0EDF5; }
.card-cta { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 650; }
.card-cta .icon { width: 17px; height: 17px; }
.gate-card { background: #F8FAFC; border-style: dashed; min-height: 239px; }
.gate-card h3 { color: #66788A; font-size: 17px; }
.title-sub { font-size: 13px; display: block; font-weight: 500; }
.gate-card p { color: #758596; }
.gate-card .card-bottom { padding-top: 12px; margin-top: auto; }
.disabled-entry { display: inline-flex; align-items: center; gap: 5px; border: 0; padding: 7px 0 7px 5px; min-height: 44px; font-size: 11px; color: #738393; background: transparent; }
.disabled-entry .icon { width: 13px; height: 13px; }
.line-entry { background: var(--navy); color: white; border-radius: var(--radius); min-height: 239px; padding: 22px 23px; position: relative; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--navy); }
.line-entry::before { content: ""; width: 85px; height: 85px; border: 1px solid #FFFFFF0D; position: absolute; right: -20px; top: -15px; transform: rotate(25deg); }
.line-entry-icon { position: absolute; right: 21px; top: 21px; color: #A2BBCB; }
.line-entry-icon .icon { width: 24px; height: 24px; }
.line-entry .eyebrow { color: #AABECE; font-size: 9px; letter-spacing: 1.3px; margin-bottom: 15px; }
.line-entry h3 { font-size: 20px; font-weight: 650; line-height: 1.7; }
.line-plan-label { color: #AFBECC; font-size: 10px; margin-top: 9px; }
.line-entry-link { font-size: 11px; display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 20px; color: var(--yellow); }
.line-entry-link .icon { width: 18px; height: 18px; }
.line-entry:hover { background: #20425F; }
.scope-notice { background: white; border: 1px solid var(--line); border-radius: 6px; margin-top: 23px; padding: 20px; display: flex; gap: 13px; align-items: center; }
.notice-icon { color: #6B7E91; }
.scope-notice strong { font-size: 13px; }
.scope-notice p { color: #778596; font-size: 11px; line-height: 1.9; margin-top: 4px; }
.scope-notice b { font-weight: 550; color: #51667B; }
.text-button { background: transparent; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 0 9px 10px; color: #5F7589; font-size: 11px; white-space: nowrap; margin-left: auto; }
.text-button .icon { width: 15px; height: 15px; }
.prototype-tools { margin-top: 22px; border-top: 1px solid #DCE3EB; }
.prototype-tools summary { display: flex; align-items: center; gap: 8px; padding: 14px 0; min-height: 48px; font-size: 11px; color: #64788B; cursor: pointer; list-style: none; }
.prototype-tools summary::-webkit-details-marker { display: none; }
.prototype-tools summary > .icon:first-child { width: 15px; height: 15px; }
.prototype-tools summary > .icon:last-child { width: 14px; height: 14px; margin-left: auto; transform: rotate(90deg); }
.prototype-tools[open] summary > .icon:last-child { transform: rotate(-90deg); }
.prototype-tools summary > span { color: #8B98A5; font-size: 10px; margin-left: 12px; }
.tool-body { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: #E8EEF4; border-radius: 6px; padding: 18px; margin-bottom: 10px; }
.tool-body label { font-size: 12px; font-weight: 600; }
.tool-body select { padding: 9px 30px 9px 12px; background: white; border: 1px solid #BAC9D7; border-radius: 5px; min-height: 44px; font-size: 14px; }
.tool-body p { width: 100%; font-size: 11px; color: #6A7E91; }
.footer { font-size: 10px; color: #8995A3; padding: 28px 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; letter-spacing: .2px; }
.footer-divider { margin: 0 9px; color: #B3BDC8; }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; min-height: 44px; margin-top: -17px; margin-bottom: 17px; color: #6A7D90; }
.back-link .icon { width: 17px; height: 17px; }
.folder-panel { background: white; margin-top: 24px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.folder-scope { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #64798D; background: #F8FAFC; padding: 17px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.folder-scope > .icon { width: 17px; height: 17px; }
.folder-scope > span:not(.badge) { font-family: Consolas, monospace; }
.folder-scope b { font-weight: 600; }
.folder-scope .badge { margin-left: auto; }
.filter-row { display: flex; align-items: flex-end; gap: 13px; padding: 24px; }
.date-field { width: 219px; }
.filter-row label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 9px; }
.filter-row label > span { color: #8995A3; font-size: 10px; font-weight: 400; margin-left: 9px; }
.date-input-wrap, .search-input-wrap { display: flex; align-items: center; border: 1px solid #CDD7E2; border-radius: 5px; min-height: 48px; background: white; padding: 0 12px; gap: 9px; }
.date-input-wrap > .icon, .search-input-wrap > .icon { color: #798DA0; width: 18px; height: 18px; }
.filter-row input { min-height: 46px; padding: 9px 0; font-size: 15px; color: var(--navy); width: 100%; border: 0; outline: 0; background: transparent; min-width: 0; }
.date-input-wrap:focus-within, .search-input-wrap:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
.today-button { background: #F1F5F9; border-color: #DAE2EB; min-height: 48px; }
.search-field { flex: 1; min-width: 120px; margin-left: 8px; }
.filter-row input::placeholder { color: #9AA7B4; font-size: 13px; }
.results-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 19px 24px; border-top: 1px solid #EBEFF4; border-bottom: 1px solid #EBEFF4; background: #FCFDFE; }
.results-heading h2 { font-size: 16px; font-weight: 650; }
.results-heading h2 > span { color: #79899A; font-size: 11px; margin-left: 9px; font-weight: 400; }
.results-heading > span { font-size: 11px; color: #7C8D9F; }
.file-list { padding: 0; margin: 0; list-style: none; }
.file-row { display: flex; align-items: center; padding: 21px 24px; gap: 18px; border-bottom: 1px solid #E8EDF3; }
.file-row:last-child { border-bottom: 0; }
.file-type { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 46px; width: 46px; height: 57px; color: #A46157; background: #FBF1EF; border-radius: 5px; }
.file-type .icon { width: 22px; height: 22px; }
.file-type b { font: 8px Consolas, monospace; margin-top: 4px; }
.file-type.xlsx { color: #447E6B; background: #EBF4EE; }
.file-type.txt { color: #6A7E92; background: #EFF3F8; }
.file-details { flex: 1; min-width: 0; }
.file-name { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.file-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11px; color: #7D8C9C; margin: 5px 0 7px; }
.file-meta > span + span { position: relative; }
.file-meta > span + span::before { content: "·"; position: absolute; left: -10px; }
.file-badges { display: flex; gap: 5px; }
.button-download { color: var(--navy); background: #F0F4F8; border: 1px solid #E0E7EF; font-size: 12px; flex-shrink: 0; }
.button-download:hover { background: #E3EBF3; }
.folder-bottom-note { color: #748799; background: #F8FAFC; border-top: 1px solid #E8EDF3; display: flex; align-items: center; gap: 10px; padding: 15px 24px; font-size: 11px; }
.folder-bottom-note .icon { width: 16px; height: 16px; }
.empty-state { padding: 48px 20px 40px; text-align: center; }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 67px; height: 67px; border-radius: 50%; background: #F0F4F8; color: #758CA1; margin-bottom: 18px; }
.empty-icon .icon { width: 30px; height: 30px; }
.empty-state h3 { font-size: 20px; font-weight: 650; }
.empty-state p { color: #748799; font-size: 14px; max-width: 540px; margin: 13px auto 23px; line-height: 1.9; }
.empty-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.empty-state > small { font-size: 10px; color: #99A6B3; display: block; margin-top: 21px; }
.expired-panel .empty-icon { background: #FFF3D4; color: #A38224; }
.line-layout { display: grid; grid-template-columns: .92fr 1fr; gap: 52px; margin-top: 37px; padding: 0 7px; }
.line-concept { background: #E6ECEC; border: 1px solid #D5DFDF; border-radius: 8px; padding: 24px 30px; }
.concept-label { font-size: 11px; color: #637C7A; display: flex; justify-content: space-between; gap: 10px; }
.concept-label span { font-size: 9px; color: #879B99; }
.chat-example { display: flex; align-items: flex-end; flex-direction: column; gap: 5px; margin: 25px 0; }
.chat-user { padding: 9px 20px; font-size: 14px; background: #C4E1CC; border-radius: 9px 0 9px 9px; color: #345A40; }
.chat-example > span { font-size: 9px; color: #768C88; }
.line-card { max-width: 360px; margin: 0 auto; border-radius: 9px; overflow: hidden; background: white; border: 1px solid #D0DADC; }
.line-card-head { background: var(--navy); padding: 18px 21px; display: flex; align-items: center; gap: 13px; border-top: 4px solid var(--yellow); }
.line-card-head > span { font: 800 22px Arial, sans-serif; color: var(--yellow); letter-spacing: -.8px; }
.line-card-head small { color: #DAE5EE; font-size: 12px; border-left: 1px solid #5A6D80; padding-left: 13px; }
.line-card-body { padding: 25px 22px; }
.line-card h2 { font-size: 26px; font-weight: 750; line-height: 1.6; margin: 12px 0; }
.line-card p { font-size: 13px; color: #6E7E8E; line-height: 1.9; }
.line-card-note { display: flex; align-items: center; gap: 7px; color: #7A8896; font-size: 11px; margin: 18px 0 12px; }
.line-card-note .icon { width: 15px; height: 15px; }
.line-card .button { width: 100%; justify-content: space-between; padding: 15px 17px; }
.line-card-body > small { display: block; text-align: center; color: #8D98A3; font-size: 9px; margin-top: 13px; }
.concept-caption { color: #7B9291; font-size: 10px; line-height: 1.8; margin: 18px auto 0; max-width: 350px; }
.line-instructions { padding-top: 17px; }
.line-instructions h2 { font-size: 28px; line-height: 1.65; letter-spacing: -.2px; }
.step-list { list-style: none; margin: 30px 0; padding: 0; }
.step-list li { display: flex; gap: 19px; margin-bottom: 23px; }
.step-list li > span { font: 14px Consolas, monospace; color: #8FA1B2; border-top: 2px solid var(--yellow); padding-top: 6px; align-self: flex-start; min-width: 28px; }
.step-list h3 { font-size: 15px; font-weight: 650; }
.step-list p { font-size: 12px; line-height: 1.9; color: #7B8998; margin-top: 5px; }
.integration-warning { display: flex; align-items: flex-start; gap: 12px; background: #EAF0F5; border: 1px solid #DEE6EE; border-radius: 6px; padding: 16px; margin: 20px 0; }
.integration-warning > .icon { width: 19px; height: 19px; margin-top: 3px; color: #6D8295; }
.integration-warning strong { font-size: 13px; }
.integration-warning p { font-size: 12px; line-height: 1.9; color: #6D8092; margin-top: 4px; }
.modal { width: min(520px, calc(100vw - 32px)); padding: 27px 29px 29px; border: 1px solid #D4DDE7; border-radius: 10px; color: var(--navy); max-height: calc(100dvh - 36px); overflow: auto; box-shadow: 0 16px 80px #16324F33; }
.modal::backdrop { background: #10273D88; backdrop-filter: blur(3px); }
.modal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.modal-top .icon-button { margin-top: -9px; margin-right: -12px; color: #738495; }
.modal-icon { background: #F1F5F9; display: inline-flex; align-items: center; justify-content: center; height: 46px; width: 46px; border-radius: 8px; }
.modal-icon .icon { height: 23px; width: 23px; }
.modal h2 { font-size: 23px; line-height: 1.5; }
.modal-description { color: #6F8091; font-size: 14px; line-height: 1.9; margin: 12px 0 20px; }
.modal > p { color: #6F8091; font-size: 14px; line-height: 1.9; margin: 12px 0 20px; }
.modal .modal-small { font-size: 12px; }
.download-file { display: flex; gap: 14px; padding: 17px; background: #F1F5F9; border-radius: 6px; align-items: center; }
.download-file > .icon { color: #8799AA; height: 25px; width: 25px; }
.download-file strong { font-size: 13px; line-height: 1.8; display: block; overflow-wrap: anywhere; }
.download-file span { display: block; font-size: 11px; color: #7B8C9C; margin-top: 5px; }
.download-review { color: #8F7020; background: #FFF6D9; display: flex; align-items: flex-start; gap: 9px; padding: 13px; font-size: 12px; margin-top: 13px; border-radius: 5px; }
.download-review .icon { width: 17px; height: 17px; margin-top: 2px; }
.download-expiry { display: flex; align-items: center; gap: 9px; color: var(--teal); font-size: 12px; margin: 21px 0; }
.download-expiry .icon { width: 17px; height: 17px; }
.download-expiry strong { font-family: Consolas, monospace; margin-left: auto; }
.modal-actions { display: flex; gap: 11px; margin-top: 25px; }
.modal-actions > .button { flex: 1; }
.full-width { width: 100%; margin-top: 15px; }
.success-mark { display: flex; align-items: center; justify-content: center; background: #E1F0EB; color: var(--teal); border-radius: 50%; width: 58px; height: 58px; margin: 23px auto; }
.success-mark .icon { width: 29px; height: 29px; }
.return-line { border: 1px solid #D9E2EB; border-radius: 6px; text-align: center; padding: 18px; }
.return-line > * { display: block; }
.return-line b { font-size: 13px; }
.return-line span { color: #7C8B99; font-size: 11px; margin-top: 12px; }
.return-line strong { background: var(--yellow); font-size: 20px; display: inline-block; padding: 8px 27px; border-radius: 4px; margin-top: 9px; }
.guide-sections { margin-top: 24px; }
.guide-sections section { border-top: 1px solid #E4EAF1; padding: 15px 0; }
.guide-sections h3 { font-size: 14px; }
.guide-sections p { font-size: 12px; color: #78899A; line-height: 1.9; margin-top: 7px; }
.toast { position: fixed; bottom: max(22px, env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%, 20px); max-width: calc(100vw - 32px); padding: 14px 21px; background: var(--navy); border: 1px solid #5D748C; border-radius: 6px; color: white; font-size: 13px; z-index: 20; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s; box-shadow: 0 6px 22px #16324F22; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (min-width: 1600px) { .content-wrap { padding-left: 58px; padding-right: 58px; } }
@media (max-width: 1180px) {
  .sidebar { width: 214px; flex-basis: 214px; padding-left: 14px; padding-right: 14px; }
  .content-wrap { padding: 31px 28px 0; }
  .entry-card { padding: 20px 18px 16px; }
  .entry-card h3 { font-size: 17px; }
  .entry-card p { font-size: 11px; }
  .card-cta { font-size: 10px; gap: 5px; }
  .line-entry { padding: 20px 18px; }
  .line-entry h3 { font-size: 18px; }
  .scope-notice { align-items: flex-start; flex-wrap: wrap; }
  .scope-notice > div:nth-child(2) { flex: 1; }
  .scope-notice .text-button { margin-top: -7px; }
  .session-bar small { margin-left: 8px; }
  .line-layout { gap: 30px; }
  .line-concept { padding: 21px; }
}
@media (max-width: 1000px) {
  .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-card { min-height: 246px; }
  .entry-card h3 { font-size: 18px; }
  .line-entry { min-height: 246px; }
  .session-bar small { display: block; margin-left: 0; font-size: 10px; }
  .line-layout { grid-template-columns: 1fr; }
  .line-concept { max-width: 500px; width: 100%; margin: 0 auto; }
  .line-instructions { padding: 15px 15px 0; }
  .date-field { width: 188px; }
  .filter-row { flex-wrap: wrap; }
  .search-field { flex-basis: 100%; margin-left: 0; }
}
@media (max-width: 760px) {
  .topbar { padding: 0 22px; min-height: 79px; gap: 15px; }
  .brand { gap: 14px; }
  .brand-title { font-size: 17px; padding-left: 14px; letter-spacing: 1px; }
  .brand-title small { font-size: 9px; }
  .brand-mark { font-size: 26px; }
  .topbar-right { gap: 12px; }
  .header-date .icon { display: none; }
  .header-date strong { font-size: 12px; }
  .header-date small { font-size: 10px; }
  .prototype-tag { font-size: 10px; padding: 3px 7px; }
  .sidebar { display: none; }
  .app-shell { min-height: calc(100vh - 79px); }
  .content-wrap { padding: 27px 22px 0; }
  .page-heading { margin-bottom: 23px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.4px; }
  h1 { font-size: 30px; }
  .heading-row p { font-size: 13px; }
  .refresh-button { font-size: 11px; padding: 8px 11px; }
  .session-bar { padding: 8px 12px; }
  .section-heading { margin: 25px 0 15px; }
  .section-heading h2 { font-size: 18px; }
  .section-label { font-size: 10px; }
  .entry-grid { gap: 14px; }
  .entry-card { padding: 22px 20px 17px; min-height: 246px; }
  .entry-card h3 { font-size: 20px; }
  .entry-card p { font-size: 12px; }
  .card-cta { font-size: 12px; }
  .line-entry { padding: 22px; }
  .line-entry h3 { font-size: 21px; }
  .scope-notice { padding: 18px; }
  .scope-notice strong { font-size: 14px; }
  .scope-notice p { font-size: 12px; }
  .prototype-tools summary { font-size: 12px; }
  .footer { font-size: 10px; }
  .folder-panel { margin-top: 20px; }
  .filter-row { padding: 21px; }
  .folder-scope { padding: 15px 21px; }
  .results-heading { padding: 18px 21px; }
  .file-row { padding: 21px; }
  .file-meta { font-size: 12px; }
}
@media (max-width: 500px) {
  .topbar { min-height: 78px; padding: 0 18px; }
  .topbar-right { gap: 0; }
  .prototype-tag { display: none; }
  .brand-title { font-size: 15px; }
  .brand-title small { font-size: 9px; letter-spacing: .1px; }
  .header-date strong { font-size: 11px; letter-spacing: .1px; }
  .header-date small { font-size: 9px; }
  .brand-mark { font-size: 24px; }
  .content-wrap { padding: 25px 18px 0; }
  h1 { font-size: 27px; letter-spacing: -.6px; }
  .heading-row { gap: 11px; align-items: flex-start; }
  .heading-row p { font-size: 12px; margin-top: 9px; line-height: 1.8; }
  .refresh-button { width: 44px; height: 44px; padding: 9px; margin-top: 0; }
  .refresh-button > span { display: none; }
  .session-bar { align-items: center; gap: 4px; min-height: 65px; }
  .session-bar > div:first-child > .icon { width: 17px; height: 17px; }
  .session-bar > div:first-child > span { font-size: 11px; }
  .session-bar small { font-size: 9px; }
  .session-time { gap: 4px; }
  .session-time > span { display: none; }
  .session-time strong { font-size: 14px; }
  .session-time > .icon { width: 14px; height: 14px; }
  .session-time .icon-button { margin-right: -11px; }
  .section-heading { gap: 7px; }
  .section-heading h2 { font-size: 17px; }
  .section-label { font-size: 9px; max-width: 145px; text-align: right; }
  .entry-grid { gap: 12px; }
  .entry-card { padding: 18px 15px 13px; min-height: 247px; }
  .card-top { margin-bottom: 15px; }
  .entry-icon { height: 42px; width: 42px; }
  .entry-icon .icon { height: 24px; width: 24px; }
  .card-number { font-size: 10px; }
  .entry-card h3 { font-size: 18px; letter-spacing: -.7px; line-height: 1.55; }
  .entry-card p { font-size: 11px; line-height: 1.8; }
  .card-bottom { flex-wrap: wrap; gap: 9px; }
  .entry-card .card-bottom { margin-top: auto; padding-top: 13px; }
  .card-cta { font-size: 11px; gap: 4px; }
  .badge { font-size: 9px; padding: 3px 6px; }
  .card-bottom .badge { font-size: 9px; }
  .file-summary { font-size: 10px; line-height: 1.5; gap: 4px; }
  .file-summary .icon { width: 12px; height: 12px; }
  .scope-chip { font-size: 11px; }
  .gate-card { min-height: 247px; }
  .gate-card h3 { font-size: 17px; }
  .gate-card p { font-size: 11px; }
  .title-sub { font-size: 12px; margin-top: 4px; }
  .disabled-entry { font-size: 10px; padding-left: 0; }
  .gate-card .card-bottom { gap: 0 6px; }
  .line-entry { padding: 18px 15px; min-height: 247px; }
  .line-entry .eyebrow { font-size: 9px; margin-bottom: 25px; letter-spacing: 0; }
  .line-entry-icon { right: 13px; top: 18px; }
  .line-entry-icon .icon { width: 19px; height: 19px; }
  .line-entry h3 { font-size: 19px; line-height: 1.65; }
  .line-plan-label { font-size: 9px; line-height: 1.9; }
  .line-entry-link { font-size: 10px; }
  .scope-notice { gap: 11px; padding: 17px 15px 10px; margin-top: 19px; }
  .scope-notice .notice-icon .icon { width: 20px; height: 20px; }
  .scope-notice p { font-size: 11px; line-height: 1.9; }
  .scope-notice .text-button { padding-left: 31px; font-size: 11px; margin-left: 0; margin-top: -3px; }
  .prototype-tools { margin-top: 19px; }
  .prototype-tools summary > span { display: none; }
  .tool-body { padding: 15px; gap: 12px; }
  .tool-body label { flex-basis: 100%; }
  .tool-body select { flex: 1; min-width: 120px; }
  .tool-body .button { font-size: 11px; padding: 10px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 5px; padding-top: 24px; padding-bottom: max(22px, env(safe-area-inset-bottom)); font-size: 9px; }
  .folder-scope { gap: 7px; padding: 13px 16px; font-size: 11px; }
  .folder-scope b { width: 100%; order: 4; margin-left: 24px; }
  .folder-scope > .icon:nth-child(3) { display: none; }
  .filter-row { padding: 18px 16px; gap: 12px; }
  .date-field { flex: 1; width: auto; min-width: 0; }
  .filter-row label { font-size: 13px; }
  .filter-row label > span { font-size: 10px; }
  .filter-row input { font-size: 16px; }
  .today-button { padding: 10px 17px; }
  .search-field { margin-top: 3px; }
  .results-heading { padding: 16px; gap: 10px; }
  .results-heading h2 { font-size: 15px; }
  .results-heading h2 > span { font-size: 10px; margin-left: 5px; }
  .results-heading > span { font-size: 10px; }
  .file-row { padding: 19px 16px; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
  .file-type { width: 36px; flex-basis: 36px; height: 46px; }
  .file-type .icon { width: 19px; height: 19px; }
  .file-details { width: calc(100% - 48px); flex: auto; }
  .file-name { font-size: 15px; line-height: 1.8; }
  .file-meta { font-size: 11px; gap: 13px; }
  .file-meta > span + span::before { left: -8px; }
  .button-download { margin-left: 48px; min-height: 46px; font-size: 13px; padding: 11px 16px; }
  .file-badges .badge { font-size: 10px; }
  .folder-bottom-note { padding: 14px 16px; font-size: 11px; align-items: flex-start; }
  .folder-bottom-note .icon { margin-top: 3px; }
  .empty-state { padding: 34px 18px; }
  .empty-state h3 { font-size: 20px; }
  .empty-state p { font-size: 14px; }
  .empty-actions { gap: 10px; }
  .empty-actions > .button { width: 100%; font-size: 14px; min-height: 48px; }
  .line-layout { padding: 0; gap: 25px; margin-top: 25px; }
  .line-concept { padding: 20px; }
  .line-instructions { padding: 8px 5px 0; }
  .line-instructions h2 { font-size: 26px; }
  .step-list h3 { font-size: 16px; }
  .step-list p { font-size: 14px; }
  .concept-label { font-size: 12px; }
  .line-card p { font-size: 14px; }
  .modal { padding: 22px; }
  .modal h2 { font-size: 22px; }
  .modal .button { min-height: 48px; }
  .modal-actions { flex-direction: column-reverse; }
  .toast { width: calc(100vw - 32px); text-align: center; font-size: 12px; }
}
@media (max-width: 350px) {
  .content-wrap { padding-left: 15px; padding-right: 15px; }
  .entry-grid { grid-template-columns: 1fr; }
  .entry-card, .gate-card, .line-entry { min-height: 227px; padding: 21px; }
  .entry-card h3 { font-size: 21px; }
  .entry-card p { font-size: 13px; }
  .entry-card .card-bottom { margin-top: 19px; flex-wrap: nowrap; }
  .gate-card .card-bottom { margin-top: auto; }
  .card-cta { font-size: 13px; }
  .line-entry h3 br { display: none; }
  .line-entry h3 { font-size: 20px; }
  .line-entry .eyebrow { margin-bottom: 18px; }
  .line-plan-label { font-size: 11px; }
  .line-entry-link { font-size: 12px; }
  .brand { gap: 10px; }
  .brand-title { padding-left: 10px; font-size: 14px; }
  .brand-title small { display: none; }
  .header-date strong { font-size: 10px; }
  .section-label { max-width: 125px; }
  h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* 官方帳號一對一聊天室／Rich Menu 示意，非實際 LINE 畫面。 */
.official-chat { margin-top: 23px; border: 1px solid #CBD7DB; border-radius: 10px; overflow: hidden; background: #EAF0F2; }
.official-chat-head { background: #FFFFFF; padding: 18px 15px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid #D6E0E5; }
.official-avatar { width: 35px; height: 35px; background: var(--navy); color: var(--yellow); border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 800 18px Arial,sans-serif; }
.official-chat-head strong { font-size: 14px; font-weight: 700; }
.official-chat-head small { display: block; font-size: 9px; color: #8898A4; margin-top: 2px; }
.official-message { background: #FFFFFF; padding: 17px; margin: 24px 17px 38px; border-radius: 0 9px 9px 9px; }
.official-message > b { font-size: 14px; }
.official-message p { font-size: 12px; color: #74899A; line-height: 1.9; margin: 8px 0 12px; }
.official-message > div { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--teal); }
.official-message > div .icon { width: 15px; height: 15px; }
.official-message > small { font-size: 9px; color: #96A4AF; display: block; margin-top: 12px; }
.mock-chat-input { background: #FFFFFF; display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; color: #B1BCC7; font-size: 12px; border-top: 1px solid #D5DFE7; }
.mock-chat-input .icon { width: 17px; height: 17px; }
.rich-menu { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 4px solid var(--yellow); background: var(--navy); padding: 1px; gap: 1px; }
.rich-cell { min-height: 112px; padding: 14px 5px; background: var(--navy); border: 0; color: white; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 6px; border-right: 1px solid #3A526A; border-bottom: 1px solid #3A526A; }
.rich-cell .icon { width: 26px; height: 26px; color: #E3EDF6; margin-bottom: 3px; }
.rich-cell strong { font-size: 12px; font-weight: 650; }
.rich-cell small { font-size: 8px; color: #ACBFD0; }
.rich-cell:not(:disabled):hover { background: #2A4B68; }
.rich-cell-disabled { color: #ACBCCB; background: #213B54; }
.rich-cell-disabled .icon { color: #8DA1B3; }
.rich-cell-disabled small { color: #D6C089; }
.rich-cell-yellow { background: var(--yellow); color: var(--navy); border-color: #D3AA3D; }
.rich-cell-yellow .icon { color: var(--navy); }
.rich-cell-yellow small { color: #755D22; }
.rich-cell-yellow:not(:disabled):hover { background: #E9B62D; }
.rich-menu-bar { background: #FFFFFF; font-size: 12px; color: #526C81; display: flex; justify-content: space-between; padding: 10px 15px; }
@media (max-width:500px) { .official-chat-head { padding: 15px 12px; gap: 9px; } .official-chat-head strong { font-size: 13px; } .rich-cell { min-height: 112px; } .rich-cell strong { font-size: 12px; } .rich-cell small { font-size: 9px; } }

/* Z 槽指定根目錄及僅供驗收的虛構子資料夾導覽。 */
.target-path { display: grid; gap: 6px; padding: 14px 24px; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.target-path > span { color: #64798D; font-size: 11px; font-weight: 650; }
.target-path > code { font-family: "SFMono-Regular", Consolas, monospace; color: #52687D; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; word-break: break-word; user-select: text; }
.target-path > small { color: #8190A0; font-size: 10px; }
.demo-folder-nav { padding: 17px 24px; border-bottom: 1px solid var(--line); background: #F8FAFC; }
.demo-folder-nav-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; }
.demo-folder-nav-title > .icon { width: 17px; height: 17px; color: #6B8094; }
.demo-folder-nav-title > span { color: #8896A4; font-size: 10px; font-weight: 400; }
.demo-folder-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.demo-folder-button { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 13px; border: 1px solid #D9E2EB; border-radius: 5px; background: #FFFFFF; color: #546C81; font-size: 11px; }
.demo-folder-button > span { color: #8293A2; font-size: 10px; font-family: Consolas, monospace; }
.demo-folder-button:hover { border-color: #91A7BC; background: #F1F5F9; }
.demo-folder-button.active { color: #FFFFFF; background: var(--navy); border-color: var(--navy); }
.demo-folder-button.active > span { color: #DCE6EF; }
@media (max-width: 500px) {
  .target-path { padding: 13px 16px; }
  .target-path > code { font-size: 11px; }
  .demo-folder-nav { padding: 15px 16px; }
  .demo-folder-nav-title { flex-wrap: wrap; font-size: 12px; }
  .demo-folder-nav-title > span { flex-basis: 100%; padding-left: 25px; }
  .demo-folder-buttons { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .demo-folder-button { justify-content: space-between; width: 100%; min-height: 46px; font-size: 12px; }
}


/* 多頁式工作站：清楚路徑、同頁導覽與檔案詳情 */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 9px; color: #718397; font-size: 12px; line-height: 1.6; }
.breadcrumbs a { min-height: 32px; display: inline-flex; align-items: center; border-bottom: 1px solid transparent; }
.breadcrumbs a:hover { color: var(--navy); border-bottom-color: var(--yellow); }
.breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 650; overflow-wrap: anywhere; }
.breadcrumb-separator { color: #A6B1BC; }
.page-heading .back-link { margin-top: 0; margin-bottom: 8px; }
.home-hero { position: relative; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; margin: 5px 0 20px; padding: 25px 30px 22px; color: #FFFFFF; background: var(--navy); border-left: 5px solid var(--yellow); border-radius: 7px; }
.home-hero::after { content: ""; position: absolute; width: 220px; height: 220px; right: 4%; top: -135px; border: 1px solid #FFFFFF24; transform: rotate(45deg); box-shadow: 0 0 0 20px #FFFFFF08, 0 0 0 45px #FFFFFF06; pointer-events: none; }
.hero-marker { color: #F8D86D; font: 700 10px/1.6 Consolas, monospace; letter-spacing: 1.7px; }
.home-hero h2, .help-hero h2 { margin-top: 6px; font-size: clamp(22px, 2.3vw, 31px); line-height: 1.4; letter-spacing: .2px; }
.home-hero p { max-width: 700px; margin-top: 7px; color: #D8E2EC; font-size: 13px; }
.hero-rule { display: flex; gap: 5px; margin-top: 14px; }
.hero-rule span { height: 4px; width: 24px; background: var(--yellow); }
.hero-rule span + span { background: #FFFFFF6E; }
.module-grid { margin-bottom: 23px; }
.module-card { min-height: 254px; padding-top: 21px; }
.module-card h3 { min-height: 1.5em; }
.module-card.gate .entry-icon, .entry-icon.gate { color: #78601B; background: #FFF5D7; }
.entry-icon.help { color: var(--teal); background: #E6F2F0; }
.module-status { display: flex; align-items: center; gap: 7px; margin-top: 12px; min-height: 24px; color: #52766E; font-size: 11px; font-weight: 650; }
.module-status.pending { color: #80641D; }
.module-status .icon { width: 15px; height: 15px; }
.module-card .card-bottom { margin-top: auto; }
.scope-notice { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 16px 18px; border: 1px solid #D9E3EA; border-left: 4px solid var(--yellow); border-radius: 6px; background: #FFFFFF; }
.scope-notice .notice-icon { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; color: var(--teal); background: #E9F3F1; border-radius: 50%; }
.scope-notice > div:nth-child(2) { flex: 1; min-width: 0; }
.scope-notice strong { color: var(--navy); font-size: 14px; }
.scope-notice p { margin-top: 4px; color: #667A8D; font-size: 12px; }
.scope-notice .text-button { flex: 0 0 auto; }
.gate-status-card { display: grid; grid-template-columns: minmax(90px, 130px) minmax(0, 1fr); gap: 26px; align-items: start; margin: 23px 0; padding: 28px; border: 1px solid #E5D7A8; border-left: 6px solid var(--yellow); border-radius: 8px; background: #FFFEFA; }
.gate-status-symbol { width: 80px; height: 80px; display: grid; place-items: center; color: var(--navy); background: #FFF3CE; border-radius: 8px; }
.gate-status-symbol .icon { width: 40px; height: 40px; }
.gate-status-copy h2 { margin-top: 11px; color: var(--navy); font-size: 23px; }
.gate-status-copy p { max-width: 780px; margin-top: 10px; color: #5F7182; font-size: 14px; }
.gate-status-copy ul { display: grid; gap: 7px; margin: 16px 0 22px; padding-left: 22px; color: #526A7E; font-size: 13px; }
.gate-status-copy li::marker { color: #B58C1D; }
.page-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 20px; padding: 15px 18px; color: #536D80; background: #EDF3F7; border-radius: 6px; font-size: 12px; }
.page-note .icon { flex: 0 0 18px; width: 18px; height: 18px; color: var(--teal); }
.file-row.file-link { min-height: 96px; color: inherit; text-decoration: none; transition: background .15s; }
.file-row.file-link:hover { background: #F7F9FB; }
.file-row.file-link:focus-visible { outline-offset: -3px; }
.file-row .file-details { display: block; }
.file-row .file-name { display: block; }
.file-open-hint { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 8px 10px; border: 1px solid #DCE5ED; border-radius: 5px; color: #49647B; background: #F6F8FA; white-space: nowrap; font-size: 11px; font-weight: 650; }
.file-open-hint .icon { width: 16px; height: 16px; }
.document-detail { display: grid; grid-template-columns: minmax(240px, .78fr) minmax(0, 1.22fr); gap: 18px; margin: 23px 0; }
.detail-preview-placeholder, .detail-information { min-width: 0; padding: 25px; border: 1px solid #DFE6ED; border-radius: 8px; background: #FFFFFF; }
.detail-preview-placeholder { min-height: 305px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: linear-gradient(145deg, #F5F8FA 0%, #FFFFFF 70%); }
.detail-preview-icon { width: 80px; height: 80px; display: grid; place-items: center; margin-bottom: 15px; color: var(--navy); background: #E9EFF4; border: 1px solid #DCE5EC; border-radius: 12px; }
.detail-preview-icon .icon { width: 39px; height: 39px; }
.detail-preview-placeholder h2 { margin-top: 15px; color: var(--navy); font-size: 18px; }
.detail-preview-placeholder p { max-width: 280px; margin-top: 7px; color: #738294; font-size: 12px; }
.detail-information-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-information > h2 { margin: 7px 0 17px; color: var(--navy); font-size: 19px; overflow-wrap: anywhere; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 0; border-top: 1px solid #E9EEF2; }
.detail-grid > div { min-width: 0; padding: 11px 0; border-bottom: 1px solid #E9EEF2; }
.detail-grid dt { color: #8290A0; font-size: 10px; }
.detail-grid dd { margin: 3px 0 0; color: #243E55; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.detail-security { display: flex; gap: 9px; margin-top: 16px; padding: 12px; color: #526C7C; background: #EDF4F2; border-radius: 5px; font-size: 11px; }
.detail-security .icon { flex: 0 0 17px; width: 17px; height: 17px; color: var(--teal); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.return-state-hint { display: block; margin-top: 12px; color: #8592A1; font-size: 10px; }
.inline-preview-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 13px 6px; text-align: center; color: #526A7D; }
.inline-preview-placeholder > .icon { width: 38px; height: 38px; color: var(--teal); }
.inline-preview-placeholder strong { color: var(--navy); font-size: 16px; }
.inline-preview-placeholder span { font-weight: 650; overflow-wrap: anywhere; }
.inline-preview-placeholder small { max-width: 460px; color: #768696; line-height: 1.8; }
.help-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; padding: 25px 28px; color: #FFFFFF; border-radius: 7px; background: var(--navy); border-left: 5px solid var(--yellow); }
.help-hero > div { min-width: 0; }
.help-hero p { max-width: 700px; margin-top: 8px; color: #D5E0EA; font-size: 13px; }
.help-hero-icon { flex: 0 0 76px; width: 76px; height: 76px; display: grid; place-items: center; color: var(--yellow); border: 1px solid #FFFFFF38; border-radius: 50%; }
.help-hero-icon .icon { width: 38px; height: 38px; }
.help-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 19px; }
.help-card { min-width: 0; padding: 20px; border: 1px solid #DFE6ED; border-radius: 7px; background: #FFFFFF; }
.help-card .section-heading { margin: 0 0 15px; }
.help-steps { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.help-steps li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid #E9EEF2; }
.help-steps li > span { color: #9C7A16; font: 700 12px/1.7 Consolas, monospace; }
.help-steps h3 { color: var(--navy); font-size: 14px; }
.help-steps p { margin-top: 4px; color: #6F8090; font-size: 11px; line-height: 1.8; }
.menu-preview-shell { padding: 14px; border: 1px solid #E1E7ED; border-radius: 6px; background: #F4F6F8; }
.menu-preview-label { margin-bottom: 11px; color: #748395; font-size: 10px; }
.menu-preview-shell .rich-menu { border-radius: 4px; overflow: hidden; }
.help-caption { margin-top: 11px; color: #758697; font-size: 10px; line-height: 1.8; }
.help-download-card { display: flex; align-items: center; gap: 17px; margin-top: 18px; padding: 20px; border: 1px solid #E4D59E; border-left: 5px solid var(--yellow); border-radius: 7px; background: #FFFEF9; }
.download-package-icon { flex: 0 0 49px; width: 49px; height: 49px; display: grid; place-items: center; color: var(--navy); background: #FFF1C7; border-radius: 7px; }
.download-package-icon .icon { width: 25px; height: 25px; }
.help-download-copy { flex: 1; min-width: 0; }
.help-download-copy h2 { color: var(--navy); font-size: 18px; }
.help-download-copy p { margin-top: 5px; color: #6D7D8D; font-size: 11px; }
.package-download { flex: 0 0 auto; min-height: 50px; }
.help-security-note { margin-top: 18px; }

@media (max-width: 1000px) {
  .document-detail { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 13px; }
  .detail-preview-placeholder, .detail-information { padding: 19px; }
  .help-layout { gap: 13px; }
}
@media (max-width: 760px) {
  .gate-status-card { grid-template-columns: 74px minmax(0, 1fr); gap: 16px; padding: 20px; }
  .gate-status-symbol { width: 66px; height: 66px; }
  .document-detail, .help-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-preview-placeholder { min-height: 210px; }
  .detail-information { padding: 22px; }
}
@media (max-width: 500px) {
  .breadcrumbs { gap: 4px; margin-bottom: 7px; font-size: 10px; }
  .home-hero, .help-hero { padding: 20px 18px; }
  .home-hero h2, .help-hero h2 { font-size: 22px; }
  .home-hero p, .help-hero p { font-size: 12px; }
  .module-card { min-height: 248px; padding: 18px 15px 14px; }
  .module-card h3 { font-size: 17px; overflow-wrap: anywhere; }
  .module-card .card-bottom { gap: 5px; }
  .module-card .card-cta { font-size: 10px; }
  .scope-notice { align-items: flex-start; flex-wrap: wrap; gap: 10px; padding: 14px; }
  .scope-notice > div:nth-child(2) { flex-basis: calc(100% - 50px); }
  .scope-notice .text-button { margin-left: 44px; }
  .gate-status-card { grid-template-columns: 1fr; padding: 18px; }
  .gate-status-symbol { width: 56px; height: 56px; }
  .gate-status-symbol .icon { width: 30px; height: 30px; }
  .gate-status-copy h2 { font-size: 20px; }
  .file-row.file-link { gap: 11px; padding: 17px 14px; flex-wrap: wrap; }
  .file-open-hint { margin-left: 57px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .detail-actions > * { width: 100%; }
  .help-hero-icon { flex-basis: 48px; width: 48px; height: 48px; }
  .help-hero-icon .icon { width: 26px; height: 26px; }
  .help-card { padding: 16px; }
  .help-download-card { align-items: flex-start; flex-wrap: wrap; padding: 16px; }
  .help-download-copy { flex-basis: calc(100% - 68px); }
  .package-download { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .document-card, .file-row.file-link, .button { transition: none; }
}

/* 麵包屑是主要返回路徑，觸控高度與其他導覽一致。 */
.breadcrumbs a { min-height: 44px; }

.text-button { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.text-button .icon { width: 16px; height: 16px; }

.prototype-tools > summary { min-height: 44px; }

.breadcrumbs a { min-width: 44px; justify-content: center; }

/* 期限到期或無法驗證時，明細開檔操作明確鎖定。 */
.detail-actions .button:disabled {
  cursor: not-allowed;
  filter: saturate(.48);
  opacity: .7;
}
.detail-actions .button:disabled:hover {
  box-shadow: none;
  transform: none;
}
