/* 喵的，又要上班了 — language versions (assets/meow-i18n.js puts html.i18n-ja / i18n-ko / i18n-en on the page, and
   html.i18n-hans in Simplified Chinese). Traditional Chinese never gets one of these classes, so nothing here touches the Taiwan app.
   Sections: 1 fonts · 2 assistant hidden · 3 longer text (ja / en / ko) */

/* ── 1. Fonts: headings use each language's own serif; body text the system font with the right CJK glyphs ── */
@font-face{font-family:"Meow Serif JP";src:url("./v4/meow-serif-v4-ja.woff") format("woff");font-weight:900;font-style:normal;font-display:swap}
@font-face{font-family:"Meow Serif KR";src:url("./v4/meow-serif-v4-ko.woff") format("woff");font-weight:900;font-style:normal;font-display:swap}
html.i18n-ja{
  --v4-serif:"Meow Serif JP","Hiragino Mincho ProN","Yu Mincho","Noto Serif JP",serif;
  --v4-sans:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic UI","Meiryo",sans-serif;
}
html.i18n-ko{
  --v4-serif:"Meow Serif KR","AppleMyungjo","Noto Serif KR","Nanum Myeongjo",serif;
  --v4-sans:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;
}
html.i18n-en{
  --v4-serif:"Meow Serif TC",Georgia,"Times New Roman",serif;
  --v4-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
/* Simplified: the same weights in the mainland fonts. Meow Serif TC stops at the Traditional letters the app used, so a
   heading would change font half way through a word; the serif comes from the phone. */
html.i18n-hans,html.i18n-hans.v4,html.i18n-hans.v4 #meowOnboarding.v4ob{
  --v4-serif:"Noto Serif SC","Songti SC","STSongti-SC-Bold","Source Han Serif SC",serif;
  --v4-sans:-apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif;
}
html.i18n-hans body,html.i18n-hans button,html.i18n-hans input,html.i18n-hans select,html.i18n-hans textarea{font-family:var(--v4-sans)}
html.i18n-ja body,html.i18n-ja button,html.i18n-ja input,html.i18n-ja select,html.i18n-ja textarea{font-family:var(--v4-sans)}
html.i18n-ko body,html.i18n-ko button,html.i18n-ko input,html.i18n-ko select,html.i18n-ko textarea{font-family:var(--v4-sans)}
html.i18n-en body,html.i18n-en button,html.i18n-en input,html.i18n-en select,html.i18n-en textarea{font-family:var(--v4-sans)}

/* ── 2. Chinese-only features (selectors repeat the class to outrank the later v4 !important rules): the 喵助理 assistant (Chinese speech and text only), the roster photo import
   (reads Chinese shift names) have no entry points elsewhere. ── */
html.i18n-intl.i18n-intl #aiScheduleCard,
html.i18n-intl.i18n-intl.i18n-intl .ref-ai-card{display:none!important}
/* The 特休 card has the row to itself. */
html.v4.i18n-intl .v4-row2>.v4-leave-wide:only-child{grid-column:1/-1}

/* ── 3. Custom pay rules (Japanese, Korean, English): the currency picker looks like the other field boxes ── */
html.v4 .v4-sub-body .v4pa-select select{flex:1 1 auto;min-width:0;width:100%;height:22px;margin:0;padding:0!important;border:0!important;background:transparent!important;
  -webkit-appearance:none;appearance:none;font:inherit;font-size:16px;font-weight:900;color:var(--v4-ink);outline:none}
html.v4 .v4-sub-body .v4pa-select::after{content:"";flex:none;width:7px;height:7px;margin:0 2px 4px 0;border-right:2px solid var(--v4-muted);border-bottom:2px solid var(--v4-muted);transform:rotate(45deg)}

/* ── 4. Longer words: calendar chips never spill out of their day cell ── */
html.v4.i18n-intl .v4-cal .v4-chip{max-width:100%;overflow:hidden;text-overflow:clip;box-sizing:border-box}

/* ── 5. Longer words in dialogs, onboarding and the cat cards (html.v4 too, to outrank the later v4 sheets) ── */
/* Dialog buttons stay on one line: kana and hangul may break between any two letters, so a button that only just
   fits showed 「キャンセ／ル」 and 「保／存」. */
html.i18n-intl dialog.dialog .dialog-foot .btn{white-space:nowrap}
/* 行程 / 待辦 rows: room for Reminders, リマインダー, やること (shrunk a little more when needed, meow-i18n.js). */
html.i18n-intl .itinerary-form-row{grid-template-columns:36px 84px minmax(0,1fr)}
html.i18n-intl .itinerary-form-row>label{white-space:nowrap;overflow:hidden}
/* Onboarding 假別 tiles: Personal leave, Menstrual leave … take two lines instead of spilling over the border. */
html.v4.i18n-intl #meowOnboarding .v4ob-leave>span{white-space:normal;padding-left:4px;padding-right:4px;text-align:center}
/* 方案 and 輪班鬧鐘: longer headings and notes wrap before the cat instead of running under it. */
html.v4.i18n-intl .v4pl-hero-title{white-space:normal;padding-right:78px}
html.v4.i18n-ko .v4pl-hero-title{word-break:keep-all}
html.v4.i18n-intl .v4al-line{padding-right:76px}
/* 總覽 today card, 明天 row: Tomorrow · Evening · 15:00 – 23:00 · Alarm 14:00 is wider than the card in English; the
   alarm moves to its own line, on the right. */
html.i18n-intl .v4-next{flex-wrap:wrap;row-gap:6px}
html.i18n-intl .v4-next>.v4-chip:last-child{margin-left:auto}
/* 外觀 (我的): システムに合わせる is wider than its option; the name shrinks to fit (FIT in meow-i18n.js). */
html.i18n-intl .v4th-mode-name{max-width:100%;overflow:hidden;white-space:nowrap}
@media(max-width:350px){html.i18n-intl .v4th-mode-name{font-size:12px}}
/* 我的 › 通知 and other setting rows: the grey line under a row's name (Next: Tomorrow 14:00 (Evening)) is longer in
   other languages; it wraps instead of ending in "…". */
html.v4.i18n-intl .v4pa-srow-text small,html.v4.i18n-intl .v4pa-srow-text b{white-space:normal}
/* 總覽 attendance and overtime cards: 25 scheduled ran 2 px past the card on a 375 pt phone in English; it wraps. */
html.v4.i18n-intl .v4-ring-row>span{min-width:0}
html.v4.i18n-intl .v4-ring-row .v4-mini{white-space:normal}
/* Plans: the longer words of these languages keep clear of the cat, which is 121 px wide from the card's edge (82 on narrow phones). */
html.v4.i18n-intl .v4pl-hero-desc{padding-right:112px}
@media (max-width:379.98px){html.v4.i18n-intl .v4pl-hero-desc{padding-right:68px}}
/* 給与: 給与明細チェック with its Pro tag fills the middle tab in Japanese. */
html.v4.i18n-ja #v4-salary .v4-seg>button{font-size:11px;letter-spacing:0;padding-left:2px;padding-right:2px}
