/* Main typeface for the whole app: IBM Plex Sans Thai (OFL, self-hosted in /fonts so CSP style-src 'self' allows it; Thai and Latin
   subsets, 400–700). The synced theme names 'Prompt' but never loads it, so browsers fell back to Segoe UI / Leelawadee UI.
   Weights 300 and below resolve to 400 (lightest face shipped). Emails, PDFs and report previews keep their own fonts. */
@font-face { font-family:'IBM Plex Sans Thai'; font-style:normal; font-weight:400; font-display:swap; src:url('/fonts/ibm-plex-sans-thai/ibm-plex-sans-thai-thai-400-normal.woff2') format('woff2'); unicode-range:U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family:'IBM Plex Sans Thai'; font-style:normal; font-weight:500; font-display:swap; src:url('/fonts/ibm-plex-sans-thai/ibm-plex-sans-thai-thai-500-normal.woff2') format('woff2'); unicode-range:U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family:'IBM Plex Sans Thai'; font-style:normal; font-weight:600; font-display:swap; src:url('/fonts/ibm-plex-sans-thai/ibm-plex-sans-thai-thai-600-normal.woff2') format('woff2'); unicode-range:U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family:'IBM Plex Sans Thai'; font-style:normal; font-weight:700; font-display:swap; src:url('/fonts/ibm-plex-sans-thai/ibm-plex-sans-thai-thai-700-normal.woff2') format('woff2'); unicode-range:U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family:'IBM Plex Sans Thai'; font-style:normal; font-weight:400; font-display:swap; src:url('/fonts/ibm-plex-sans-thai/ibm-plex-sans-thai-latin-400-normal.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'IBM Plex Sans Thai'; font-style:normal; font-weight:500; font-display:swap; src:url('/fonts/ibm-plex-sans-thai/ibm-plex-sans-thai-latin-500-normal.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'IBM Plex Sans Thai'; font-style:normal; font-weight:600; font-display:swap; src:url('/fonts/ibm-plex-sans-thai/ibm-plex-sans-thai-latin-600-normal.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'IBM Plex Sans Thai'; font-style:normal; font-weight:700; font-display:swap; src:url('/fonts/ibm-plex-sans-thai/ibm-plex-sans-thai-latin-700-normal.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root:root { --font-sans:'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', 'Leelawadee UI', Roboto, Arial, sans-serif; --default-font-family:var(--font-sans); }
/* CKN Works readability: scale rem-based text and controls together. */
html {
    font-size: 112.5%;
}
/* Shared white register layout for Projects and MA. */
/* Keep document print sizing unchanged. */
@media print {
    html {
        font-size: 100%;
    }
}
[data-test="organization-order-row"][draggable="true"] {
    cursor: grab;
}
[data-test="organization-order-row"][draggable="true"]:active {
    cursor: grabbing;
}
/* Keep all customer detail sections visible on narrow screens. */
.customer-view-tabs [role="tablist"] {
    flex-wrap: wrap;
}
/* Language selection belongs to this app; shared themes stay in sync. */
/* Customer Portal: the name in the rail is a link to บัญชีของฉัน (src/apps/index.ts). */
.ckn-header { gap: .75rem; }
.ckn-header-title { min-width: 0; }
@media (max-width: 480px) {
    .ckn-header { gap: .5rem; }
    .ckn-header-title { flex: 1 1 auto; min-width: 4.5rem; }
}
/* Rail text the synced theme draws too faint (2.5–3.9:1 on the rail): lifted to ≥4.5:1 here, the theme stays in sync.
   Thai section labels lose the uppercase tracking: spacing splits Thai vowels and tone marks from their consonant. */
.ckn-nav-section { color: rgb(var(--rail-rgb) / .64); }
.ckn-nav-section:lang(th) { letter-spacing: 0; font-size: .6875rem; }
.ckn-user-role { color: rgb(var(--rail-rgb) / .64); }
.ckn-nav-search-input::placeholder { color: rgb(var(--rail-rgb) / .66); }
/* The active item already has a tint and weight; the inset side stripe repeated it. */
.ckn-nav-item.active { box-shadow: none; }
.ckn-header-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A drawer mounted in the sticky header must escape the header's lower stacking level. */
/* Keep the chat composer visible while the conversation scrolls independently. */
/* Right-edge chat panel. The native top layer also keeps it usable above open forms. */
/* Content projection can introduce a wrapper; it must also participate in the bounded flex layout. */
@keyframes works-assistant-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
/* Conversation-focused Assistant: quiet answers, user bubbles and one integrated composer. */
/* Markdown stays readable inside a narrow chat, including Thai text and wide tables/code. */
/* File toolbars align buttons with the input edge, excluding the shared field bottom margin. */
[data-test="file-documents-panel"] .items-end [data-part="root"] { margin-bottom: 0; }
/* Customer reports (design 0075): review first — what needs a person, then one row per schedule per period. */
/* Hidden views/loading hosts must not create gaps between page sections. */
/* Company knowledge library and safe Markdown reader. */
/* Case fields from customer issue workbooks. */
/* Callback-only layout; the shared authentication theme stays in sync. */
.ckn-auth-body:has(.works-oauth-callback) {
    background: radial-gradient(ellipse at 50% 0%, #fbeeee 0, transparent 55%), #f7f8fa;
    min-height: 100dvh;
}
.ckn-auth-shell:has(.works-oauth-callback) {
    background: transparent;
    gap: 0;
    width: min(100%, 28rem);
    padding: 2rem 1.25rem;
    margin-inline: auto;
}
.ckn-auth-shell:has(.works-oauth-callback) .ckn-auth-brand {
    margin-bottom: 1.75rem;
}
.ckn-auth-card:has(.works-oauth-callback) {
    border: 1px solid #e6e8ed;
    border-radius: 1.25rem;
    padding: 2.25rem 2rem 1.5rem;
    box-shadow: 0 12px 40px -16px rgb(28 32 40 / 18%);
    background: #fff;
}
.works-oauth-callback { text-align: center; }
.works-oauth-status-icon {
    display: flex; align-items: center; justify-content: center;
    width: 3.25rem; height: 3.25rem; margin: 0 auto 1.25rem;
    border: 1px solid #f0d6d6; border-radius: 1rem;
    background: #fff4f4; color: #a71919; font-size: 1.35rem;
}
.works-oauth-eyebrow { margin: 0 0 .6rem; color: #8a6060; font-size: .65rem; font-weight: 600; letter-spacing: .15em; }
.works-oauth-heading { margin: 0; color: #202126; font-size: 1.4rem; line-height: 1.4; font-weight: 650; text-wrap: balance; }
.works-oauth-message { margin: .85rem 0 1.5rem; color: #697180; font-size: .875rem; line-height: 1.8; text-wrap: pretty; overflow-wrap: anywhere; }
.works-oauth-actions { display: flex; }
.works-oauth-actions > * { flex: 1; }
.works-oauth-actions [data-part="root"],
.works-oauth-actions a,
.works-oauth-actions button { width: 100%; justify-content: center; }
.works-oauth-footnote { margin: 1.75rem 0 0; padding-top: 1.1rem; border-top: 1px solid #eef0f3; color: #8b919c; font-size: .7rem; line-height: 1.6; }
@media (max-width: 480px) {
    .ckn-auth-card:has(.works-oauth-callback) { padding: 1.75rem 1.25rem 1.25rem; }
    .works-oauth-heading { font-size: 1.25rem; }
}
/* Keep the Case editor tab strip within narrow modal viewports. */
/* A file drag over the Assistant queues attachments through the normal picker validation. */
/* Case workspace: primary issue first, operational context alongside it. */
.ticket-workspace { width: 100%; max-width: none; margin: 0; min-width: 0; color: #202329; }
.ticket-workspace #ticketTabs { display: block; max-width: 100%; overflow-x: auto; margin-bottom: 1rem; }
.ticket-workspace #ticketTabs [role=tablist] { flex-wrap: nowrap; min-width: max-content; }
/* Progress strip on the ticket page: New > On Process > Wait for Test > Wait for Confirm > Done (display only). */
.flow-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
@media (max-width: 640px) {
    .flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ticket-workspace [data-test=tk-description] p { color: #384151; font-size: .94rem; line-height: 1.85; overflow-wrap: anywhere; }
.ticket-workspace [data-test=tk-latest] li { line-height: 1.65; overflow-wrap: anywhere; }
.ticket-workspace [data-test=tk-details],
.ticket-workspace [data-test=tk-service] { font-size: .83rem; overflow-wrap: anywhere; }
.ticket-workspace [data-test=tk-timeline],
.ticket-workspace [data-test=tk-composer] { width: 100%; max-width: none; margin-left: 0; margin-right: 0; scroll-margin-top: 1rem; }
.ticket-workspace [data-test=tk-timeline] li { line-height: 1.75; overflow-wrap: anywhere; }
/* Root-only account switch, owned by Works rather than the shared shell. */
/* Mobile browsers: 92vh is taller than the visible area (address bar, system bar), so a long dialog's
   bottom buttons could not be scrolled into view. dvh follows the visible viewport. */
/* Filter / search / action row: inputs, selects and buttons share one height and sit on one baseline. */
select,
ckn-button :is(button, a)) { box-sizing: border-box; height: 2.5rem; min-height: 2.5rem; }
/* Repository pages: header, cards, copy rows, breadcrumbs. */
ckn-button :is(button, a)) { box-sizing: border-box; height: 2.5rem; min-height: 2.5rem; }
/* Toolbars: search and filters first, action buttons last (and at the right). ckn-table projects its
   toolbar slot before its search box, so the search is moved to the front here. */
ckn-table [data-part="tools"] { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; width: 100%; }
ckn-table [data-part="tools"] [data-part="search"] { order: -1; flex: 1 1 16rem; min-width: 0; }
ckn-table [data-part="tools"] > ckn-content > [slot="toolbar"] { margin-left: auto; }
/* Ticket pages (OPE-020): every button is at least 40x40px to click, in the register (incl. its
   dialog, which stays inside the page's DOM) and on the ticket page. The host tags do not survive in
   the DOM, so the hooks are the template roots' own classes: .tickets-root and .ticket-workspace. */
:is(.tickets-root, .ticket-workspace) :is([data-part="search"] input, [data-part="sizeSelect"]) { box-sizing: border-box; min-height: 2.5rem; }
.tickets-root [data-part="actionButton"] { padding-inline: .625rem; white-space: nowrap; }
/* Long unbroken text (a 194-character title) must wrap inside its cell, card or page, not push the
   table wide or run through the edge. The title column is capped so the other columns keep room. */
.ticket-workspace { overflow-wrap: anywhere; word-break: break-word; }
.tickets-root :is([data-part="card"], [data-part="cardTitle"], [data-part="cardDescription"]) { min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
/* Customer portal Tickets: "waiting for you" is yellow everywhere on the page (status badge, "waiting on" badge and
   its stat card dot). The ckn theme has no yellow tone, so the page maps it to badge tone `pend` and stat tone
   `neutral`, used for nothing else there, and only those are recoloured here. */
/* Ticket status tone `pend` (design 0074 part 2: "waiting on the customer") is the same yellow on staff pages, in the
   ticket status settings and on the portal, so one status has one colour everywhere. */
[data-test="portal-cases"] [data-part="badge"][class*="--badge-bg:transparent"] { --badge-bg: #FDE047; --badge-fg: var(--color-ink); --badge-shadow: none; }
[data-test="portal-case-stats"] [data-part="dot"].bg-g3 { background-color: #FACC15; }
/* ── Tickets list in the prototype's style ("CKN Works Prototype", Tickets page): header actions, New banner,
   filter chips with counts, project filter, a five-column work list (Case ID · subject · assignee ·
   status/waiting on · commit). Scoped to .tkl so the table view and the dialog keep the standard theme. */
/* Ticket status pills, soft ("F", 2026-11-21): a light fill and deep text of the status's colour family, a dot and an edge in
   its chart colour (--st-dot = TONE_COLOR in src/helper/ticket/status-catalog.ts: keep in step), the edge dashed for a
   family's light shade (Waiting: deploy / test, Closed) so the two statuses of one family stay apart. */
/* Tickets list (design A1): Case ID · Case Type · Customer · Subject · PIC · Status · Commit, plus the focus cards above it. */
/* A long status name ("ปิดเคสอัตโนมัติภายใน 3 วัน") wraps inside its 150px column instead of running over the next one. */
@media (max-width:1000px) {
    :nth-child(3),
    :nth-child(5)) { display:none; }
}
/* ── Ticket detail in the prototype's style: header card (number, pills, title, progress, banner), then a work column
   (next step, activity) beside a facts column (files, people, time and KPI, ticket details). Uses the .tkl tokens above. */
/* Next step as the prototype draws it: a task per step (tick · label · owner · Step n · action), extra actions, then the action form. */
/* ── merged: newticket (prototype restyle) ── */
/* ── New-ticket dialog in the prototype's style ("เปิด ticket ใหม่"): an info note, paired fields, subject and details,
   attachments in the form, request time folded away, "more details" for the rest. Uses the .tkl tokens. */
/* ── merged: home (prototype restyle) ── */
/* ── Home: what to work on now (design 2026-11-25). One panel of my tickets with tabs, then the queue nobody has taken.
   Colour carries time only: red overdue, amber today/tomorrow; everything else is ink and grey. Uses the .tkl tokens. */
/* Lead (Operation Admin): three "to decide" cards side by side, team load below. */
/* ── merged: portal (prototype restyle) ── */
/* ── Customer Portal in the prototype's customer view (cHome / cTicket / cNewPage): greeting, waiting banner, tiles,
   a four-column ticket list, and the ticket page with a four-step strip. Builds on the .tkl / .tkv classes above. */
/* Portal · Tickets: what waits on the customer (at most three), the status filter as one segmented control, then the list. */
/* Way back to the Tickets list from เปิด Ticket and from one Ticket: a real button-sized target, not a small crumb. */
/* Used on staff pages too (outside .tkl), hence the fallbacks. */
/* Portal · เปิด Ticket: one card in two numbered sections on the same edges (two equal columns, then full-width fields), then send. */
/* ── merged: settings (prototype restyle) ── */
/* ── Ticket settings in the prototype's style (ticket-type settings): table-like cards per group beside a note card.
   Builds on the .tkl / .tkv tokens above; everything new is prefixed tks-. */
/* Toolbar: drop the form/tab default bottom margins so the search box and filter pills share one centre line. */
/* Status dialog, step 3: one question per row, answers as a segmented control on the right. */
/* The theme gives the "buttons" radio variant no selected look; show the chosen answer filled. */
/* Flow tab and the Edit dialog's flow lines: "event (condition) → status". */
/* ── merged: reports (prototype restyle) ── */
/* ── Customer reports (/reports/auto) in the prototype's style ("รายงานลูกค้า"): title with a Weekly / Monthly switch,
   customer and period pickers, a banner per report, the document card, the PDF on paper, and the latest-status table.
   Uses the .tkl / .tkv tokens and classes defined for the Tickets pages. */
/* Portal side lists read left to right, not as label/value pairs. */
/* Customer reports reader: the frozen PDF drawn as page images (works without a browser PDF viewer). */
/* Customer reports: the SUMMARY editor above the report pages (design 0078). */
/* ── merged: reports pickers and history tab ── */
/* Customer reports: customer -> Weekly/Monthly pickers, tabs, and the sent-report history. */
/* ── merged: report pickers by customer, month and week ── */
/* Customer reports: customer -> Weekly/Monthly -> project schedule -> month (-> week), and the create / no-schedule cards. */
/* ── Customer reports workspace (design "A + B", 2026-11-21): the report list on the left, the document in the middle, the
   edits and the approve button on the right, each scrolling on its own, so the page fits one screen. Stacks on narrow screens. ── */
/* Sized by the reader's own width (the app sidebar takes 220-270px), not the viewport: see the @container rules below. */
/* The workspace grows with its content and the page scrolls (no scrolling box inside it); clip, not hidden, so the
   list, the paper and the approve bar can stick while the page scrolls. */
/* A row: the name (up to two lines) with its status pill, then the period and any warning on a full-width line. */
/* One quiet line under the title (the pill beside the name already shows the status), so the document keeps the height. */
/* Whole page in view: the pane is a size container, so each page image is capped at its height (minus the padding).
   Stacked layouts (below) have no fixed pane height: there 100cqh falls back to the viewport height. */
/* A page enlarged over the whole window (click a page): every page at the chosen width (480-960px), scrolls; click or Esc closes.
   It sits outside .tkr: a container-query box would make position:fixed relative to it, not to the window. */
/* The size controls sit outside the overlay, so pressing them does not close it. */
/* Whole page: each page is a box of its own proportions (--ar: width / height), no taller than the pane. */
/* A period with no report yet: the review layout with a blank sheet where the pages go (2026-11-21). */
/* Design A (2026-11-21): one toolbar on the report title row. ‹ waiting n/N › is one grouped control. */
/* The edits: flat sections split by a rule (no box in a box); quiet save buttons, enabled once something changed. */
/* The list (as a column) and the approve bar stay in view while the page scrolls. */
/* The app's scrolling body keeps 3rem of padding at the bottom, and sticky stops that far above the window edge, which
   left the approve bar floating with the edits showing under it: this page drops that padding (keeping a small gap). */
/* The list folds away (☰): the middle then takes its width. Two sizes decide the layout:
   reader width R (beside the app sidebar): list 280 at >= 1360, 240 below, one column below 820;
   middle width M (what is left): edits 380 at >= 1100, 320 below, and below 960 the edits go under the document
   in one scroll with the approve bar stuck to the bottom, so the document never drops under ~640px. */
/* Narrow screens: the open list slides over the document instead of squeezing it; the scrim closes it. */
/* Starts under the button row, so the customer-name button stays clickable and closes the list again. */
/* The report title is the switcher: click the customer to open the list. */
/* The customer name is the way to switch report: drawn as a select-like button so it reads as clickable. */
/* "Whole page" with room beside it: the title row spans both columns, the paper column is one page wide (--tkr-page-w,
   measured in fitPage), and the edits take the rest. Stacked layouts keep the document above the edits. */
/* ── อีเมล (Outlook) (mail-page.ts, prototype pInbox): tabs and list on the left, the reader on the right. Uses the .tkl tokens. ── */
.mrow:focus-visible { outline:2px solid var(--tk-brand); outline-offset:-2px; }
.mrow { display:grid; grid-template-columns:34px minmax(0,1fr); gap:10px; width:100%; text-align:left; border:0; border-bottom:1px solid var(--tk-line); background:none; padding:12px 14px; cursor:pointer; color:inherit; position:relative; font:inherit; }
.mrow:hover { background:var(--tk-surface-2); }
.mrow.on { background:var(--tk-brand-soft); }
.mrow.unread::before { content:""; position:absolute; left:5px; top:20px; width:6px; height:6px; border-radius:50%; background:var(--tk-info); }
.mread { overflow-y:auto; min-height:0; padding:22px 26px; display:flex; flex-direction:column; gap:16px; }
@media (max-width:900px) {
    .mread { padding:18px; }
}
/* ── ทีมและภาระงาน + รายงาน SLA / KPI (team-workload-page.ts, sla-report-page.ts; prototype pTeam / pReports). Uses the .tkl tokens. ── */
.sla-month { min-width:12rem; margin:0; }
.sla-tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:12px; }
/* ── Bell drawer การแจ้งเตือน (notification-bell.ts, prototype bell / .drawer / .todo). The drawer carries .tkl for the tokens. ── */
/* ── CR form: man-day per Short Form line, total = sum (crs-page.ts). ── */
.cr-effort { display:flex; flex-direction:column; gap:6px; }
/* ── Report review: Remark per case, editable for one report (report-automation-page.ts, migration 0101). ── */
/* Team workload per project team (2026-11-20): tabs, approval cards, per-ticket hand-over rows. */
/* Customer Portal: "เปิด Ticket ใหม่" is the main action, set apart from the section tabs (2026-11-20). */
/* SLA / KPI charts drawn with plain elements (sla-report-page.ts; prototype barsSvg / pie, its colours). */
/* Ticket replies: who owes the next message, seen at a glance. */
/* Staff list: the customer wrote last and nobody has answered. */
/* Staff ticket: the "customer replied" banner and the three kinds of message in the activity list. */
/* Staff ticket activity as a chat: the customer left (orange), the team right, internal notes dashed, changes as centred lines. */
/* pre-wrap is for the typed text only: inherited, it turns the file box's template whitespace into tall blank lines. */
/* In a message a picture speaks for itself: drop its file-name line (the name stays as the thumbnail's tooltip); PDFs keep theirs. */
/* Pictures in a message: the picture at its own shape, rounded, like a chat app; click still opens the full size. */
/* The box's empty label row and list margin would leave a gap under the sender line. */
/* Room for the rounded corner and shadow: the scrolling list clips anything flush with its edge. */
/* A message of pictures only: no bubble frame, just the pictures. */
/* ── Activity chat, DM style (2026-11-26): stamps between groups, joined pill bubbles, amber + lock = internal ── */
/* Composer: two tabs on the box's top edge; a bottom bar of fixed height holds the mode's note or option, so nothing moves */
/* Portal conversation, same DM style */
/* Customer portal: banner, then the conversation as a chat (yours right, the team's left, status lines centred). */
/* Portal · one Ticket: the conversation and the reply box are one card, the box docked under the messages. */
/* The reply box as a chat input: paperclip · text · send in one row; attached files show as thumbnails under it. */
/* One rounded input box holding paperclip · text · send, as in a chat app; the box shows focus, the parts inside have no borders. */
/* Team side · one Ticket: the reply box above the same chat input: reply type as a segmented switch, a one-line hint, then the input. */
/* Only the thumbnails of the attachment box: its own label row and drop zone stay hidden (Ctrl+V still pastes). */
/* Report title block (2026-11-21): two lines — [customer ▾] status … toolbar / project · period · state —
   and every toolbar control the same 36px height, centred on the title row. */
/* T2 (2026-11-21): "waiting for you" is its own bar above the report; the title row keeps only this report's tools. */
/* No report yet: the title block spans paper and edits too, as on a report (whole-page layout). */
/* ── Customer reports landing (2026-11-23, design 3 "สิ่งที่ต้องทำวันนี้"): what waits on a person; a report opens the reader ── */
/* Operation dashboard scorecard (operations-page.ts): ring vs target, outcome bar, legend dots. */
/* Operation dashboard: denser queue and workload lists (this page only). */
/* Status tiles: number beside its label, one short row each. */
/* Customer news ("ข่าวสาร redesign" canvas, 2026-11-25): portal feed, article, staff list and composer. Own tokens
   on .nw in the site palette; the font stays the theme's. Category tone: --nw-dot colours the dot, --nw-ink the label. */
.nw-ico { width:14px; height:14px; flex:none; }
.nw-ico-fill { fill:currentColor; }
.nw-ico-line { fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
/* Raised surfaces (design 6A): a soft two-layer shadow lifts every card off the grey page; borders stay thin. */
/* Masthead + segmented controls (shared). */
/* Live dot: a ring that keeps spreading out (ease-out, 2s). With reduced motion it only breathes in opacity, no movement. */
@keyframes nw-live { from { transform:scale(1); opacity:.6; } 75%, to { transform:scale(3); opacity:0; } }
@keyframes nw-breathe { 50% { opacity:.45; } }
/* One line while there is room (menu open included): the search field gives up width first. */
/* Portal feed. */
/* Each news item is its own card with air between them; the day header above still groups them. */
/* The rail keeps its own scroll, so service status and holidays stay reachable however long the feed is. */
/* Arrived here from "follow the status": the notice glows twice, then settles (colour only, so it also reads with reduced motion). */
@keyframes nw-flash {
  0% { background:#fee2e2; box-shadow:0 0 0 0 rgba(220,43,43,.45); }
  25% { background:#fee2e2; box-shadow:0 0 0 6px rgba(220,43,43,0); }
  40% { background:#fef2f2; box-shadow:0 0 0 0 rgba(220,43,43,.35); }
  65% { background:#fef2f2; box-shadow:0 0 0 6px rgba(220,43,43,0); }
  100% { background:transparent; box-shadow:none; }
}
/* Article. */
/* Staff list. */
/* Rows: a clear 1px rule between them, a little more height, and a hover tint so the eye can follow one row across. */
/* Composer. */
/* Staff: service status tab (design 7, toned down). */
/* Past and cancelled notices: full-width rows (state, title and who, window), ruled like the news table. */
/* Staff: company holidays tab (design 8). */
/* Staff: service-status composer. */
/* Holiday import and downtime tabs of the staff page (rows inside .tkl lists). */
/* Proportions follow the space the page really has (the left menu is usually kept open), not the window: .nw is a size
   container. Wide: content caps at 1280px and centres. Medium: rails drop under the main column as a two-up grid. */
/* Lift for every surface of the news pages (feed, staff desk, composers) so nothing melts into the grey page. */
/* Customer Portal › สัญญา MA (portal-page.ts, section "ma"): one card per agreement. */
/* MA email preview read back from the editable text (ma-page.ts buildMailPreview): consecutive fact rows form one table. */
/* New ticket page (tickets-page.ts, design "A1"): one centred card, three plain sections, compact controls. */
/* Customer portal news v3 (canvas "P2 แก้ 3–10 + 1A + ไอคอน/2A"): one column, incident card, pinned three-week strip, monthly
   feed whose rows lead with a highlight token or the category icon. Palette from the P2 draft, scoped to .nw3; the font stays the theme's. */
/* incident */
/* pinned: runway + rows */
/* feed */
/* v3: the strip's marks open their item; the holiday dialog reuses the month calendar. */
/* News pages only (staff and customer): dialogs open in the middle of the screen; long ones still scroll inside max-height. */
/* v3 feed: hover turns the headline brand red instead of underlining it; the month heading reads as a heading. */
/* "Load more" appends rows above the button: keep the browser from anchoring on the button (which scrolls the page along). */
/* v3 depth pass (canvas "การ์ดเหตุขัดข้อง · เพิ่มความลึก"): four levels only. 0 page · 1 cards · 2 controls · 3 menus/dialogs. */
/* Staff news pages (จัดการข่าวสาร, เขียนข่าว, แจ้งสถานะบริการ): the same four depth levels in the staff palette. */
/* News pages, inner elements: what you press is raised, what you type into is sunk. */
/* Fields sink into their panel; the borderless title and the Markdown source pane stay flat. */
/* Sub-panels inside a card sink a level: the timeline "add update" box and the unsaved-draft notice. */
/* Composer title: a real field with a frame (it was a bare underline), still large. */
/* Staff lists: hovering a row tints it and turns the headline brand red, like the customer feed. */
/* Status pills: framed so they read on any background, and centred on the heading line in the composer bars. */
/* Incident card, compact footer: the times on one line beside the actions; the card itself opens the details. */
/* Incident card: services sit on the impact line ("กระทบบางส่วนที่ Outlook · Teams"); the right side carries the latest progress. */
/* Minor incident: the whole row opens the details. */
/* Right side of the incident card = the notice's details, stretched to the height of the text beside it. */
/* Two columns over the whole card: text and actions on the left, the details panel on the right from top to bottom. */
/* Incident card: the right column is the notice text itself (Markdown), from top to bottom; times sit on the left under the title. */
/* (reverted) Notice text back under the title; the right column is the details list of times, stretched full height. */
/* Left column shows the full notice text (Markdown), filling the space beside the details panel; very long text is cut and opens in the dialog. */
/* Details panel as a two-column grid so the card is no taller than its text; provider spans the full width. */
/* (user) No details panel: the notice text runs the full width of the card; times are one short line beside the buttons. */
/* (user) Times on the left, buttons on the right. */
/* MA page status filter tiles (its own copy: the home page's .tkh-tile it used to borrow was removed in the home restyle). Uses the .tkl tokens. */
/* MA email template: the To addresses as removable chips, with a box to add more. */
/* Org admin › สมาชิก → ลูกค้า: one row per member (or customer); the other side as chips, the picked one opens below */
/* Ticket view, one urgency signal (2026-11-26): the header sits on the page without a card, the stepper keeps one row and a
   neutral "you are here" (red is kept for lateness), the banner heads the next-step card, and the facts rail drops its cards. */
ol.flow-steps { list-style:none; margin-left:0; margin-right:0; padding:0; }
/* Ticket view, design 8 (2026-11-26): a status rail on the left, then the page reads in order of importance —
   the brief (what is late and the one thing to do), the case facts in three columns, the chat kept smaller, files, history. */
/* Design 8 spacing: room between the parts, but the app's own type scale (its rem is already large). */
/* Design 8 fact columns, as the mock draws them: three equal columns of label | value rows on hairlines. */
/* Design 8 status rail: each dot in its status colour (the same tone as the status pills), and a line that joins the
   steps already passed down to the current one, each stretch in the colour of the step it reaches; ahead stays grey. */
/* The coloured stretch leaves a passed step in that step's colour (เปิด red → down to the next), drawn over the grey line. */
/* Solid connector: no grey line under a coloured stretch, whole pixels, centred on the 6px dot axis. */
/* Same specificity as the grey rule above and later, so the grey stretch under a coloured one really goes. */
/* No halo round the current dot: it covered the ends of the lines meeting it. */
/* The composer sits in the card again (no sticky bar or shadow): with the shorter chat it only looked like it floated. */
/* Chat: a teammate's messages (not yours) on the left, in team colours, corners mirrored like the customer side. */
/* Portal: the "team sent an email" notice, a system line in the info tint so it reads apart from status changes. */
/* Repository pages ("Repository" canvas, 2026-11-26): register, code with README, commits with per-file diff, branches. Own tokens on .rp. */
.rp { --rp-ink:#171717; --rp-ink2:#374151; --rp-muted:#5b6170; --rp-faint:#6b7280; --rp-line:#e5e7eb; --rp-line2:#d1d5db; --rp-soft:#f3f4f6; --rp-row:#fafafa;
  --rp-brand:#991b1b; --rp-brand-soft:#fef2f2; --rp-brand-line:#fecaca; --rp-ok:#157f47; --rp-ok-soft:#ecfdf3; --rp-ok-line:#b7e4c7;
  --rp-info:#1d4ed8; --rp-info-soft:#eff6ff; --rp-warn:#b45309; --rp-warn-soft:#fff7ed;
  --rp-e1:0 1px 2px rgba(23,23,23,.06), 0 10px 28px -14px rgba(23,23,23,.22); --rp-e2:0 1px 1px rgba(23,23,23,.08), 0 3px 8px -3px rgba(23,23,23,.16);
  --rp-mono:"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color:var(--rp-ink); font-size:.9rem; line-height:1.55; font-variant-numeric:tabular-nums; }
.rp :is(h1,h2,h3,p) { margin:0; }
.rp a { color:inherit; text-decoration:none; }
.rp pre,
.rp .sha,
.rp .code { font-family:var(--rp-mono); }
.rp a:focus-visible { outline:2px solid var(--rp-brand); outline-offset:2px; }
@keyframes rp-shimmer { from { background-position:100% 0; } to { background-position:-100% 0; } }
/* register */
/* repository header, tabs and layout */
/* tree */
/* readme and file */
.rp .rb :is(h1,h2) { font-size:1.25rem; color:var(--rp-ink); margin:18px 0 8px; padding-bottom:6px; border-bottom:1px solid var(--rp-line); }
.rp .rb :is(h1,h2):first-child { margin-top:0; }
.rp .rb h3 { font-size:1rem; color:var(--rp-ink); margin:16px 0 6px; }
.rp .rb p { margin:0 0 10px; }
.rp .rb a { color:var(--rp-brand); text-decoration:underline; }
.rp .rb pre { background:#0f172a; color:#e2e8f0; border-radius:10px; padding:12px 14px; font-size:.8rem; line-height:1.6; overflow:auto; margin:8px 0 12px; }
.rp .rb :not(pre) > code { background:var(--rp-soft); border-radius:5px; padding:1px 5px; font-size:.85em; }
.rp .rb table { border-collapse:collapse; margin:8px 0 12px; }
.rp .rb :is(th,td) { border:1px solid var(--rp-line); padding:5px 10px; }
/* aside */
/* states */
/* commits */
.rp .add { color:var(--rp-ok); font-weight:600; }
.rp .del { color:var(--rp-brand); font-weight:600; }
/* branches */
/* repository pull requests */
.rp .ck.ok { color:var(--rp-ok); }
.rp .ck.bad { color:var(--rp-brand); }
.rp .ck.run { color:var(--rp-warn); }
/* pull request: comments on a line of the diff */
/* repository settings and rulesets (design 0082) */
/* pull request merge box: ruleset results */
/* repository access and webhooks (design 0083) */
/* repository pages aligned with the design canvas (boards 2–7) */
.rp .hide { display:none !important; }
/* review round: flash, navigation bar, PR status strip, file history */
@keyframes rp-nav { from { left:-30%; } to { left:100%; } }
/* my work (design 0084) */
/* pull request threads, reviewers (design 0084) */
/* browsing: CI badges, blame, tags, downloads (design 0084) */
/* on-demand confirm dialog (repository-ui.ts) */
/* Icons inside buttons and links never take the click: the ckn-icon element swallows it, so icon-only buttons did nothing. */
.rp button ckn-icon,
.rp a ckn-icon,
.rp button svg,
.rp a svg { pointer-events:none; }
