@import "tailwindcss"; /* Content workspace: quiet surfaces, blue actions, readable publishing states. */ :root { --board: #eef8ff; --frame: #e0f2fe; --frame-2: #c2e3f6; --frame-edge: #b9dff4; --paper: #ffffff; --ink: #17243b; --ink-2: #4b5b73; --ink-3: #6c7c92; --ink-4: #8795a9; --line: #cfe6f5; --line-2: #e6f2fa; --m-yellow: #d99a15; --m-yellow-soft: #fff6df; --m-yellow-ink: #91620c; --m-blue: #0077b6; --m-blue-soft: #e0f2fe; --m-blue-ink: #075985; --m-green: #169b79; --m-green-soft: #e7f7f0; --m-green-ink: #107356; --m-red: #e05463; --m-red-soft: #fff0f1; --m-red-ink: #bd3041; /* reserved: the next post going out */ --signal: #0077b6; --signal-soft: #e0f2fe; --radius-card: 16px; --radius-ctl: 10px; --shadow-pin: 0 2px 6px rgba(23, 36, 59, 0.025); --shadow-lift: 0 8px 24px rgba(23, 36, 59, 0.08); } @theme inline { --font-sans: var(--font-anuphan), system-ui, sans-serif; --color-board: var(--board); --color-frame: var(--frame); --color-paper: var(--paper); --color-ink: var(--ink); --color-ink-2: var(--ink-2); --color-ink-3: var(--ink-3); --color-ink-4: var(--ink-4); --color-line: var(--line); --color-line-2: var(--line-2); --color-yellow: var(--m-yellow); --color-yellow-soft: var(--m-yellow-soft); --color-yellow-ink: var(--m-yellow-ink); --color-blue: var(--m-blue); --color-blue-soft: var(--m-blue-soft); --color-blue-ink: var(--m-blue-ink); --color-green: var(--m-green); --color-green-soft: var(--m-green-soft); --color-green-ink: var(--m-green-ink); --color-danger: var(--m-red); --color-danger-soft: var(--m-red-soft); --color-danger-ink: var(--m-red-ink); --color-signal: var(--signal); --color-signal-soft: var(--signal-soft); } /* Component classes live in a layer so Tailwind utilities (hidden, md:block, …) always win. */ @layer components { html { color-scheme: light; caret-color: var(--m-blue); -webkit-tap-highlight-color: transparent; scrollbar-color: var(--frame-edge) transparent; } body { min-height: 100vh; background: var(--board); color: var(--ink); font-family: var(--font-anuphan), system-ui, sans-serif; font-size: 15px; line-height: 1.55; } ::selection { background: var(--m-yellow-soft); color: var(--ink); } :focus-visible { outline: 2px solid var(--m-blue); outline-offset: 2px; } b, strong { font-weight: 600; } .num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; } /* ---------- frame + board ---------- */ .shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; } @media (max-width: 959px) { .shell { grid-template-columns: minmax(0, 1fr); } } /* Shared navigation remains visually quiet beside the publishing plan. */ .frame { position: sticky; top: 0; height: 100vh; overflow: hidden auto; display: flex; flex-direction: column; gap: 26px; padding: 28px 16px 20px; background: var(--frame); border-right: 1px solid var(--frame-edge); } @media (max-width: 959px) { .frame { position: fixed; inset: 0 auto 0 0; width: 288px; z-index: 50; transform: translateX(-100%); visibility: hidden; transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1); } .frame[data-open="true"] { transform: none; visibility: visible; } } .frame-label { font-size: 11px; color: var(--ink-3); padding: 0 10px; } .nav-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-ctl); color: var(--ink-2); transition: background 0.15s, color 0.15s; } .nav-item:hover { background: var(--board); color: var(--ink); } .nav-item[aria-current="page"] { background: var(--m-blue); color: #fff; font-weight: 600; } .nav-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--m-yellow-soft); color: var(--m-yellow-ink); font-size: 12px; font-weight: 600; display: grid; place-items: center; } .page-tag { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px 6px 6px; border-radius: 12px; background: var(--board); border: 1px solid var(--line); text-align: left; } .page-tag:hover { border-color: var(--frame-edge); } .board { position: relative; min-width: 0; background-color: var(--board); } .workspace-bar { height: 72px; padding: 0 36px; align-items: center; background: #f0f9ff; border-bottom: 1px solid var(--line); } .page-body { padding: 32px 36px 48px; display: flex; flex-direction: column; gap: 24px; max-width: 1600px; margin: 0 auto; } @media (max-width: 959px) { .page-body { padding: 16px 14px calc(96px + env(safe-area-inset-bottom)); gap: 16px; } } .page-titlebar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; } .page-titlebar h1 { font-size: 28px; font-weight: 700; line-height: 1.4; } .page-titlebar p { color: var(--ink-3); margin-top: 6px; font-size: 13px; } .welcome-panel { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; padding: 42px; background: #e0f2fe; border: 1px solid #bae6fd; border-radius: 20px; align-items: center; } .welcome-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; } .welcome-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid #bae6fd; background: #ffffffa6; color: var(--m-blue-ink); border-radius: 999px; font-size: 11px; font-weight: 500; } .welcome-copy h2, .login-story h2 { font-size: clamp(28px, 3.1vw, 42px); font-weight: 700; line-height: 1.5; } .welcome-copy > p, .login-story > p { font-size: 14px; color: var(--ink-2); line-height: 1.9; } .workflow-preview { padding: 24px; background: var(--paper); border: 1px solid #cfe6f5; border-radius: 16px; box-shadow: 0 12px 30px #385d9b0a; } .workflow-step { display: flex; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-2); } .workflow-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; } .workflow-step h3 { font-size: 13px; font-weight: 600; } .workflow-step p { font-size: 11px; color: var(--ink-3); margin-top: 3px; } .setup-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .setup-step { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; } .setup-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--board); color: var(--m-blue); display: grid; place-items: center; } .setup-step h3 { font-size: 15px; font-weight: 600; } .setup-step p { color: var(--ink-3); font-size: 12px; line-height: 1.8; margin-top: 7px; } .login-page { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 20px; } .login-layout { display: grid; grid-template-columns: 1.1fr 1fr; max-width: 960px; width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 60px #17243b06; overflow: hidden; } .login-story { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 48px 40px; background: #e0f2fe; } .login-story h2 { font-size: 36px; } .login-flow { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink-4); margin-top: 8px; } .login-flow > span { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 12px; border: 1px solid #bae6fd; border-radius: 12px; background: #ffffffbb; color: var(--m-blue-ink); font-size: 12px; flex: 1; } .login-form { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 48px 40px; min-width: 0; } .login-form .input { height: 46px; } .login-divider { display: flex; align-items: center; gap: 12px; color: var(--ink-4); font-size: 12px; } .login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); } @media (max-width: 1199px) { .welcome-panel { padding: 28px; gap: 24px; } .workflow-preview { padding: 18px; } } @media (max-width: 767px) { .welcome-panel { grid-template-columns: minmax(0, 1fr); padding: 24px; } .setup-steps { grid-template-columns: minmax(0, 1fr); gap: 12px; } .setup-step { padding: 20px; } .login-layout { grid-template-columns: minmax(0, 1fr); max-width: 440px; } .login-story { display: none; } .login-form { padding: 32px 24px; } } @media (max-width: 959px) { .page-titlebar h1 { font-size: 23px; } } .section-label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 15px; font-weight: 600; } /* ---------- paper ---------- */ .card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-pin); min-width: 0; } .card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); background: #f0f9ff; border-radius: var(--radius-card) var(--radius-card) 0 0; } .card-head h2 { font-size: 16px; font-weight: 700; line-height: 1.3; } .card-body { padding: 16px 18px; } @media (max-width: 959px) { .card-head { padding: 12px 14px; } .card-body { padding: 14px; } } /* Flat status indicators always accompany a readable label. */ .magnet { --m: var(--ink); display: inline-block; flex-shrink: 0; width: 14px; height: 14px; border-radius: 999px; background: var(--m); } .magnet-lg { width: 20px; height: 20px; } .magnet-draft { --m: var(--ink-4); } .magnet-pending { --m: var(--m-yellow); } .magnet-scheduled { --m: var(--m-blue); } .magnet-approved, .magnet-published { --m: var(--m-green); } .magnet-failed { --m: var(--m-red); } .magnet-cancelled { --m: var(--ink-4); } /* Reused by both the weekly lanes and the unscheduled queue. */ .post-card { position: relative; display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pin); transition: box-shadow 0.18s, transform 0.18s; } .post-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); } .post-card[data-dragging="true"] { opacity: 0.45; } .post-card[data-next="true"] { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal), var(--shadow-pin); } .plan-date { position: relative; border-top: 1px solid var(--line-2); padding-top: 8px; margin-top: 10px; } .plan-date summary { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); cursor: pointer; list-style: none; min-height: 28px; } .plan-date summary::-webkit-details-marker { display: none; } .plan-date summary:hover { color: var(--m-blue); } .plan-date[open] { z-index: 5; } .plan-date-popover { position: absolute; right: 0; bottom: calc(100% + 4px); width: 240px; max-width: calc(100vw - 48px); padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lift); } .next-flag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; background: var(--signal-soft); color: var(--signal); font-weight: 600; font-size: 12px; } /* ---------- controls ---------- */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-ctl); font-weight: 600; white-space: nowrap; border: 1px solid transparent; transition: background 0.15s, box-shadow 0.15s, border-color 0.15s, transform 0.1s; cursor: pointer; } .btn:active:not(:disabled) { transform: translateY(1px); } .btn:disabled { opacity: 0.45; cursor: not-allowed; } .btn-sm { height: 34px; padding: 0 12px; font-size: 14px; } .btn-lg { height: 48px; padding: 0 22px; font-size: 16px; } .btn-primary { background: var(--m-blue); color: #fff; box-shadow: 0 3px 6px rgba(0, 119, 182, 0.16); } .btn-primary:hover:not(:disabled) { background: var(--m-blue-ink); } .btn-success { background: var(--m-green); color: #fff; box-shadow: 0 8px 16px -10px rgba(29, 154, 86, 0.8); } .btn-success:hover:not(:disabled) { background: var(--m-green-ink); } .btn-ghost { background: var(--paper); border-color: var(--line); color: var(--ink); } .btn-ghost:hover:not(:disabled) { border-color: var(--ink-3); } .btn-danger { background: var(--paper); border-color: var(--m-red-soft); color: var(--m-red-ink); } .btn-danger:hover:not(:disabled) { background: var(--m-red-soft); } /* Kept for pages that still place an action in the title row. */ .btn-on-band { background: var(--m-blue); color: #fff; } .btn-on-band:hover:not(:disabled) { background: var(--m-blue-ink); } .field { display: flex; flex-direction: column; gap: 6px; } .field > span { font-size: 13px; font-weight: 500; color: var(--ink-2); } .input, .select, .textarea { width: 100%; height: 42px; padding: 0 12px; border-radius: var(--radius-ctl); background: var(--paper); border: 1px solid var(--line); color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; } .textarea { height: auto; min-height: 140px; padding: 12px; resize: vertical; line-height: 1.6; } .input:hover, .select:hover, .textarea:hover { border-color: var(--ink-4); } .input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--m-blue); box-shadow: 0 0 0 3px var(--m-blue-soft); } .input::placeholder, .textarea::placeholder { color: var(--ink-4); } input.input[type="date"], input.input[type="datetime-local"], input.input[type="time"] { color-scheme: light; } input.input[type="date"]::-webkit-calendar-picker-indicator, input.input[type="datetime-local"]::-webkit-calendar-picker-indicator, input.input[type="time"]::-webkit-calendar-picker-indicator { cursor: pointer; padding: 4px; border-radius: 6px; filter: invert(36%) sepia(74%) saturate(1879%) hue-rotate(166deg) brightness(93%) contrast(101%); transition: background 0.15s; } input.input[type="date"]::-webkit-calendar-picker-indicator:hover, input.input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover, input.input[type="time"]::-webkit-calendar-picker-indicator:hover { background: var(--m-blue-soft); } .input:disabled, .select:disabled, .textarea:disabled { background: var(--board); border-color: var(--line-2); color: var(--ink-3); cursor: not-allowed; } @media (max-width: 959px) { .input, .select, .textarea { font-size: 16px; height: 46px; } .textarea { height: auto; } } /* ---------- date / datetime-local ---------- The browser's own popup can't be themed, so the field and its calendar button are: segments highlight in the action blue, the icon is ours. */ .input[type="date"], .input[type="datetime-local"] { -webkit-appearance: none; appearance: none; display: flex; align-items: center; position: relative; min-width: 0; padding-inline-end: 40px; /* room for the calendar button */ text-align: start; accent-color: var(--m-blue); } .input[type="date"]::-webkit-datetime-edit, .input[type="datetime-local"]::-webkit-datetime-edit { flex: 1 1 auto; min-width: 0; } .input[type="date"]::-webkit-datetime-edit, .input[type="datetime-local"]::-webkit-datetime-edit, .input[type="date"]::-webkit-datetime-edit-fields-wrapper, .input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper { padding: 0; } .input[type="date"]::-webkit-datetime-edit-text, .input[type="datetime-local"]::-webkit-datetime-edit-text { padding: 0 1px; color: var(--ink-4); } .input[type="date"]::-webkit-datetime-edit-year-field, .input[type="date"]::-webkit-datetime-edit-month-field, .input[type="date"]::-webkit-datetime-edit-day-field, .input[type="datetime-local"]::-webkit-datetime-edit-year-field, .input[type="datetime-local"]::-webkit-datetime-edit-month-field, .input[type="datetime-local"]::-webkit-datetime-edit-day-field, .input[type="datetime-local"]::-webkit-datetime-edit-hour-field, .input[type="datetime-local"]::-webkit-datetime-edit-minute-field, .input[type="datetime-local"]::-webkit-datetime-edit-ampm-field { padding: 2px 3px; border-radius: 5px; } .input[type="date"]::-webkit-datetime-edit-year-field:focus, .input[type="date"]::-webkit-datetime-edit-month-field:focus, .input[type="date"]::-webkit-datetime-edit-day-field:focus, .input[type="datetime-local"]::-webkit-datetime-edit-year-field:focus, .input[type="datetime-local"]::-webkit-datetime-edit-month-field:focus, .input[type="datetime-local"]::-webkit-datetime-edit-day-field:focus, .input[type="datetime-local"]::-webkit-datetime-edit-hour-field:focus, .input[type="datetime-local"]::-webkit-datetime-edit-minute-field:focus, .input[type="datetime-local"]::-webkit-datetime-edit-ampm-field:focus { background: var(--m-blue); color: #fff; outline: none; } .input[type="date"]::-webkit-calendar-picker-indicator, .input[type="datetime-local"]::-webkit-calendar-picker-indicator { box-sizing: border-box; position: absolute; inset-inline-end: 11px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; margin: 0; padding: 0; cursor: pointer; opacity: 1; background: var(--ink-3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / 18px 18px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / 18px 18px no-repeat; transition: background-color 0.15s; } .input[type="date"]::-webkit-calendar-picker-indicator:hover, .input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover, .input[type="date"]:focus::-webkit-calendar-picker-indicator, .input[type="datetime-local"]:focus::-webkit-calendar-picker-indicator { background: var(--m-blue); } .input[type="date"]:disabled::-webkit-calendar-picker-indicator, .input[type="datetime-local"]:disabled::-webkit-calendar-picker-indicator { background: var(--ink-4); cursor: not-allowed; } @media (max-width: 959px) { .input[type="date"], .input[type="datetime-local"] { padding-inline-end: 48px; } .input[type="date"]::-webkit-calendar-picker-indicator, .input[type="datetime-local"]::-webkit-calendar-picker-indicator { inset-inline-end: 9px; width: 28px; height: 28px; -webkit-mask-size: 20px 20px; mask-size: 20px 20px; } } /* ---------- checkbox ---------- */ input[type="checkbox"] { -webkit-appearance: none; appearance: none; flex-shrink: 0; width: 18px; height: 18px; margin: 0; border: 1.5px solid var(--ink-3); border-radius: 5px; background-color: var(--paper); background-position: center; background-repeat: no-repeat; background-size: 14px 14px; cursor: pointer; transition: background-color 0.15s, border-color 0.15s; } input[type="checkbox"]:hover:not(:disabled) { border-color: var(--m-blue); background-color: var(--m-blue-soft); } input[type="checkbox"]:checked, input[type="checkbox"]:indeterminate { border-color: var(--m-blue); background-color: var(--m-blue); } input[type="checkbox"]:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5'/%3E%3C/svg%3E"); } input[type="checkbox"]:indeterminate { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4 8h8'/%3E%3C/svg%3E"); } input[type="checkbox"]:checked:hover:not(:disabled), input[type="checkbox"]:indeterminate:hover:not(:disabled) { border-color: var(--m-blue-ink); background-color: var(--m-blue-ink); } input[type="checkbox"]:disabled { cursor: not-allowed; border-color: var(--line); background-color: var(--line-2); } input[type="checkbox"]:disabled:checked { border-color: var(--ink-4); background-color: var(--ink-4); } @media (max-width: 959px) { input[type="checkbox"] { width: 22px; height: 22px; background-size: 16px 16px; } } @media (forced-colors: active) { input[type="checkbox"] { -webkit-appearance: auto; appearance: auto; } } .chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; cursor: pointer; white-space: nowrap; } .chip:hover { border-color: var(--ink-4); } .chip[aria-pressed="true"] { background: var(--m-blue-soft); border-color: #a5d8f3; color: var(--m-blue-ink); } .chip-count { padding: 0 7px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); font-size: 12px; } .chip[aria-pressed="true"] .chip-count { background: #bae6fd; color: var(--m-blue-ink); } .chip-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; } .chip-scroll::-webkit-scrollbar { display: none; } .chip-scroll > * { flex-shrink: 0; } .pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 7px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; } .pill-neutral { background: var(--line-2); color: var(--ink-2); } .pill-amber { background: var(--m-yellow-soft); color: var(--m-yellow-ink); } .pill-blue { background: var(--m-blue-soft); color: var(--m-blue-ink); } .pill-green { background: var(--m-green-soft); color: var(--m-green-ink); } .pill-red { background: var(--m-red-soft); color: var(--m-red-ink); } .dot { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; } .notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-card); border: 1px solid; background: var(--paper); } .notice-amber { border-color: var(--m-yellow); background: var(--m-yellow-soft); color: var(--m-yellow-ink); } .notice-red { border-color: #f2b2a7; background: var(--m-red-soft); color: var(--m-red-ink); } .notice-blue { border-color: var(--line); color: var(--ink-2); } .icon-well { flex-shrink: 0; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; color: #fff; } .empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 16px; color: var(--ink-3); } .empty-well { width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; background: var(--board); color: var(--ink-2); border: 1px dashed var(--ink-4); } .empty b { color: var(--ink); font-weight: 600; } .avatar { flex-shrink: 0; border-radius: 999px; object-fit: cover; background: var(--m-blue-soft); color: var(--m-blue-ink); display: grid; place-items: center; font-weight: 600; } .table { width: 100%; border-collapse: collapse; } .table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--ink-3); padding: 10px 18px; border-bottom: 1px solid var(--line); } .table td { padding: 12px 18px; border-bottom: 1px solid var(--line-2); vertical-align: middle; } .table tr:last-child td { border-bottom: 0; } .table tbody tr:hover td { background: #fafbf9; } .stat { display: flex; flex-direction: column; gap: 2px; } .stat-label { font-size: 13px; color: var(--ink-3); } .stat-value { font-size: 30px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; } .toggle { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--frame-2); transition: background 0.15s; cursor: pointer; flex-shrink: 0; } .toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform 0.15s; } .toggle[aria-checked="true"] { background: var(--m-green); } .toggle[aria-checked="true"]::after { transform: translateX(18px); } /* ---------- week board ---------- */ .planner { display: flex; flex-direction: column; gap: 22px; } .planner-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; } .planner-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #dceffc; border-radius: 10px; font-size: 13px; } .planner-tabs > * { padding: 6px 16px; border-radius: 7px; color: var(--ink-3); } .planner-tabs > [aria-current="page"] { color: var(--ink); background: var(--paper); box-shadow: 0 1px 3px #17243b0d; font-weight: 600; } .board-layout { display: flex; flex-direction: column; gap: 24px; } .board-scroll { width: 100%; min-width: 0; overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; } .draft-tray { width: 100%; display: flex; flex-direction: column; gap: 18px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; } .draft-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } .queue-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; padding: 24px; border: 1px dashed var(--line); border-radius: 12px; color: var(--ink-3); background: var(--board); } .draft-tray[data-over="true"] { outline: 2px solid var(--m-blue); } @media (max-width: 1199px) { .draft-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 639px) { .board-scroll .week { min-width: 0; grid-template-columns: minmax(0, 1fr); } .week .day { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); } .week .day:last-child { border-bottom: 0; } .week .day-heading { flex-direction: row; justify-content: flex-start; gap: 10px; } .week .day-number { font-size: 21px; } .draft-tray { padding: 18px; } .draft-cards { grid-template-columns: minmax(0, 1fr); } } .week { display: grid; min-width: 1000px; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; } .day { display: flex; flex-direction: column; gap: 12px; min-height: 360px; padding: 16px 8px; border-right: 1px solid var(--line-2); transition: background 0.15s, box-shadow 0.15s; } .day[data-over="true"] { background: rgba(45, 91, 210, 0.07); box-shadow: inset 0 0 0 2px var(--m-blue); } .day:last-child { border-right: 0; } .day[data-today="true"] { background: #eff9ff; } .day-heading { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 0 16px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; } .day-heading h3 { font-size: 12px; color: var(--ink-3); font-weight: 500; } .day-number { display: grid; place-items: center; width: 36px; height: 36px; font-size: 23px; font-weight: 600; line-height: 1; border-radius: 12px; } .day[data-today="true"] .day-number { background: var(--m-blue); color: #fff; } .day[data-today="true"] .day-heading h3 { color: var(--m-blue); } .day-slot { display: grid; place-items: center; min-height: 38px; border: 1px dashed var(--line); border-radius: 8px; color: var(--ink-3); font-size: 12px; transition: border-color 0.15s, color 0.15s, background 0.15s; } .day-slot:hover { border-color: #7dc6ef; color: var(--m-blue); background: var(--m-blue-soft); } /* ---------- phone frame ---------- */ .topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: rgba(240, 249, 255, 0.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--frame-edge); } .page-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; min-width: 0; } .page-option { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; } .page-option:hover, .page-option:active, .page-option[aria-selected="true"] { background: var(--board); } .page-option[aria-selected="true"] { font-weight: 600; } .scrim { position: fixed; inset: 0; z-index: 40; background: rgba(28, 31, 38, 0.36); animation: fade-in 0.18s ease-out; } .sheet-root { position: fixed; inset: 0; z-index: 60; } .sheet-root .scrim { z-index: 0; } .sheet { position: absolute; inset: auto 0 0 0; max-height: 80vh; display: flex; flex-direction: column; background: var(--paper); border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -12px 40px -16px rgba(28, 31, 38, 0.5); animation: sheet-up 0.28s cubic-bezier(0.16, 1, 0.3, 1); } .sheet-grip { width: 40px; height: 5px; border-radius: 999px; background: var(--line); margin: 10px auto 6px; } @keyframes sheet-up { from { transform: translateY(100%); } } @keyframes fade-in { from { opacity: 0; } } .tabbar { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; height: calc(64px + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom); background: rgba(240, 249, 255, 0.97); backdrop-filter: blur(14px); border-top: 1px solid var(--frame-edge); box-shadow: 0 -4px 20px rgba(23, 36, 59, 0.03); } .tab { position: relative; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--ink-3); } .tab[data-active="true"] { color: var(--m-blue); font-weight: 600; } .tab[data-active="true"]::before { content: ""; position: absolute; top: 5px; width: 6px; height: 6px; border-radius: 999px; background: var(--m-blue); } .tab-badge { position: absolute; top: -5px; left: 14px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--m-yellow); color: var(--m-yellow-ink); font-size: 10px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--frame); } .tab-create { height: 64px; display: grid; place-items: center; } .tab-create-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--m-blue); box-shadow: 0 4px 10px rgba(0, 119, 182, 0.2); transition: transform 0.15s; } .tab-create:active .tab-create-btn { transform: scale(0.94); } .action-dock { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 20; display: flex; gap: 8px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(14px); box-shadow: var(--shadow-lift), 0 0 0 1px var(--line); } .action-dock .btn { flex: 1; height: 48px; } /* ---------- toasts ---------- */ .toast-stack { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(82px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; } @media (min-width: 960px) { .toast-stack { left: auto; right: 24px; bottom: 24px; width: 380px; } } .toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: 0 16px 32px -14px rgba(0, 0, 0, 0.6); animation: toast-in 0.28s cubic-bezier(0.16, 1, 0.3, 1); } .toast-icon { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; flex-shrink: 0; } .toast-ok .toast-icon { background: var(--m-green); } .toast-warn .toast-icon { background: var(--m-yellow); color: var(--m-yellow-ink); } .toast-error .toast-icon { background: var(--m-red); } .toast-close { padding: 4px; border-radius: 999px; color: rgba(255, 255, 255, 0.7); } @keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } } @media (pointer: coarse) { .btn { min-height: 44px; } .btn-sm { min-height: 38px; } .chip { height: 38px; padding: 0 14px; } } /* Thai date/time picker: Buddhist year, Thai labels, 24-hour Bangkok time. */ .thai-picker { position: relative; width: 100%; } .content-research { display: flex; flex-direction: column; gap: 14px; padding: 16px; background: var(--board); border-radius: 14px; } .content-research-head { display: flex; align-items: flex-start; gap: 16px; } .content-research-head > div { flex: 1; min-width: 0; } .content-research-head b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; } .content-research-head p, .content-research-foot { margin-top: 3px; color: var(--ink-3); font-size: 12px; line-height: 1.55; } .content-research-search { display: flex; gap: 8px; } .content-research-input { flex: 1; min-width: 0; height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 12px; color: var(--ink-3); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; } .content-research-input:focus-within { border-color: var(--m-blue); box-shadow: 0 0 0 3px var(--m-blue-soft); } .content-research-input input { width: 100%; min-width: 0; color: var(--ink); background: transparent; outline: none; } .content-research-suggestions { display: flex; flex-wrap: wrap; gap: 7px; } .content-research-suggestions button { min-height: 32px; padding: 5px 10px; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 9px; font-size: 12px; } .content-research-suggestions button:hover:not(:disabled) { color: var(--m-blue); border-color: var(--m-blue); } .research-results { max-height: 460px; overflow-y: auto; display: flex; flex-direction: column; gap: 0; background: var(--paper); border-radius: 12px; } .research-results article { padding: 14px; border-bottom: 1px solid var(--line); } .research-results article:last-child { border-bottom: 0; } .research-results article[data-selected] { background: var(--m-blue-soft); } .research-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; color: var(--ink-3); font-size: 11px; } .research-meta span { color: var(--m-blue); font-weight: 600; } .research-results h3, .research-draft h3 { margin-top: 5px; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.5; } .research-results article > p, .research-draft > p { margin-top: 4px; color: var(--ink-2); font-size: 12px; line-height: 1.6; } .research-actions, .research-draft-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; } .research-actions a, .research-actions button, .research-meta a { min-height: 32px; display: inline-flex; align-items: center; gap: 5px; color: var(--m-blue); font-size: 12px; font-weight: 500; } .research-actions button { padding: 4px 9px; margin-left: auto; background: var(--m-blue-soft); border-radius: 8px; } .research-loading, .research-empty { min-height: 72px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink-3); font-size: 12px; } .research-loading span { width: 6px; height: 6px; background: var(--m-blue); border-radius: 50%; animation: research-pulse 900ms ease-in-out infinite alternate; } .research-loading span:nth-child(2) { animation-delay: 150ms; } .research-loading span:nth-child(3) { animation-delay: 300ms; } .research-draft { padding: 15px; background: var(--paper); border-radius: 12px; } .research-draft ul { display: grid; gap: 6px; margin: 10px 0 0 18px; color: var(--ink-2); font-size: 12px; line-height: 1.55; list-style: disc; } .research-draft-actions { justify-content: flex-end; margin-top: 14px; } @keyframes research-pulse { from { opacity: .35; transform: translateY(1px); } to { opacity: 1; transform: translateY(-1px); } } @media (max-width: 639px) { .content-research { padding: 14px; } .content-research-search { align-items: stretch; flex-direction: column; } .content-research-input { flex: none; height: 46px; font-size: 16px; } .content-research-search > .btn { width: 100%; } .research-actions { align-items: stretch; flex-direction: column; } .research-actions a, .research-actions button { width: 100%; justify-content: center; } .research-actions button { margin-left: 0; } } .thai-picker-trigger { width: 100%; height: 42px; padding: 0 12px 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; text-align: start; } .thai-picker-trigger:hover:not(:disabled) { border-color: var(--ink-3); } .thai-picker-trigger:focus-visible { outline: none; border-color: var(--m-blue); box-shadow: 0 0 0 3px var(--m-blue-soft); } .thai-picker-trigger svg { flex: none; color: var(--m-blue); } .thai-picker-trigger:disabled { cursor: not-allowed; color: var(--ink-3); background: var(--board); } .thai-picker-popover { position: absolute; z-index: 40; inset-inline-end: 0; bottom: calc(100% + 8px); width: min(360px, calc(100vw - 40px)); max-height: min(520px, calc(100vh - 32px)); overflow-y: auto; overscroll-behavior: contain; padding: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lift); transform-origin: bottom right; animation: thai-picker-in 160ms ease-out; } .thai-picker-head { height: 40px; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin-bottom: 8px; } .thai-picker-head strong { text-align: center; font-size: 15px; font-weight: 600; } .thai-picker-head button { width: 40px; height: 40px; border-radius: 8px; color: var(--ink-2); font-size: 27px; line-height: 1; } .thai-picker-head button:hover { color: var(--m-blue); background: var(--m-blue-soft); } .thai-picker-head button:focus-visible, .thai-picker-grid button:focus-visible, .thai-picker-foot button:focus-visible { outline: 2px solid var(--m-blue); outline-offset: 2px; } .thai-picker-week, .thai-picker-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; } .thai-picker-week { margin-bottom: 4px; color: var(--ink-3); font-size: 11px; font-weight: 500; text-align: center; } .thai-picker-week span { display: grid; place-items: center; height: 28px; } .thai-picker-grid button, .thai-picker-grid > span { aspect-ratio: 1; min-width: 0; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-variant-numeric: tabular-nums; } .thai-picker-grid button:hover { color: var(--m-blue); background: var(--m-blue-soft); } .thai-picker-grid button[data-today] { box-shadow: inset 0 0 0 1px var(--m-blue); color: var(--m-blue); font-weight: 600; } .thai-picker-grid button[aria-pressed="true"] { color: #fff; background: var(--m-blue); box-shadow: none; font-weight: 600; } .thai-picker-time { display: flex; align-items: center; gap: 7px; min-height: 48px; margin-top: 12px; padding: 8px 10px; color: var(--ink-2); background: var(--board); border-radius: 10px; font-size: 13px; } .thai-picker-time svg { color: var(--m-blue); } .thai-picker-time select { height: 32px; padding: 0 7px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 7px; font-variant-numeric: tabular-nums; } .thai-picker-time select:first-of-type { margin-left: auto; } .thai-picker-time select:focus-visible { outline: 2px solid var(--m-blue); outline-offset: 1px; } .thai-picker-foot { display: flex; align-items: center; gap: 8px; min-height: 38px; margin-top: 10px; } .thai-picker-foot .thai-picker-text-action { min-height: 36px; padding: 0 6px; color: var(--m-blue); font-weight: 500; } .thai-picker-foot .thai-picker-text-action:hover { text-decoration: underline; text-underline-offset: 3px; } .thai-picker-foot .btn { margin-left: auto; } @keyframes thai-picker-in { from { opacity: 0; transform: translateY(4px) scale(.98); } } @media (max-width: 639px) { .thai-picker-popover { position: fixed; inset-inline: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); width: auto; max-height: calc(100dvh - 100px - env(safe-area-inset-bottom)); padding: 14px; transform-origin: bottom center; } .thai-picker-trigger { height: 46px; font-size: 16px; } .thai-picker-grid button, .thai-picker-grid > span { min-height: 40px; aspect-ratio: auto; font-size: 14px; } } @media (prefers-reduced-motion: reduce) { input[type="checkbox"], .input[type="date"]::-webkit-calendar-picker-indicator, .input[type="datetime-local"]::-webkit-calendar-picker-indicator { transition: none; } .sheet, .scrim, .toast, .frame { animation: none; transition: none; } .thai-picker-popover { animation: none; } .research-loading span { animation: none; } .post-card, .post-card:hover { transition: none; transform: none; } } }