/* ============================================
   My Workspace 5.0 — Professional Light System
   Clean, Readable, High-Performance UI
   ============================================ */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600&family=Sarabun:wght@400;500;600;700&display=swap");
:root {
    /* 🎨 Background Colors (Modern Soft CRM) */
    --color-bg-base: #f5f5f7;
    --color-bg-surface: #ffffff;
    --color-bg-surface-soft: #f9fafc;
    --color-bg-elevated: #e9ecef;
    --color-bg-hover: #f6f6f6;
    --color-bg-subtle: var(--color-bg-surface-soft);
    /* 🟢 Border & Lines */
    --color-line: #edf1f5;
    --color-line-strong: #dfe7ee;
    --color-border: #dde2e7;
    /* 🔴 Primary Action Colors */
    --color-primary: #7479FF;
    --color-primary-system: var(--color-primary);
    --color-primary-hover: #5F64E8;
    --color-primary-light: #EEF0FF;
    --color-primary-subtle: #F7F7FF;
    --color-primary-border: #D9DBFF;
    --color-primary-border-strong: #BEC1FF;
    --color-primary-rgb: 116, 121, 255;
    --color-unread-badge: #7479FF;
    /* 📝 Typography Colors */
    --color-text-primary: #162033;
    --color-text-secondary: #3d4b40;
    --color-text-muted: #64748b;
    --color-text-muted-2: #94a3b8;
    /* 🎨 UI Elements */
    --color-white: #ffffff;
    /* ☁️ Shadows */
    --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-card-soft: 0 1px 2px rgba(15, 23, 42, 0.045);
    --shadow-hover: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    /* 🟢 Status Colors */
    --color-success: #10b981;
    --color-success-light: #ecfdf5;
    --color-warning: #f59e0b;
    --color-error: var(--color-primary);
    --color-error-light: var(--color-primary-light);
    --color-info: #3b82f6;
    /* 📏 Layout Metrics */
    --filter-control-height: 48px;
    --filter-control-radius: 12px;
    --sidebar-width: 232px;
    --topbar-height: 82px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 990px;
    /* 🔠 Typography Family & Scale */
    --font-heading: "Noto Sans Thai", ui-sans-serif, system-ui, sans-serif;
    --font-body: "Noto Sans Thai", ui-sans-serif, system-ui, sans-serif;
    --font-readable: "Sarabun", "Noto Sans Thai", ui-sans-serif, system-ui, sans-serif;
}
/* ================================================================
   Attendance / QR check-in
   ================================================================ */
.attendance-page, .attendance-scan-page, .attendance-qr-page, .access-denied-page {
    margin: 0 auto;
    color: var(--color-text-primary);
}
.attendance-page__header, .attendance-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.attendance-page__header {
    margin-bottom: 24px;
}
.attendance-page__header h1 {
    margin: 0 0 6px;
}
.attendance-page__header p, .attendance-panel__header p {
    margin: 0;
    color: var(--color-text-muted);
}
.attendance-page__eyebrow {
    margin: 0;
    color: var(--color-primary) !important;
    font-size: 12px;
    font-weight: 800;
}
.attendance-admin-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 7px;
    border: 1px solid var(--color-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(16, 24, 40, 0.045);
}
.attendance-admin-tabs__button {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 62px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #667085;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.16s ease,
        color 0.16s ease,
        background 0.16s ease,
        box-shadow 0.16s ease;
}
.attendance-admin-tabs__button > i {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 10px;
    color: #667085;
    background: #f2f4f7;
    font-size: 16px;
}
.attendance-admin-tabs__button > span {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.attendance-admin-tabs__button strong {
    color: #344054;
    font-size: 14px;
}
.attendance-admin-tabs__button small {
    overflow: hidden;
    color: #667085;
    font-size: 12px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.attendance-admin-tabs__button:hover {
    background: #f9fafb;
}
.attendance-admin-tabs__button.is-active {
    border-color: var(--color-primary-border-strong);
    color: var(--color-primary-hover);
    background: var(--color-primary-subtle);
    box-shadow: 0 3px 9px color-mix(in srgb, var(--color-primary) 7%, transparent);
}
.attendance-admin-tabs__button.is-active > i {
    color: var(--color-primary-hover);
    background: var(--color-primary-subtle);
}
.attendance-admin-tabs__button.is-active strong {
    color: var(--color-primary-hover);
}
.attendance-admin-tab-panel[hidden] {
    display: none !important;
}
.attendance-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}
.attendance-button:disabled {
    opacity: 0.58;
    cursor: wait;
    transform: none;
}
.attendance-button--primary {
    color: #fff;
    background: var(--color-primary);
}
.attendance-button--secondary {
    color: #344054;
    background: #fff;
    border-color: #d0d5dd;
}
.attendance-button--danger {
    color: var(--color-primary-hover);
    background: var(--color-primary-subtle);
    border-color: var(--color-primary-border-strong);
}
.attendance-button--export {
    color: #067647;
    background: #ecfdf3;
    border-color: #abefc6;
}
.attendance-today-card, .attendance-panel, .attendance-scan-card, .attendance-qr-sheet, .attendance-home-qr-panel {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.06);
}
.attendance-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 390px);
    gap: 18px;
    align-items: stretch;
}
.attendance-overview-grid--single {
    grid-template-columns: minmax(0, 1fr);
}
.attendance-today-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 20px 22px;
}
.attendance-overview-card__header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}
.attendance-overview-card__header > div {
    min-width: 0;
}
.attendance-overview-card__header > .attendance-overall {
    flex: 0 0 auto;
    margin-left: auto;
}
.attendance-overview-card__header h2 {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 16px;
    line-height: 1.35;
}
.attendance-overview-card__header p {
    margin: 2px 0 0;
    color: var(--color-text-muted);
    font-size: 12px;
}
.attendance-overview-card__icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 11px;
    color: #175cd3;
    background: #eff8ff;
}
.attendance-today-card__body {
    display: grid;
    grid-template-columns: 165px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    flex: 1 1 auto;
    padding-top: 18px;
}
.attendance-today-card__date {
    display: grid;
    gap: 4px;
}
.attendance-today-card__date span, .attendance-today-card__times span {
    color: var(--color-text-muted);
    font-size: 13px;
}
.attendance-today-card__date strong {
    font-size: 14px;
}
.attendance-today-card__times {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 18px;
}
.attendance-today-card__times > div {
    display: grid;
    gap: 5px;
    align-content: start;
    padding-left: 18px;
    border-left: 1px solid var(--color-border);
}
.attendance-today-card__times strong {
    font-size: 14px;
    line-height: 1.1;
}
.attendance-today-card__times em {
    justify-self: start;
    font-style: normal;
}
.attendance-today-card__location {
    font-size: 14px !important;
}
.attendance-home-qr-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding: 20px 22px;
}
.attendance-home-qr-panel__content {
    display: grid;
    min-width: 0;
    align-content: center;
    gap: 12px;
}
.attendance-home-qr-panel__heading {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}
.attendance-home-qr-panel__heading > div {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.attendance-home-qr-panel__heading strong {
    color: var(--color-text-primary);
    font-size: 14px;
    line-height: 1.35;
}
.attendance-home-qr-panel__heading small {
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.attendance-home-qr-panel__content > p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.55;
}
.attendance-home-qr-panel__selector, .attendance-scan-location-switcher {
    display: grid;
    gap: 6px;
    color: var(--color-text-primary);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
}
.attendance-home-qr-panel__selector select, .attendance-scan-location-switcher select {
    width: 100%;
    min-height: 40px;
    padding: 8px 34px 8px 11px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text-primary);
    background: var(--color-bg-surface);
    font: inherit;
}
/* Keep the summary and QR visually separated if an older compiled Blade/JS pair is still served. */
.attendance-today-card:has(> .attendance-today-card__side) {
    position: relative;
    width: calc(100% - 326px);
}
.attendance-today-card > .attendance-today-card__side {
    position: absolute;
    top: 0;
    left: calc(100% + 16px);
    display: flex;
    width: 310px;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-bg-surface);
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.06);
}
.attendance-today-card__side > .attendance-overall {
    position: absolute;
    top: 50%;
    right: calc(100% + 32px);
    transform: translateY(-50%);
}
.attendance-today-card__side .attendance-today-home-qr {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.attendance-today-card__side .attendance-home-qr-card__content {
    display: grid;
    flex: 1 1 auto;
    gap: 2px;
}
.attendance-today-card__side .attendance-home-qr-card__content strong {
    font-size: 0;
}
.attendance-today-card__side .attendance-home-qr-card__content strong::after {
    content: "QR Code เข้า - ออก งาน";
    color: var(--color-text-primary);
    font-size: 14px;
    font-weight: 700;
}
.attendance-today-card__side .attendance-home-qr-card__content span {
    color: var(--color-text-muted);
    font-size: 11px;
}
.attendance-badge, .attendance-overall, .attendance-location-result {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}
.attendance-badge--on_time, .attendance-badge--normal, .attendance-overall--completed, .attendance-location-result--matched {
    color: #067647;
    background: #ecfdf3;
}
.attendance-badge--grace {
    color: #854a0e;
    background: #fffaeb;
}
.attendance-badge--late, .attendance-badge--early {
    color: var(--color-primary-hover);
    background: var(--color-primary-subtle);
}
.attendance-overall--open {
    color: #175cd3;
    background: #eff8ff;
}
.attendance-overall--review {
    color: #854a0e;
    background: #fffaeb;
}
.attendance-location-result--unreliable {
    color: #b54708;
    background: #fff6ed;
}
.attendance-location-result--outside {
    color: var(--color-primary-hover);
    background: var(--color-primary-subtle);
}
.attendance-empty-state {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 92px;
    color: var(--color-text-muted);
}
.attendance-empty-state > i {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 13px;
    color: var(--color-primary);
    background: var(--color-primary-subtle);
    font-size: 21px;
}
.attendance-empty-state strong {
    display: block;
    color: var(--color-text-primary);
}
.attendance-empty-state p {
    margin: 3px 0 0;
}
.attendance-home-qr-card__content {
    flex: 1 1 auto;
    min-width: 0;
}
/* Compatibility for a stale compiled Blade view while the latest template is deployed. */
.attendance-info-grid {
    display: none !important;
}
.attendance-home-qr-card__preview {
    display: grid;
    flex: 0 0 auto;
    justify-items: center;
    gap: 4px;
    padding: 12px;
    border: 1px solid #e4e7ec;
    border-radius: 11px;
    color: #475467;
    background: #fff;
    cursor: pointer;
}
.attendance-home-qr-card__preview:hover, .attendance-home-qr-card__preview:focus-visible {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.1);
}
.attendance-home-qr-card__preview small {
    font-size: 10px;
    font-weight: 700;
}
.attendance-home-qr-card__preview canvas, .attendance-home-qr-card__preview img {
    display: block;
    width: 100% !important;
}
.attendance-qr-with-logo {
    position: relative;
    display: inline-block;
    line-height: 0;
    isolation: isolate;
}
.attendance-qr-logo-shell {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: grid;
    width: var(--attendance-qr-logo-size, 22%);
    height: var(--attendance-qr-logo-size, 22%);
    padding: 4px;
    place-items: center;
    border-radius: 16%;
    background: #fff;
    box-shadow: 0 0 0 2px #fff;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.attendance-qr-with-logo .attendance-qr-logo {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}
.attendance-panel {
    margin-top: 18px;
    padding: 22px;
}
.attendance-panel__header {
    align-items: center;
    margin-bottom: 18px;
}
.attendance-panel__header h2 {
    margin: 0 0 3px;
    font-size: 20px;
}
.attendance-table-wrap {
    width: 100%;
    overflow-x: auto;
}
.attendance-table-wrap--horizontal {
    overscroll-behavior-inline: contain;
    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.attendance-table-wrap--horizontal::-webkit-scrollbar {
    height: 7px;
}
.attendance-table-wrap--horizontal::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cbd5e1;
}
.attendance-table {
    width: 100%;
    border-collapse: collapse;
}
.attendance-table--mobile-scroll {
    min-width: 790px;
}
.attendance-table--compact th:last-child, .attendance-table--compact td:last-child {
    width: 160px;
    text-align: right;
}
.attendance-table--compact td.attendance-table__empty {
    width: auto;
    text-align: center;
}
.attendance-table th {
    padding: 8px 15px;
    color: #475467;
    background: #f9fafb;
    border-bottom: 1px solid var(--color-border);
    font-size: 12px;
    text-align: left;
    white-space: nowrap;
}
.attendance-table td {
    padding: 6px 15px;
    border-bottom: 1px solid #f0f1f3;
    vertical-align: middle;
}
.attendance-table td strong, .attendance-table td small {
    display: block;
}
.attendance-table td small {
    color: var(--color-text-muted);
}
.attendance-table .attendance-badge {
    display: inline-flex;
    margin-left: 5px;
}
.attendance-table__empty {
    padding: 35px !important;
    color: var(--color-text-muted);
    text-align: center;
}
.attendance-scan-page {
    display: grid;
    min-height: calc(100vh - 110px);
    place-items: center;
}
.attendance-scan-card {
    width: min(100%, 560px);
    padding: 30px;
    text-align: center;
}
.attendance-scan-card h1 {
    margin: 3px 0;
    font-size: 28px;
}
.attendance-scan-card__icon {
    display: grid;
    width: 68px;
    height: 68px;
    margin: 0 auto 13px;
    place-items: center;
    border-radius: 20px;
    font-size: 27px;
}
.attendance-scan-card__icon--office {
    color: #175cd3;
    background: #eff8ff;
}
.attendance-scan-card__icon--home {
    color: #067647;
    background: #ecfdf3;
}
.attendance-scan-card__identity {
    margin: 5px 0 20px;
    color: var(--color-text-muted);
}
.attendance-scan-location-switcher {
    margin: 0 0 18px;
}
.attendance-scan-location-switcher > span i {
    margin-right: 5px;
    color: var(--color-primary);
}
.attendance-live-time {
    display: grid;
    gap: 2px;
    margin: 18px 0;
    padding: 17px;
    border-radius: 14px;
    background: #f8fafc;
}
.attendance-live-time strong {
    font-size: 37px;
    font-variant-numeric: t
}
.attendance-live-time span {
    color: var(--color-text-muted);
}
.attendance-action-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 18px 0;
}
.attendance-action-summary > span {
    color: var(--color-text-muted);
}
.attendance-location-state, .attendance-reason-box {
    display: flex;
    gap: 12px;
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    text-align: left;
}
.attendance-location-state > i, .attendance-reason-box > i {
    margin-top: 3px;
    color: #175cd3;
}
.attendance-location-state div, .attendance-reason-box div {
    display: grid;
    gap: 2px;
}
.attendance-location-state span, .attendance-reason-box p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 13px;
}
.attendance-location-state--loading {
    border-color: #b2ddff;
    background: #eff8ff;
}
.attendance-location-state--success {
    border-color: #abefc6;
    background: #ecfdf3;
}
.attendance-location-state--success > i {
    color: #067647;
}
.attendance-location-state--error, .attendance-reason-box--required {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
}
.attendance-location-state--error > i, .attendance-reason-box--required > i {
    color: var(--color-primary-hover);
}
.attendance-reason-form {
    display: grid;
    gap: 7px;
    margin: 15px 0;
    text-align: left;
}
.attendance-reason-form label {
    font-weight: 700;
}
.attendance-reason-form label span {
    color: var(--color-primary);
}
.attendance-reason-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    font: inherit;
    resize: vertical;
}
.attendance-button--scan {
    width: 100%;
    min-height: 54px;
    margin-top: 5px;
    color: #fff;
    background: var(--color-primary);
    font-size: 17px;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--color-primary) 20%, transparent);
}
.attendance-scan-card__privacy {
    margin: 12px 0 0;
    color: var(--color-text-muted);
    font-size: 12px;
}
.attendance-swal-popup {
    width: min(420px, calc(100vw - 28px)) !important;
    padding: 24px 20px 18px !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 22px !important;
    box-shadow: var(--shadow-hover) !important;
}
.attendance-swal-popup .swal2-title {
    margin: 4px 0 7px !important;
    color: var(--color-text-primary) !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
}
.attendance-swal-popup .swal2-html-container {
    margin: 8px 0 0 !important;
    color: var(--color-text-muted) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}
.attendance-swal-popup .swal2-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--color-text-muted);
    font-size: 20px;
}
.attendance-swal-popup .swal2-close:focus,
.attendance-swal-popup .swal2-close:focus-visible,
.attendance-swal-popup .swal2-close:active {
    outline: none !important;
    box-shadow: none !important;
}
.attendance-swal-popup .swal2-icon {
    width: 62px !important;
    min-width: 62px !important;
    height: 62px !important;
    min-height: 62px !important;
    margin: 6px auto 14px;
    border-width: 2px;
    font-size: 22px !important;
    line-height: 62px !important;
}
.attendance-swal-popup .swal2-icon > i {
    font-size: 20px !important;
    line-height: 1 !important;
}
.attendance-swal-popup--issue .swal2-icon.swal2-warning {
    border-color: var(--color-warning) !important;
    color: var(--color-warning) !important;
}
.attendance-swal-popup--success .swal2-icon.swal2-success {
    border-color: var(--color-success) !important;
    color: var(--color-success) !important;
}
.attendance-swal-popup--loading .swal2-actions {
    display: none !important;
}
.attendance-location-loading {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 4px 0 8px;
}
.attendance-location-loading__visual {
    position: relative;
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 20px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.attendance-location-loading__visual::after {
    position: absolute;
    inset: -5px;
    border: 1px solid var(--color-primary-border);
    border-radius: 24px;
    content: "";
    animation: attendance-location-pulse 1.8s ease-out infinite;
}
.attendance-location-loading__icon {
    z-index: 1;
    font-size: 25px;
    animation: attendance-location-icon-pulse 1.8s ease-in-out infinite;
}
.attendance-location-loading p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 13px;
    text-align: center;
}
.attendance-outcome-content {
    display: grid;
    gap: 9px;
    text-align: left;
}
.attendance-outcome-content__label {
    color: var(--color-text-primary);
    font-size: 14px !important;
    font-weight: 700;
}
.attendance-outcome-content__reason {
    width: 100%;
    min-height: 88px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 13px !important;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.16s ease;
}
.attendance-outcome-content__reason:focus {
    border-color: var(--color-primary);
    outline: 0 !important;
    box-shadow: none !important;
}
.attendance-swal-popup .swal2-actions {
    display: flex !important;
    width: 100% !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    margin-top: 16px !important;
}
.attendance-swal-popup .swal2-actions .swal2-styled {
    min-width: 0;
    min-height: 42px;
    flex: 1 1 0;
    margin: 0 !important;
    padding: 4px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.attendance-swal-popup .swal2-cancel {
    background-color: var(--color-bg-elevated) !important;
    color: var(--color-text-muted) !important;
}
.attendance-swal-popup .swal2-cancel:hover {
    background-color: var(--color-bg-hover) !important;
    color: var(--color-text-primary) !important;
}
.attendance-swal-popup .swal2-confirm:hover {
    background-color: var(--color-primary-hover) !important;
}
@keyframes attendance-location-pulse {
    0% { opacity: 0.65; transform: scale(0.96); }
    100% { opacity: 0; transform: scale(1.18); }
}
@keyframes attendance-location-icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}
.attendance-complete-state {
    display: grid;
    gap: 7px;
    justify-items: center;
    margin: 22px 0;
    padding: 25px;
    border-radius: 15px;
    background: #ecfdf3;
}
.attendance-complete-state > i {
    color: #12b76a;
    font-size: 38px;
}
.attendance-complete-state p {
    margin: 0;
    color: #067647;
}
.access-denied-page {
    display: grid;
    min-height: calc(100vh - 150px);
    padding: 28px 0;
    place-items: center;
}
.access-denied-card {
    display: grid;
    width: min(100%, 560px);
    justify-items: center;
    padding: 38px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(16, 24, 40, 0.1);
    text-align: center;
}
.access-denied-card__code {
    margin-bottom: 18px;
    color: var(--color-primary-hover);
    font-size: 12px;
    font-weight: 800;
}
.access-denied-card__icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: 20px;
    color: var(--color-primary-hover);
    background: var(--color-primary-subtle);
    font-size: 28px;
}
.access-denied-card h1 {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 27px;
    line-height: 1.35;
}
.access-denied-card > p {
    max-width: 440px;
    margin: 10px 0 0;
    color: var(--color-text-muted);
    line-height: 1.7;
}
.access-denied-card__notice {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 22px;
    padding: 13px 15px;
    border: 1px solid #fedf89;
    border-radius: 12px;
    color: #854a0e;
    background: #fffaeb;
    font-size: 13px;
    line-height: 1.55;
    text-align: left;
}
.access-denied-card__notice i {
    margin-top: 3px;
    color: #dc6803;
}
.access-denied-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}
.attendance-location-form, .attendance-filter-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(170px, 1fr));
    gap: 14px;
}
.attendance-location-form label, .attendance-filter-form label, .attendance-location-edit-form label {
    display: grid;
    gap: 5px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}
.attendance-location-form input, .attendance-location-form select, .attendance-filter-form input, .attendance-filter-form select, .attendance-location-edit-form input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d0d5dd;
    border-radius: var(--filter-control-radius);
    color: var(--color-text-primary);
    background: #fff;
    font: inherit;
}
.attendance-location-form input, .attendance-location-form select, .attendance-location-edit-form input {
    min-height: 42px;
}
.attendance-filter-form input, .attendance-filter-form select {
    min-height: var(--filter-control-height);
}
.attendance-filter-form .ts-wrapper {
    height: var(--filter-control-height);
}
.attendance-filter-form .ts-control {
    height: var(--filter-control-height);
    min-height: var(--filter-control-height);
    border-radius: var(--filter-control-radius);
}
.attendance-location-form__actions, .attendance-filter-form__actions {
    display: flex;
    align-items: end;
    gap: 8px;
}
.attendance-coordinate-message {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 13px;
}
.attendance-coordinate-message--success {
    color: #067647;
}
.attendance-coordinate-message--error {
    color: var(--color-primary-hover);
}
.attendance-location-list {
    display: grid;
    gap: 11px;
}
.attendance-location-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 13px;
}
.attendance-location-card--inactive {
    opacity: 0.58;
    background: #f9fafb;
}
.attendance-location-card__icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 13px;
    font-size: 19px;
}
.attendance-location-card__icon--office {
    color: #175cd3;
    background: #eff8ff;
}
.attendance-location-card__icon--home {
    color: #067647;
    background: #ecfdf3;
}
.attendance-location-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.attendance-location-card__title span {
    padding: 3px 7px;
    border-radius: 99px;
    color: #475467;
    background: #f2f4f7;
    font-size: 11px;
    font-weight: 700;
}
.attendance-location-card__body p {
    margin: 4px 0 0;
    color: var(--color-text-muted);
    font-size: 13px;
}
.attendance-location-card__actions {
    display: flex;
    align-items: center;
    gap: 7px;
}
.attendance-location-card__actions form {
    margin: 0;
}
.attendance-location-card details {
    position: relative;
}
.attendance-location-card summary {
    list-style: none;
}
.attendance-location-card summary::-webkit-details-marker {
    display: none;
}
.attendance-location-edit-form {
    position: absolute;
    z-index: 20;
    top: calc(100% + 7px);
    right: 0;
    display: grid;
    width: 310px;
    gap: 9px;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(16, 24, 40, 0.16);
}
.attendance-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 11px;
    margin: 18px 0;
}
.attendance-summary-grid article {
    display: grid;
    gap: 3px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #f9fafb;
}
.attendance-summary-grid article span {
    color: var(--color-text-muted);
    font-size: 12px;
}
.attendance-summary-grid article strong {
    font-size: 25px;
}
.attendance-summary-grid article small {
    color: #667085;
    font-size: 11px;
    line-height: 1.45;
}
.attendance-summary-card--green {
    background: #ecfdf3 !important;
}
.attendance-summary-card--yellow {
    background: #fffaeb !important;
}
.attendance-summary-card--red {
    background: var(--color-primary-subtle) !important;
}
.attendance-summary-card--orange {
    background: #fff6ed !important;
}
.attendance-qr-page {
    display: grid;
    justify-items: center;
    gap: 16px;
}
.attendance-qr-back {
    justify-self: start;
    color: #475467;
    text-decoration: none;
    font-weight: 700;
}
.attendance-qr-warning {
    width: min(100%, 640px);
    padding: 13px;
    border: 1px solid var(--color-primary-border-strong);
    border-radius: 11px;
    color: var(--color-primary-hover);
    background: var(--color-primary-subtle);
    text-align: center;
}
.attendance-qr-sheet {
    width: min(100%, 640px);
    padding: 35px;
    text-align: center;
}
.attendance-qr-sheet__logo {
    width: 150px;
    max-height: 54px;
    margin-bottom: 18px;
    object-fit: contain;
}
.attendance-qr-sheet h1 {
    margin: 5px 0 1px;
    font-size: 28px;
}
.attendance-qr-sheet h2 {
    margin: 0;
    color: var(--color-primary);
    font-size: 21px;
}
.attendance-qr-sheet__member {
    margin: 5px 0;
    color: var(--color-text-muted);
}
.attendance-qrcode {
    display: inline-grid;
    position: relative;
    margin: 24px auto;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: #fff;
}
.attendance-qrcode img, .attendance-qrcode canvas {
    max-width: 100%;
    height: auto !important;
}
.attendance-qr-sheet__instruction {
    max-width: 450px;
    margin: 0 auto;
    color: #475467;
}
.attendance-qr-sheet__meta {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
    color: var(--color-text-muted);
    font-size: 12px;
}
.attendance-qr-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.attendance-qr-actions form {
    margin: 0;
}
.main-content .attendance-table th, .main-content .attendance-table td {
    white-space: normal;
}
/* Notification detail */
.notification-detail-page {
    width: min(100%, 920px);
    margin: 0 auto;
}
.notification-detail-card {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}
.notification-detail-card__header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 28px;
    border-bottom: 1px solid var(--color-border);
    background: #fff;
}
.notification-detail-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 17px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    font-size: 20px;
}
.notification-detail-card__heading {
    min-width: 0;
}
.notification-detail-card__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
}
.notification-detail-card__heading h1 {
    margin: 0;
    color: var(--color-text-strong);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 600;
    line-height: 1.4;
}
.notification-detail-card__heading p {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 9px 0 0;
    color: var(--color-text-muted);
    font-size: 13px;
}
.notification-detail-card__actor {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 28px 0;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #fff;
}
.notification-detail-card__actor span, .notification-detail-card__actor small {
    display: block;
    color: var(--color-text-muted);
    font-size: 12px;
}
.notification-detail-card__actor strong {
    display: block;
    margin: 2px 0;
    color: var(--color-text-strong);
    font-size: 15px;
    font-weight: 600;
}
.notification-detail-card__content {
    padding: 24px 28px 28px;
    background: #fff;
}
.notification-detail-card__content h2 {
    margin: 0 0 14px;
    color: var(--color-text-strong);
    font-size: 17px;
    font-weight: 600;
}
.notification-detail-card__content > p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.7;
}
.notification-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.notification-detail-list__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 48px;
    padding: 13px 14px;
    border: 1px solid var(--color-border);
    border-radius: 13px;
    background: #fff;
    color: var(--color-text-strong);
    font-size: 14px;
    line-height: 1.55;
}
.notification-detail-list__item i {
    margin-top: 4px;
    color: var(--color-success);
    font-size: 12px;
}
.notification-detail-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 28px;
    border-top: 1px solid var(--color-border);
    background: #fff;
}
.notification-detail-map {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 28px 28px;
    padding: 18px 20px;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    background: #f0fdf4;
}
.notification-detail-map__info {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}
.notification-detail-map__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #dcfce7;
    color: #059669;
}
.notification-detail-map__info strong, .notification-detail-map__info small {
    display: block;
}
.notification-detail-map__info strong {
    color: var(--color-text-strong);
    font-size: 15px;
    font-weight: 600;
}
.notification-detail-map__info small {
    margin-top: 3px;
    color: var(--color-text-muted);
    font-size: 13px;
}
.notification-detail-map__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #86efac;
    border-radius: 12px;
    background: #fff;
    color: #047857;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}
.notification-detail-map__button:hover {
    border-color: #22c55e;
    background: #dcfce7;
    color: #065f46;
}
.notification-detail-card__back, .notification-detail-card__primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.notification-detail-card__back {
    background: var(--color-bg-base);
    color: var(--color-text-muted);
}
.notification-detail-card__primary {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}
.main-content .attendance-table td.attendance-table__location-pair, .main-content .attendance-table td.attendance-table__gps {
    white-space: nowrap;
}
.attendance-location-state--outside {
    border-color: #fedf89;
    background: #fffaeb;
}
.attendance-location-state--outside > i {
    color: #dc6803;
}
#attendance-retry-location {
    width: 100%;
    margin-bottom: 8px;
}
.attendance-record-management {
    overflow: visible;
}
.attendance-record-actions {
    position: relative;
}
.attendance-record-actions > summary {
    list-style: none;
    white-space: nowrap;
}
.attendance-record-actions > summary::-webkit-details-marker {
    display: none;
}
.attendance-record-actions__menu {
    position: fixed;
    z-index: 80;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(620px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.2);
    white-space: normal;
}
.attendance-record-actions[open]::before {
    content: "";
    position: fixed;
    z-index: 70;
    inset: 0;
    background: rgba(15, 23, 42, 0.44);
}
.attendance-record-actions__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3px;
    margin-bottom: 14px;
    text-align: left;
}
.attendance-record-actions__header > div {
    display: grid;
    gap: 3px;
}
.attendance-record-actions__header button {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #475467;
    background: #f2f4f7;
    cursor: pointer;
}
.attendance-record-actions__header strong {
    font-size: 17px;
}
.attendance-record-actions__header span {
    color: var(--color-text-muted);
    font-size: 13px;
}
.attendance-record-edit-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}
.attendance-record-edit-form label {
    display: grid;
    gap: 5px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}
.attendance-record-edit-form input, .attendance-record-edit-form select, .attendance-record-edit-form textarea {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    color: var(--color-text-primary);
    background: #fff;
    font: inherit;
}
.attendance-record-edit-form textarea {
    resize: vertical;
}
.attendance-record-edit-form__wide {
    grid-column: 1 / -1;
}
.attendance-record-edit-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fbff;
}
.attendance-record-edit-context > div:first-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.attendance-record-edit-context small {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
}
.attendance-record-edit-context strong {
    color: #101828;
    font-size: 13px;
    font-weight: 600;
}
.attendance-record-edit-context__qr {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}
.attendance-record-edit-context__qr > span {
    display: grid;
    gap: 2px;
    min-width: 94px;
    padding: 8px 10px;
    border: 1px solid #e4e7ec;
    border-radius: 9px;
    background: #fff;
}
.attendance-record-actions__danger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--color-primary-border-strong);
}
.attendance-record-actions__danger p {
    margin: 0;
    color: var(--color-primary-hover);
    font-size: 12px;
}
.attendance-record-actions__danger form {
    margin: 0;
}
/* Attendance report row actions and detail/edit offcanvas. */
.attendance-report-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}
.attendance-report-panel > .attendance-panel__header {
    margin-bottom: 16px;
}
.attendance-report-filter-box {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}
.attendance-report-filter-box__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e4e7ec;
}
.attendance-report-filter-box__intro {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}
.attendance-report-filter-box__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    color: var(--color-primary);
    background: var(--color-primary-subtle);
    font-size: 16px;
}
.attendance-report-filter-box__intro > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.attendance-report-filter-box__intro strong {
    color: #101828;
    font-size: 15px;
}
.attendance-report-filter-box__intro small {
    color: #667085;
    font-size: 12px;
}
.attendance-report-filter-box .attendance-report-actions > .attendance-button, .attendance-report-filter-box .attendance-report-actions > .maintenance-toolbar-button {
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.attendance-report-filter-box .attendance-report-actions > .maintenance-toolbar-button {
    border: 1px solid var(--color-primary-border-strong);
    color: var(--color-primary-hover);
    background: var(--color-primary-subtle);
}
.attendance-report-filter-box .attendance-filter-form {
    margin-top: 16px;
}
.attendance-report-filter-box .attendance-filter-form label > span {
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}
.attendance-report-filter-box .attendance-filter-form input, .attendance-report-filter-box .attendance-filter-form select {
    border-color: #dbe2ea;
    border-radius: var(--filter-control-radius);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.025);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}
.attendance-report-filter-box .attendance-filter-form input:focus, .attendance-report-filter-box .attendance-filter-form select:focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 9%, transparent);
}
.attendance-report-filter-box .attendance-filter-form__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 2px;
}
.attendance-report-filter-box .attendance-filter-form--employee .attendance-filter-form__actions {
    grid-column: auto;
    align-self: end;
    width: 100%;
    justify-content: stretch;
}
.attendance-report-filter-box .attendance-filter-form--employee .attendance-filter-form__actions .attendance-button {
    min-width: 0;
    flex: 1 1 0;
}
.attendance-report-filter-box .attendance-filter-form__actions .attendance-button {
    min-width: 132px;
    min-height: 44px;
}
.attendance-button--danger-soft {
    border-color: var(--color-primary-border-strong);
    color: var(--color-primary-hover);
    background: var(--color-primary-subtle);
}
.attendance-button--danger-soft:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-subtle);
}
.attendance-table__checkbox {
    width: 46px;
    min-width: 46px;
    text-align: center !important;
}
.attendance-table__actions-heading {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    text-align: right !important;
}
.attendance-record-management {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    text-align: right;
}
.attendance-record-action-buttons {
    justify-content: flex-end;
}
.attendance-record-action-buttons form {
    display: inline-flex;
    margin: 0;
}
.attendance-table--admin {
    min-width: 1080px;
}
.attendance-table--admin th, .attendance-table--admin td {
    padding-right: 10px;
    padding-left: 10px;
}
.attendance-table--admin td > strong, .attendance-table--admin td > small, .attendance-table__time-main {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.attendance-table__date {
    width: 100px;
    min-width: 100px;
}
.attendance-table__employee {
    width: auto;
    min-width: 175px;
    max-width: none;
}
.attendance-table__location {
    width: auto;
    min-width: 100px;
    max-width: none;
}
.attendance-table__time {
    width: 130px;
    max-width: 140px;
}
.attendance-table__time-main {
    display: flex;
    align-items: center;
    gap: 5px;
}
.attendance-table--admin .attendance-table__time-main .attendance-badge {
    flex: 0 0 auto;
    margin-left: 0;
}
.attendance-table__gps {
    width: 115px;
    min-width: 115px;
}
.attendance-table--admin .attendance-table__status {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    text-align: center;
}
.main-content .attendance-table--admin td, .main-content .attendance-table--compact td {
    white-space: nowrap;
}
.attendance-table--admin tbody td, .attendance-table--compact tbody td, .attendance-table--admin tbody td strong, .attendance-table--compact tbody td strong, .attendance-table--admin tbody .attendance-badge, .attendance-table--compact tbody .attendance-badge, .attendance-table--admin tbody .attendance-overall, .attendance-table--compact tbody .attendance-overall, .attendance-table--admin tbody .attendance-location-result, .attendance-table--compact tbody .attendance-location-result {
    font-weight: 400;
}
.attendance-table__detail-button {
    appearance: none;
    border: 0;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    transition:
        filter 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}
.attendance-table__detail-button:hover {
    filter: brightness(0.97);
}
.attendance-table__detail-button:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(23, 92, 211, 0.18);
}
.attendance-popup-details {
    display: grid;
    gap: 9px;
    margin-top: 4px;
    text-align: left;
}
.attendance-popup-details p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #eaecf0;
    border-radius: 9px;
    background: #f9fafb;
}
.attendance-popup-details p span {
    color: #667085;
    font-size: 13px;
}
.attendance-popup-details p strong {
    color: #101828;
    font-size: 14px;
}
.attendance-popup-details > a, .attendance-popup-details section > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    margin-top: 3px;
    border: 1px solid #b2ddff;
    border-radius: 9px;
    color: #175cd3;
    background: #eff8ff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.attendance-popup-details--pair section {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
}
.attendance-popup-details--pair section + section {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
}
.attendance-popup-details--pair h3 {
    margin: 0 0 2px;
    color: #101828;
    font-size: 14px;
}
.attendance-table__location-pair {
    min-width: 220px;
    white-space: nowrap;
}
.attendance-pair-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}
.attendance-pair-text > span {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}
.attendance-pair-text small {
    color: #98a2b3;
    font-size: 12px;
    font-weight: 400;
}
.attendance-pair-text > b {
    color: #cbd5e1;
    font-weight: 400;
}
.attendance-pair-text--combined-location em {
    font-size: inherit;
    font-style: normal;
    font-weight: 400;
}
.attendance-pair-text--stacked {
    display: inline-grid;
    align-items: start;
    gap: 4px;
    line-height: 1.35;
}
.attendance-pair-text--stacked > span {
    display: inline-flex;
    min-width: 0;
    align-items: baseline;
    gap: 4px;
}
.attendance-pair-text--combined-location .attendance-pair-text__value--matched {
    color: #067647;
}
.attendance-pair-text--combined-location .attendance-pair-text__value--outside {
    color: var(--color-primary-hover);
}
.attendance-pair-text--combined-location .attendance-pair-text__value--unreliable {
    color: #b54708;
}
.attendance-pair-text--gps .attendance-pair-text__value--matched {
    color: #067647;
}
.attendance-pair-text--gps .attendance-pair-text__value--outside {
    color: var(--color-primary-hover);
}
.attendance-pair-text--gps .attendance-pair-text__value--unreliable {
    color: #b54708;
}
.attendance-pair-text--gps .attendance-pair-text__value--pending {
    color: #98a2b3;
}
/* Keep attendance rows readable while a server still serves the previous
   compiled Blade structure. Both the old and current markup render alike. */
.attendance-table__location-pair > .attendance-flow-item {
    display: inline-flex !important;
    min-height: 0 !important;
    align-items: baseline;
    gap: 4px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #344054 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
}
.attendance-table__location-pair > .attendance-flow-item i {
    display: none !important;
}
.attendance-table__location-pair > .attendance-flow-item small {
    color: #98a2b3;
    font-size: 10px;
    font-weight: 600;
}
.attendance-table__location-pair > .attendance-flow-item strong {
    color: #344054;
    font-size: 12px;
    font-weight: 400;
}
.attendance-table__location-pair > .attendance-flow-item + .attendance-flow-item {
    margin-left: 8px;
}
.attendance-table__location-pair > .attendance-flow-item + .attendance-flow-item::before {
    content: "/";
    margin-right: 4px;
    color: #cbd5e1;
    font-weight: 400;
}
.attendance-table__gps {
    min-width: 210px;
}
.attendance-gps-pair {
    display: inline-flex !important;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}
.attendance-gps-pair .attendance-location-result {
    display: inline-flex !important;
    min-height: 0 !important;
    align-items: baseline;
    gap: 4px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}
.attendance-gps-pair .attendance-location-result small {
    color: #98a2b3;
    font-size: 10px;
    font-weight: 600;
}
.attendance-gps-pair .attendance-location-result + .attendance-location-result::before {
    content: "/";
    margin-right: 4px;
    color: #cbd5e1;
    font-weight: 400;
}
.attendance-location-change-confirm {
    display: grid;
    gap: 10px;
    margin-top: 2px;
    text-align: left;
}
.attendance-location-change-confirm > p {
    margin: 0 0 4px;
    color: #667085;
    font-size: 14px;
    line-height: 1.65;
}
.attendance-location-change-confirm > div {
    display: grid;
    gap: 3px;
    padding: 12px 14px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #f9fafb;
}
.attendance-location-change-confirm > div:last-child {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
}
.attendance-location-change-confirm span {
    color: #667085;
    font-size: 12px;
}
.attendance-location-change-confirm strong {
    overflow-wrap: anywhere;
    color: #101828;
    font-size: 15px;
}
.attendance-location-change-confirm > i {
    color: var(--color-primary);
    font-size: 13px;
    text-align: center;
}
.attendance-home-qr-popup {
    display: grid;
    justify-items: center;
    gap: 14px;
}
.attendance-home-qr-popup__code {
    padding: 18px;
    border: 1px solid #e4e7ec;
    border-radius: 13px;
    background: #fff;
}
.attendance-home-qr-popup__code canvas, .attendance-home-qr-popup__code img {
    display: block;
    width: 100% !important;
    height: auto !important;
}
.attendance-home-qr-popup p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}
body.attendance-record-offcanvas-open {
    overflow: hidden;
}
.attendance-record-offcanvas {
    position: fixed;
    z-index: 1600;
    inset: 0;
    visibility: hidden;
    pointer-events: none;
}
.attendance-record-offcanvas.is-open {
    visibility: visible;
    pointer-events: auto;
}
.attendance-record-offcanvas__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    opacity: 0;
    background: rgba(15, 23, 42, 0.46);
    cursor: pointer;
    transition: opacity 0.22s ease;
}
.attendance-record-offcanvas.is-open .attendance-record-offcanvas__backdrop {
    opacity: 1;
}
.attendance-record-offcanvas__panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: min(750px, calc(100vw - 44px));
    height: 100%;
    flex-direction: column;
    border-left: 1px solid #eaecf0;
    background: #fff;
    box-shadow: -22px 0 48px rgba(16, 24, 40, 0.18);
    transform: translateX(102%);
    transition: transform 0.25s ease;
}
.attendance-record-offcanvas.is-open .attendance-record-offcanvas__panel {
    transform: translateX(0);
}
.attendance-record-offcanvas__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 26px 20px;
    border-bottom: 1px solid #eaecf0;
}
.attendance-record-offcanvas__eyebrow {
    margin: 0 0 5px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.attendance-record-offcanvas__header h2 {
    margin: 0;
    color: #101828;
    font-size: 22px;
}
.attendance-record-offcanvas__header span {
    display: block;
    margin-top: 4px;
    color: #667085;
    font-size: 13px;
}
.attendance-record-offcanvas__close {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #eaecf0;
    border-radius: 10px;
    color: #475467;
    background: #fff;
    cursor: pointer;
}
.attendance-record-offcanvas__close:hover {
    color: var(--color-primary-hover);
    background: var(--color-primary-subtle);
}
.attendance-record-offcanvas__body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 26px 30px;
}
.attendance-location-offcanvas .attendance-record-offcanvas__panel {
    width: min(560px, calc(100vw - 44px));
}
.attendance-location-offcanvas__summary {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #f9fafb;
}
.attendance-location-offcanvas__icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 12px;
    color: #175cd3;
    background: #eff8ff;
    font-size: 19px;
}
.attendance-location-offcanvas__summary > div {
    display: grid;
    min-width: 0;
    gap: 3px;
}
.attendance-location-offcanvas__summary small {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}
.attendance-location-offcanvas__summary strong {
    overflow: hidden;
    color: #101828;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.attendance-location-offcanvas__summary span {
    color: #067647;
    font-size: 12px;
    font-weight: 700;
}
.attendance-location-offcanvas__form {
    display: grid;
    gap: 14px;
}
.attendance-location-offcanvas__form label {
    display: grid;
    gap: 6px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}
.attendance-location-offcanvas__form input {
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    color: #101828;
    background: #fff;
    font: inherit;
}
.attendance-location-offcanvas__form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12);
}
.attendance-location-offcanvas__coordinates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.attendance-location-offcanvas__notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 13px;
    border-radius: 10px;
    color: #175cd3;
    background: #eff8ff;
}
.attendance-location-offcanvas__notice i {
    margin-top: 3px;
}
.attendance-location-offcanvas__notice p {
    margin: 0;
    color: #475467;
    font-size: 12px;
    line-height: 1.6;
}
.attendance-location-offcanvas__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 6px;
}
.attendance-record-detail, .attendance-record-detail__hero > div {
    display: grid;
    gap: 14px;
}
.attendance-record-detail[hidden], .attendance-record-edit-form[hidden] {
    display: none !important;
}
.attendance-record-detail__hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #f9fafb;
}
.attendance-record-detail__hero > span {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    color: var(--color-primary-hover);
    background: var(--color-primary-subtle);
    font-size: 20px;
}
.attendance-record-detail__hero > div {
    gap: 2px;
}
.attendance-record-detail__hero small, .attendance-record-detail__grid small, .attendance-record-detail__reason small {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}
.attendance-record-detail__hero strong {
    color: #101828;
    font-size: 18px;
}
.attendance-record-detail__hero p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}
.attendance-record-detail__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.attendance-record-detail__grid article, .attendance-record-detail__reason {
    display: grid;
    gap: 6px;
    padding: 15px;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    background: #fff;
}
.attendance-record-detail__grid article.is-focused {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 7%, transparent);
}
.attendance-table__clickable-row {
    cursor: pointer;
    transition:
        background-color 0.16s ease,
        box-shadow 0.16s ease;
}
.main-content .attendance-table tbody .attendance-table__clickable-row:hover > td {
    background: #f8fbff;
}
.attendance-table__clickable-row:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}
.attendance-record-detail__grid strong {
    color: #101828;
    font-size: 15px;
}
.attendance-record-detail__grid span, .attendance-record-detail__grid a {
    color: #667085;
    font-size: 12px;
}
.attendance-record-detail__grid a {
    color: #175cd3;
    font-weight: 700;
    text-decoration: none;
}
.attendance-record-detail__reason p {
    margin: 0;
    color: #344054;
    line-height: 1.65;
    white-space: pre-wrap;
}
.attendance-record-detail > .attendance-button {
    width: 100%;
    margin-top: 2px;
}
.attendance-record-edit-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 8px;
}
/* =========================================================
   Member leave quota manager
   ========================================================= */
body.member-leave-offcanvas-open {
    overflow: hidden;
}
.member-leave-offcanvas {
    position: fixed;
    z-index: 1500;
    inset: 0;
    visibility: hidden;
    pointer-events: none;
}
.member-leave-offcanvas.is-open {
    visibility: visible;
    pointer-events: auto;
}
.member-leave-offcanvas__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    cursor: default;
    transition: opacity 0.22s ease;
}
.member-leave-offcanvas.is-open .member-leave-offcanvas__backdrop {
    opacity: 1;
}
.member-leave-offcanvas__panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: min(760px, calc(100vw - 32px));
    height: 100%;
    flex-direction: column;
    background: #fff;
    box-shadow: -18px 0 48px rgba(15, 23, 42, 0.16);
    transform: translateX(102%);
    transition: transform 0.25s ease;
    outline: none;
}
.member-leave-offcanvas.is-open .member-leave-offcanvas__panel {
    transform: translateX(0);
}
.member-leave-offcanvas__header {
    display: flex;
    min-height: 82px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 28px;
    border-bottom: 1px solid var(--color-line);
    background: #fff;
}
.member-leave-offcanvas__eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.member-leave-offcanvas__title {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}
.member-leave-offcanvas__close {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-line);
    border-radius: 11px;
    background: #fff;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease;
}
.member-leave-offcanvas__close:hover, .member-leave-offcanvas__close:focus-visible {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.member-leave-offcanvas__content {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px 30px;
    background: #f8fafc;
}
.member-leave-offcanvas__loading, .member-leave-offcanvas__error {
    display: flex;
    min-height: 420px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: var(--color-text-secondary);
    text-align: center;
}
.member-leave-offcanvas__loading[hidden], .member-leave-offcanvas__error[hidden], .member-leave-offcanvas__body[hidden] {
    display: none;
}
.member-leave-offcanvas__spinner {
    width: 34px;
    height: 34px;
    border: 3px solid var(--color-primary-subtle);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: member-leave-spin 0.75s linear infinite;
}
@keyframes member-leave-spin {
    to {
        transform: rotate(360deg);
    }
}
.member-leave-offcanvas__error > i {
    color: var(--color-warning);
    font-size: 29px;
}
.member-leave-offcanvas__error strong {
    color: var(--color-text-primary);
    font-size: 16px;
}
.member-leave-offcanvas__error button {
    margin-top: 6px;
    padding: 9px 16px;
    border: 0;
    border-radius: 9px;
    background: var(--color-primary);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.member-leave-offcanvas__footer {
    display: flex;
    min-height: 76px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 28px;
    border-top: 1px solid var(--color-line);
    background: #fff;
}
.member-leave-offcanvas__status {
    min-width: 0;
    margin-right: auto;
    color: var(--color-text-secondary);
    font-size: 12px;
    font-weight: 600;
}
.member-leave-offcanvas__status.is-success {
    color: #059669;
}
.member-leave-offcanvas__status.is-error {
    color: var(--color-primary-hover);
}
.member-leave-offcanvas__footer .btn.is-loading {
    cursor: wait;
    opacity: 0.75;
}
.member-leave-manager {
    display: grid;
    gap: 18px;
}
.member-leave-manager__employee {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px solid var(--color-primary-subtle);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-primary-subtle) 0%, #fff 68%);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}
.member-leave-manager__avatar {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border: 3px solid #fff;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}
.member-leave-manager__identity {
    min-width: 0;
}
.member-leave-manager__identity h3, .member-leave-manager__identity p {
    margin: 0;
}
.member-leave-manager__eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
}
.member-leave-manager__identity h3 {
    overflow: hidden;
    color: var(--color-text-primary);
    font-size: 18px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.member-leave-manager__identity p {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
    color: var(--color-text-secondary);
    font-size: 12px;
}
.member-leave-manager__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.member-leave-manager__summary-card {
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #fff;
}
.member-leave-manager__summary-card > span {
    display: block;
    margin-bottom: 5px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 600;
}
.member-leave-manager__summary-card strong {
    color: var(--color-text-primary);
    font-size: 19px;
    font-weight: 700;
}
.member-leave-manager__summary-card--used {
    border-color: #fed7aa;
    background: #fffaf5;
}
.member-leave-manager__summary-card--used strong {
    color: #c2410c;
}
.member-leave-manager__summary-card--remaining {
    border-color: #bbf7d0;
    background: #f6fef9;
}
.member-leave-manager__summary-card--remaining strong {
    color: #047857;
}
.member-leave-manager__notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e40af;
}
.member-leave-manager__notice i {
    margin-top: 2px;
}
.member-leave-manager__notice p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
}
.member-leave-manager__section {
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
}
.member-leave-manager__section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.member-leave-manager__section-heading h3, .member-leave-manager__section-heading p {
    margin: 0;
}
.member-leave-manager__section-heading h3 {
    color: var(--color-text-primary);
    font-size: 15px;
    font-weight: 700;
}
.member-leave-manager__section-heading p {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 11px;
}
.member-leave-manager__year {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}
.member-leave-manager__column-headings, .member-leave-manager__row {
    display: grid;
    grid-template-columns: minmax(190px, 1.65fr) minmax(58px, 0.48fr) minmax(112px, 0.85fr) minmax(70px, 0.58fr);
    align-items: center;
    gap: 10px;
}
.member-leave-manager__column-headings {
    padding: 0 12px 7px;
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 600;
}
.member-leave-manager__column-headings span:not(:first-child) {
    text-align: center;
}
.member-leave-manager__rows {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
}
.member-leave-manager__row {
    min-height: 72px;
    padding: 10px 12px;
}
.member-leave-manager__row + .member-leave-manager__row {
    border-top: 1px solid #edf2f7;
}
.member-leave-manager__row:hover {
    background: #fafcff;
}
.member-leave-manager__type {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}
.member-leave-manager__type-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
}
.member-leave-manager__type-icon--rose {
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.member-leave-manager__type-icon--amber {
    background: #fffbeb;
    color: #d97706;
}
.member-leave-manager__type-icon--blue {
    background: #eff6ff;
    color: #2563eb;
}
.member-leave-manager__type-icon--violet {
    background: #f5f3ff;
    color: #7c3aed;
}
.member-leave-manager__type-icon--teal {
    background: #f0fdfa;
    color: #0f766e;
}
.member-leave-manager__type-icon--pink {
    background: #fdf2f8;
    color: #db2777;
}
.member-leave-manager__type-icon--green {
    background: #f0fdf4;
    color: #16a34a;
}
.member-leave-manager__type > span:last-child {
    min-width: 0;
}
.member-leave-manager__type strong, .member-leave-manager__type small {
    display: block;
}
.member-leave-manager__type strong {
    overflow: hidden;
    color: var(--color-text-primary);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.member-leave-manager__type small {
    overflow: hidden;
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.member-leave-manager__metric {
    min-width: 0;
    text-align: center;
}
.member-leave-manager__metric strong, .member-leave-manager__metric small, .member-leave-manager__metric em {
    display: inline;
}
.member-leave-manager__metric strong {
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 700;
}
.member-leave-manager__metric small {
    margin-left: 3px;
    color: var(--color-text-muted);
    font-size: 10px;
}
.member-leave-manager__metric--remaining strong {
    color: #047857;
}
.member-leave-manager__metric em {
    display: block;
    margin-top: 2px;
    color: var(--color-primary-hover);
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
}
.member-leave-manager__metric em[hidden] {
    display: none;
}
.member-leave-manager__used-field {
    display: flex;
    height: 38px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}
.member-leave-manager__used-field:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}
.member-leave-manager__used-field input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 5px 0 10px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text-primary);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
}
.member-leave-manager__used-field > span:last-child {
    padding-right: 9px;
    color: var(--color-text-muted);
    font-size: 10px;
}
.member-leave-manager__umrah-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
}
.member-leave-manager__umrah-toggle input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}
.member-leave-manager__umrah-toggle > span {
    position: relative;
    display: inline-flex;
    width: 34px;
    height: 20px;
    flex: 0 0 34px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background-color 0.16s ease;
}
.member-leave-manager__umrah-toggle > span::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.24);
    content: "";
    transition: transform 0.16s ease;
}
.member-leave-manager__umrah-toggle input:checked + span {
    background: var(--color-success);
}
.member-leave-manager__umrah-toggle input:checked + span::after {
    transform: translateX(14px);
}
.member-leave-manager__umrah-toggle input:focus-visible + span {
    outline: 3px solid rgba(59, 130, 246, 0.22);
    outline-offset: 2px;
}
.member-leave-manager__umrah-toggle strong {
    color: var(--color-text-secondary);
    font-size: 10px;
    font-weight: 700;
}
.member-leave-manager__reason-section > label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 700;
}
.member-leave-manager__reason-section > label > span {
    color: var(--color-primary);
}
.member-leave-manager__reason-section > label > small {
    margin-left: auto;
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 500;
}
.member-leave-manager__reason-section textarea {
    display: block;
    width: 100%;
    min-height: 92px;
    resize: vertical;
    padding: 12px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    color: var(--color-text-primary);
    font: inherit;
    font-size: 12px;
    line-height: 1.55;
}
.member-leave-manager__reason-section textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}
.member-leave-manager__reason-section textarea::placeholder {
    color: var(--color-text-muted-2);
}
.member-leave-manager__form-error {
    margin-top: 8px;
    padding: 9px 11px;
    border-radius: 8px;
    background: var(--color-error-light);
    color: var(--color-primary-hover);
    font-size: 11px;
    font-weight: 600;
}
.member-leave-manager__form-error[hidden] {
    display: none;
}
.member-leave-manager__history-list {
    display: grid;
    gap: 12px;
}
.member-leave-manager__history-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
}
.member-leave-manager__history-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #f1f5f9;
    color: var(--color-text-muted);
    font-size: 12px;
}
.member-leave-manager__history-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.member-leave-manager__history-title strong {
    color: var(--color-text-primary);
    font-size: 11px;
}
.member-leave-manager__history-title time {
    color: var(--color-text-muted);
    font-size: 9px;
}
.member-leave-manager__history-item p {
    margin: 2px 0 5px;
    color: var(--color-text-secondary);
    font-size: 10px;
    line-height: 1.45;
}
.member-leave-manager__history-changes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.member-leave-manager__history-changes span {
    padding: 3px 7px;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 9px;
    font-weight: 600;
}
/* =========================================================
   Calendar event list
   ========================================================= */
.calendar-events-page {
    min-height: calc(100vh - var(--topbar-height) - 32px);
    background: transparent;
    color: var(--color-text-primary);
}
.calendar-events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0;
    border-bottom: 0;
    background: transparent;
    margin-bottom: 24px;
}
.calendar-events-page > .calendar-events-header .event-calendar-heading {
    display: block;
}
.calendar-events-page > .calendar-events-header .event-calendar-heading__icon {
    display: none;
}
.calendar-events-page > .calendar-events-header .event-calendar-heading h1 {
    margin: 0 0 5px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}
.calendar-events-page > .calendar-events-header .event-calendar-heading p {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}
.calendar-events-header__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}
.calendar-events-header__actions .maintenance-toolbar-button {
    min-height: 42px;
}
.calendar-events-header__actions .calendar-events-back-link {
    border: 1px solid #dce2e9;
    background: #fff;
    box-shadow: none;
    color: #596579;
    text-decoration: none;
}
.calendar-events-header__actions .calendar-events-back-link:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.calendar-events-add-link {
    text-decoration: none;
}
.calendar-events-content {
    padding: 0 0 16px;
}
.calendar-events-filter {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) 160px 160px minmax(150px, 0.7fr) auto;
    align-items: end;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--color-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 32, 51, 0.035);
}
.calendar-events-filter__search {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}
.calendar-events-filter__search-control {
    position: relative;
    display: flex;
    align-items: center;
}
.calendar-events-filter__search-control > i {
    position: absolute;
    left: 16px;
    z-index: 1;
    color: #93a0b2;
    font-size: 14px;
    pointer-events: none;
}
.calendar-events-filter__search input, .calendar-events-filter__field :is(input, select) {
    width: 100%;
    height: var(--filter-control-height);
    min-height: var(--filter-control-height);
    border: 1px solid #dce3eb;
    border-radius: var(--filter-control-radius);
    outline: 0;
    background: #fff;
    color: #263145;
    font-family: var(--font-body);
    font-size: 12.5px;
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}
.calendar-events-filter__search input {
    padding: 0 15px 0 43px;
}
.calendar-events-filter__search input:focus, .calendar-events-filter__field :is(input, select):focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 7%, transparent);
}
.calendar-events-filter__field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}
.calendar-events-filter__field > span, .calendar-events-filter__label {
    color: #687589;
    font-size: 10.5px;
    font-weight: 650;
}
.calendar-events-filter__field :is(input, select) {
    padding: 0 11px;
}
/* Use the same Tom Select treatment as the other list filters. */
.calendar-events-filter__field--select > .ts-wrapper {
    width: 100%;
    height: var(--filter-control-height);
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
.calendar-events-filter__field--select .ts-control {
    width: 100%;
    height: var(--filter-control-height);
    min-height: var(--filter-control-height);
    padding: 9px 38px 9px 11px;
    border: 1px solid #dce3eb !important;
    border-radius: var(--filter-control-radius) !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #263145;
    font-family: var(--font-body);
    font-size: 12.5px;
}
.calendar-events-filter__field--select .ts-wrapper.focus .ts-control {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 7%, transparent) !important;
}
.calendar-events-filter__field--select .ts-dropdown {
    min-width: 100%;
    margin-top: 5px;
    border-radius: var(--filter-control-radius);
    border: 1px solid #dbe3ec;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}
.calendar-events-filter__field--select .ts-dropdown .option {
    padding: 9px 12px;
}
.calendar-events-filter__field--select .ts-dropdown .active {
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.calendar-events-filter__actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
/* Old cached event-list markup may still contain this submit button. Filters
   are applied automatically by calendar-events-list.js, so never show it. */
.calendar-events-filter__submit {
    display: none !important;
}
.calendar-events-filter__reset {
    display: inline-flex;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: var(--filter-control-radius);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    text-decoration: none;
}
.calendar-events-filter__reset {
    width: 44px;
    border: 1px solid #dce3eb;
    background: #fff;
    color: #657185;
}
.calendar-events-filter__reset:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.calendar-events-alert {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 12px;
}
.calendar-events-alert--error {
    border: 1px solid var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.calendar-events-table-card {
    overflow: hidden;
    margin-top: 18px;
    border: 1px solid var(--color-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 32, 51, 0.035);
}
.calendar-events-results {
    position: relative;
    min-height: 180px;
    transition: opacity 0.16s ease;
}
.calendar-events-results.is-loading {
    opacity: 0.55;
    pointer-events: none;
}
.calendar-events-results.is-loading::after {
    position: absolute;
    z-index: 5;
    top: 52px;
    left: 50%;
    width: 28px;
    height: 28px;
    border: 3px solid var(--color-primary-border-strong);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    content: "";
    animation: event-calendar-spin 0.7s linear infinite;
}
.calendar-events-table-summary {
    display: flex;
    min-height: 57px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 18px;
    border-bottom: 1px solid var(--color-line);
    background: #fbfcfd;
}
.calendar-events-table-summary > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
}
.calendar-events-table-summary strong {
    color: var(--color-primary);
    font-size: 20px;
}
.calendar-events-table-summary span, .calendar-events-table-summary p {
    margin: 0;
    color: #748095;
    font-size: 11.5px;
}
.calendar-events-table-wrap {
    overflow-x: auto;
}
.calendar-events-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: collapse;
    table-layout: fixed;
}
.calendar-events-table th, .calendar-events-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #edf0f4;
    vertical-align: middle;
    text-align: left;
}
.calendar-events-table th {
    background: #fbfcfd;
    color: #5f6b7d;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.calendar-events-table td {
    color: #354054;
    font-size: 12px;
}
.calendar-events-table tbody tr:last-child td {
    border-bottom: 0;
}
.calendar-events-table tbody tr:hover td {
    background: #fdfefe;
}
.calendar-events-table th:nth-child(1), .calendar-events-table td:nth-child(1) {
    width: 48px;
}
.calendar-events-table th:nth-child(2), .calendar-events-table td:nth-child(2) {
    width: 205px;
}
.calendar-events-table th:nth-child(3), .calendar-events-table td:nth-child(3) {
    width: 285px;
}
.calendar-events-table th:nth-child(4), .calendar-events-table td:nth-child(4) {
    width: 155px;
}
.calendar-events-table th:nth-child(5), .calendar-events-table td:nth-child(5) {
    width: 155px;
}
.calendar-events-table th:nth-child(6), .calendar-events-table td:nth-child(6) {
    width: 145px;
}
.calendar-events-table th:nth-child(7), .calendar-events-table td:nth-child(7) {
    width: 118px;
}
.calendar-events-table__check {
    text-align: center !important;
}
.calendar-events-table__action {
    text-align: right !important;
}
.calendar-events-table__action-heading {
    text-align: right !important;
}
.calendar-event-list-date {
    display: flex;
    align-items: center;
    gap: 11px;
}
.calendar-event-list-date__color {
    width: 4px;
    height: 37px;
    flex: 0 0 4px;
    border-radius: 999px;
    background: var(--event-color, var(--color-primary));
}
.calendar-event-list-date > div, .calendar-event-list-title {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}
.calendar-event-list-date strong {
    color: #263145;
    font-size: 12px;
}
.calendar-event-list-date span, .calendar-event-list-title > span {
    overflow: hidden;
    color: #8994a5;
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.calendar-event-list-title__button {
    overflow: hidden;
    padding: 0;
    border: 0;
    background: transparent;
    color: #263145;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}
.calendar-events-table tbody tr[data-calendar-event-row] {
    cursor: pointer;
}
.calendar-events-table tbody tr[data-calendar-event-row]:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--color-primary) 35%, transparent);
    outline-offset: -2px;
}
.calendar-list-detail-calendar-link {
    text-decoration: none;
}
.calendar-event-list-actions, .calendar-list-detail-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}
.calendar-event-list-actions {
    justify-content: flex-start;
}
.calendar-list-detail-actions a {
    text-decoration: none;
}
#calendar-list-detail-edit-link[hidden] {
    display: none !important;
}
.calendar-event-list-participants, .calendar-event-list-creator {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.calendar-event-list-participants__avatars {
    display: flex;
    padding-left: 7px;
}
.calendar-event-list-participants__avatars > span {
    display: inline-flex;
    margin-left: -7px;
    border: 2px solid #fff;
    border-radius: 50%;
}
.calendar-event-list-participants__avatars .avatar, .calendar-event-list-creator .avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    object-fit: cover;
}
.calendar-event-list-participants > span, .calendar-event-list-creator > span {
    overflow: hidden;
    max-width: 105px;
    color: #697589;
    font-size: 10.5px;
    text-overflow: ellipsis;
}
.calendar-event-list-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 650;
    white-space: nowrap;
}
.calendar-event-list-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.calendar-event-list-status.is-past {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: var(--color-text-muted);
}
.calendar-event-list-status.is-upcoming {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}
.calendar-event-list-status.is-active {
    border-color: #a7f3d0;
    background: var(--color-success-light);
    color: #059669;
}
.calendar-events-table__empty {
    padding: 52px 20px !important;
    text-align: center !important;
}
.calendar-events-pagination .pagination-container {
    margin-top: 18px;
}
/* Shared mobile filter accordion */
.app-filter-trigger-anchor {
    display: none;
    align-items: center;
    margin-left: auto;
}
.app-filter-trigger {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--color-primary-border-strong);
    border-radius: var(--filter-control-radius);
    background: #fff;
    color: var(--color-primary);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.app-filter-offcanvas, .app-filter-offcanvas__backdrop {
    display: none;
}
.app-filter-accordion {
    display: contents;
}
.app-filter-accordion__inner {
    display: contents;
}
.topbar-mobile-logo {
    display: none;
}
/* Keep legacy compiled headers clean while Blade view caches are refreshed. */
.topbar-global-search, .vault-unlock-submit {
    display: none !important;
}
/* ======================== Task project and status configuration ======================== */
.task-configuration-page {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
}
body.embedded-page .task-configuration-page {
    max-width: none;
    padding: 16px;
}
body.embedded-page .task-configuration-page__heading,
body.embedded-page .task-configuration-summary,
body.embedded-page .task-configuration-directory__toolbar {
    display: none;
}
body.embedded-page .task-configuration-page__header {
    align-items: center;
    margin-bottom: 12px;
}
body.embedded-page .task-configuration-page__actions {
    margin-left: auto;
}
.task-configuration-page__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.task-configuration-page__heading {
    min-width: 0;
}
.task-configuration-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.task-configuration-page__breadcrumb a {
    color: inherit;
    text-decoration: none;
}
.task-configuration-page__breadcrumb a:hover {
    color: var(--color-primary);
}
.task-configuration-page__breadcrumb i {
    font-size: 10px;
}
.task-configuration-page__breadcrumb span {
    color: var(--color-primary);
    font-weight: 600;
}
.task-configuration-page__title {
    margin: 0 0 4px;
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}
.task-configuration-page__description {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.task-configuration-page__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.task-configuration-inline-create-row[hidden] {
    display: none !important;
}
.task-configuration-inline-create-row td {
    padding-top: 8px;
    padding-bottom: 8px;
    vertical-align: middle;
    background: var(--color-bg-surface-soft);
}
.task-configuration-inline-input,
.task-configuration-inline-select {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 6px 9px;
    border: 1px solid var(--color-line-strong);
    border-radius: 8px;
    background: var(--color-white);
    color: var(--color-text-primary);
    font: inherit;
}
.task-configuration-inline-color {
    width: 42px;
    height: 36px;
    padding: 3px;
    border: 1px solid var(--color-line-strong);
    border-radius: 8px;
    background: var(--color-white);
    cursor: pointer;
}
.task-configuration-inline-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.task-configuration-inline-create-row .task-configuration-table__status-name {
    gap: 6px;
}
.task-configuration-inline-create-row .task-configuration-inline-select {
    flex: 0 0 125px;
}
.task-configuration-inline-create-row .task-configuration-inline-save,
.task-configuration-inline-create-row .task-configuration-inline-cancel {
    min-height: 32px;
    padding: 0 9px;
    font-size: 12px;
    white-space: nowrap;
}
.task-configuration-page .task-configuration-page__button {
    min-height: 40px;
    padding: 0 15px;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.task-configuration-page .task-configuration-page__button--trash {
    color: var(--color-text-muted);
}
.task-configuration-page .task-configuration-page__button--trash:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.task-configuration-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.task-configuration-summary__card {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--color-line-strong);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-card-soft);
}
.task-configuration-summary__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 16px;
}
.task-configuration-summary__icon--primary {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.task-configuration-summary__icon--success {
    background: var(--color-success-light);
    color: #059669;
}
.task-configuration-summary__icon--info {
    background: #eff6ff;
    color: #2563eb;
}
.task-configuration-summary__card > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}
.task-configuration-summary__card span {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.task-configuration-summary__card strong {
    color: var(--color-text-primary);
    font-size: 16px;
    font-weight: 600;
}
.task-configuration-directory {
    overflow: hidden;
    border: 1px solid var(--color-line-strong);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-card-soft);
}
.task-configuration-directory__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 58px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-line);
}
.task-configuration-directory__heading {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
}
.task-configuration-directory__title {
    color: var(--color-text-primary);
    font-size: 17px;
    font-weight: 600;
}
.task-configuration-directory__count {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 90px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.task-order-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 4px 9px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.task-order-status.is-saving {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}
.task-order-status.is-saved {
    border-color: #a7f3d0;
    background: var(--color-success-light);
    color: #047857;
}
.task-order-status.is-error {
    border-color: var(--color-primary-border-strong);
    background: var(--color-error-light);
    color: var(--color-primary-hover);
}
.task-configuration-table-wrap {
    width: 100%;
    overflow-x: auto;
    scrollbar-color: var(--color-line-strong) transparent;
    scrollbar-width: thin;
}
.task-configuration-table {
    width: 100%;
    min-width: 860px;
    table-layout: fixed;
    border-collapse: collapse;
}
.task-configuration-table--projects {
    min-width: 1020px;
}
.task-configuration-table--projects thead {
    display: table-header-group !important;
}
.task-configuration-table--projects tbody {
    display: table-row-group !important;
}
.task-configuration-table--projects .task-configuration-table__row {
    display: table-row !important;
}
.task-configuration-table--projects .task-configuration-table__row > td {
    display: table-cell !important;
}
.task-configuration-table--statuses {
    min-width: 860px;
}
.task-configuration-table th, .task-configuration-table td {
    height: 58px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--color-line);
    vertical-align: middle;
}
.task-configuration-table th {
    height: 42px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.task-configuration-table td {
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
}
.task-configuration-table tbody tr:last-child td {
    border-bottom: 0;
}
/* ======================== Task notification settings ======================== */
.task-notification-settings-page {
    max-width: 1580px;
    margin: 0 auto;
    color: var(--color-text-primary);
}
.task-notification-settings-header {
    margin-bottom: 18px;
}
.task-notification-settings-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.task-notification-settings-breadcrumb a:hover, .task-notification-settings-breadcrumb span {
    color: var(--color-primary);
}
.task-notification-settings-breadcrumb i {
    font-size: 10px;
}
.task-notification-settings-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}
.task-notification-settings-heading h1 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}
.task-notification-settings-heading p {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
}
.task-notification-settings-back-link {
    flex: 0 0 auto;
    min-height: 38px;
}
.task-notification-settings-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 400;
}
.task-notification-settings-alert > i {
    margin-top: 2px;
}
.task-notification-settings-alert strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
}
.task-notification-settings-alert ul {
    margin: 0;
    padding-left: 18px;
}
.task-notification-settings-alert--error {
    border-color: var(--color-primary-border-strong);
    background: var(--color-error-light);
    color: var(--color-primary-hover);
}
.task-notification-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.task-notification-summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 86px;
    padding: 16px 18px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card);
}
.task-notification-summary-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 17px;
}
.task-notification-summary-card__icon--statuses {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.task-notification-summary-card__icon--configured {
    background: var(--color-success-light);
    color: #059669;
}
.task-notification-summary-card__icon--recipients {
    background: #eff6ff;
    color: #2563eb;
}
.task-notification-summary-card div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}
.task-notification-summary-card span {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.task-notification-summary-card strong {
    font-size: 17px;
    font-weight: 600;
}
.task-notification-settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.task-notification-status-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}
.task-notification-status-section__header > div {
    min-width: 0;
}
.task-notification-sound-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card);
}
.task-notification-sound-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 17px;
}
.task-notification-sound-card__content {
    flex: 1 1 auto;
    min-width: 0;
}
.task-notification-sound-card__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.task-notification-sound-card__heading h2 {
    margin: 0 0 3px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}
.task-notification-sound-card__heading p {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
}
.task-notification-sound-card__format, .task-notification-status-section__member-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 90px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.task-notification-sound-card__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.task-notification-file-picker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.2s,
        color 0.2s;
}
.task-notification-file-picker:hover {
    background: var(--color-primary);
    color: #fff;
}
.task-notification-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
.task-notification-file-name {
    flex: 1 1 200px;
    min-width: 0;
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.task-notification-sound-test {
    min-height: 38px;
}
.task-notification-sound-feedback {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.task-notification-module {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card);
}
.task-notification-module__subheader > div > span {
    display: block;
    margin-bottom: 3px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.task-notification-module__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.task-notification-module__heading small {
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.task-notification-modules {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.task-notification-module {
    scroll-margin-top: 16px;
}
.task-notification-module__summary {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto 34px;
    align-items: center;
    gap: 13px;
    padding: 15px 18px;
    list-style: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
.task-notification-module__summary::-webkit-details-marker {
    display: none;
}
.task-notification-module__summary:hover, .task-notification-module[open] > .task-notification-module__summary {
    background: var(--color-bg-surface-soft);
}
.task-notification-module[open] > .task-notification-module__summary {
    border-bottom: 1px solid var(--color-line);
}
.task-notification-module__icon {
    width: 44px;
    height: 44px;
    font-size: 17px;
}
.task-notification-module__heading {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.task-notification-module__heading strong {
    margin: 1px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}
.task-notification-module__heading > span {
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.task-notification-module__stats {
    display: flex;
    align-items: center;
    gap: 7px;
}
.task-notification-module__stats > span {
    padding: 5px 9px;
    border-radius: 90px;
    background: var(--color-bg-surface);
    color: var(--color-text-muted);
    font-size: 12px;
    white-space: nowrap;
}
.task-notification-module__stats strong {
    color: var(--color-text-primary);
    font-weight: 600;
}
.task-notification-module__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--color-bg-surface);
    color: var(--color-text-muted);
    font-size: 11px;
}
.task-notification-module__toggle i {
    transition: transform 0.2s;
}
.task-notification-module[open] .task-notification-module__toggle i {
    transform: rotate(180deg);
}
.task-notification-module__body {
    padding: 16px;
    background: var(--color-bg-surface-soft);
}
.task-notification-module__subheader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.task-notification-module__subheader h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}
.task-notification-module__subheader p {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.5;
}
.task-notification-module__subheader > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
}
.task-notification-module__subheader > a:hover {
    text-decoration: underline;
}
.task-notification-module__body > .task-notification-status-grid {
    padding: 0;
    background: transparent;
}
.task-notification-module__divider {
    height: 1px;
    margin: 18px 0;
    background: var(--color-border);
}
.task-notification-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
    background: var(--color-bg-surface-soft);
}
.task-notification-status-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-surface);
}
.task-notification-status-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--color-line);
}
.task-notification-status-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid color-mix(in srgb, var(--ui-color) 20%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--ui-color) 10%, #fff);
    color: var(--ui-color);
    font-size: 16px;
}
.task-notification-status-card__icon--system {
    border-color: var(--color-border);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.task-notification-status-card__title {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 1px;
}
.task-notification-status-card__title span {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.task-notification-status-card__title h3 {
    overflow: hidden;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.task-notification-status-card__selected-count {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 90px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
}
.task-notification-status-card__description {
    min-height: 54px;
    padding: 10px 14px 0;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.55;
}
.task-notification-status-card__description strong {
    display: inline-block;
    margin-left: 4px;
    color: var(--color-primary);
    font-weight: 600;
}
.task-notification-status-card__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px 8px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.task-notification-status-card__toolbar > div {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.task-notification-card-action {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    font: inherit;
    cursor: pointer;
}
.task-notification-card-action:hover {
    color: var(--color-primary);
}
.task-notification-member-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    max-height: 218px;
    margin: 0 7px 10px 14px;
    padding-right: 7px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}
.task-notification-member-list::-webkit-scrollbar {
    width: 5px;
}
.task-notification-member-list::-webkit-scrollbar-track {
    background: transparent;
}
.task-notification-member-list::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: var(--color-border);
}
.task-notification-member-option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 38px;
    padding: 7px 9px;
    border: 1px solid var(--color-line-strong);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    transition:
        border-color 0.2s,
        background-color 0.2s,
        box-shadow 0.2s;
}
.task-notification-member-option:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
}
.task-notification-member-option.is-checked {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
    box-shadow: inset 3px 0 0 var(--color-primary);
}
.task-notification-member-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
.task-notification-member-option__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    background: #fff;
    color: transparent;
    font-size: 10px;
    transition:
        border-color 0.2s,
        background-color 0.2s,
        color 0.2s;
}
.task-notification-member-option.is-checked .task-notification-member-option__check {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}
.task-notification-member-option__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--color-bg-soft);
}
.task-notification-member-option__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.task-notification-member-option__name {
    min-width: 0;
    overflow: hidden;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.task-notification-member-list__empty, .task-notification-status-grid__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.task-notification-member-list__empty {
    grid-column: 1 / -1;
    gap: 8px;
    min-height: 80px;
}
.task-notification-status-grid__empty {
    grid-column: 1 / -1;
    min-height: 180px;
    flex-direction: column;
    gap: 6px;
}
.task-notification-status-grid__empty i {
    margin-bottom: 4px;
    color: var(--color-text-muted-2);
    font-size: 25px;
}
.task-notification-status-grid__empty strong {
    color: var(--color-text-primary);
    font-size: 15px;
    font-weight: 600;
}
.task-notification-automatic-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.55;
}
.task-notification-automatic-note > i {
    margin-top: 3px;
    color: var(--color-primary);
}
.task-notification-automatic-note > div {
    display: grid;
    gap: 2px;
}
.task-notification-automatic-note strong {
    color: var(--color-text-primary);
    font-weight: 600;
}
.task-notification-settings-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 15px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card);
}
.task-notification-settings-actions > div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.task-notification-settings-actions > div i {
    color: var(--color-info);
}
.task-notification-settings-submit {
    min-height: 40px;
    padding: 0 18px;
    font-weight: 600;
}
/* ======================== Sidebar menu visibility settings ======================== */
.menu-visibility-guide {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-bg-surface-soft);
    margin-top: 15px;
}
.menu-visibility-order-link {
    min-height: 40px;
    padding: 0 14px;
    white-space: nowrap;
}
.menu-visibility-order-link.is-active {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.menu-visibility-guide__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 14px;
}
.menu-visibility-guide__content {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
}
.menu-visibility-guide__content strong {
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
}
.menu-visibility-guide__content span {
    color: var(--color-text-muted);
    font-size: 12px;
}
.menu-visibility-guide__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: var(--color-text-muted-2);
    font-size: 12px;
}
.menu-visibility-section-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    background: var(--color-bg-surface-soft);
}
.menu-visibility-section-list--settings {
    padding-top: 0;
}
.menu-visibility-section-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-bg-surface);
}
.menu-visibility-section-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-line);
}
.menu-visibility-section-card__header .task-notification-status-card__selected-count {
    margin-left: auto;
}
.menu-visibility-section-drag-handle, .menu-visibility-item-drag-handle {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: var(--color-text-muted-2);
    cursor: grab;
    touch-action: none;
    user-select: none;
}
.menu-order-page .menu-visibility-section-drag-handle,
.menu-order-page .menu-visibility-item-drag-handle,
.menu-visibility-settings-page.is-ordering .menu-visibility-section-drag-handle,
.menu-visibility-settings-page.is-ordering .menu-visibility-item-drag-handle,
.menu-order-drag-preview .menu-visibility-section-drag-handle,
.menu-order-drag-preview .menu-visibility-item-drag-handle {
    display: inline-flex;
}
.menu-visibility-section-drag-handle {
    width: 30px;
    height: 36px;
    border-radius: 8px;
}
.menu-visibility-section-drag-handle:hover, .menu-visibility-item-drag-handle:hover {
    color: var(--color-primary);
}
.menu-visibility-section-drag-handle:active, .menu-visibility-item-drag-handle:active {
    cursor: grabbing;
}
.menu-visibility-option-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    min-height: 84px;
    padding: 12px;
}
.menu-visibility-option-grid:empty::after,
.menu-visibility-settings-page.is-ordering .menu-visibility-menu-list:empty::after {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1;
    min-height: 58px;
    border: 1px dashed var(--color-border);
    border-radius: 10px;
    color: var(--color-text-muted);
    font-size: 12px;
}
.menu-visibility-option-grid:empty::after {
    content: "ลากเมนูมาวางในหมวดนี้";
}
.menu-visibility-settings-page.is-ordering .menu-visibility-menu-list:empty::after {
    margin: 10px;
    content: "ลากเมนูมาวางใน Section นี้";
}
.menu-visibility-item-drag-handle {
    width: 22px;
    align-self: stretch;
    margin: -6px 0 -6px -4px;
    border-radius: 6px;
}
.menu-visibility-menu-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}
.menu-visibility-menu-item {
    min-width: 0;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-bg-surface);
}
.menu-visibility-menu-item:last-child {
    border-bottom: 0;
}
.menu-visibility-menu-item[open] {
    background: var(--color-bg-surface-soft);
}
.menu-visibility-menu-summary {
    display: grid;
    align-items: center;
    grid-template-columns: 34px minmax(0, 1fr) auto 18px;
    gap: 10px;
    min-height: 62px;
    padding: 10px 14px;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.2s;
}
.menu-visibility-menu-summary::-webkit-details-marker {
    display: none;
}
.menu-visibility-menu-summary:hover {
    background: var(--color-bg-hover);
}
.menu-visibility-menu-item[open] .menu-visibility-menu-summary {
    border-bottom: 1px solid var(--color-line);
    background: var(--color-primary-light);
}
.menu-visibility-menu-summary__count {
    padding: 5px 9px;
    border-radius: var(--radius-full);
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.menu-visibility-menu-item[open] .menu-visibility-menu-summary__count {
    background: var(--color-bg-surface);
    color: var(--color-primary);
}
.menu-visibility-menu-summary__chevron {
    color: var(--color-text-muted-2);
    font-size: 12px;
    transition: transform 0.2s;
}
.menu-visibility-menu-item[open] .menu-visibility-menu-summary__chevron {
    color: var(--color-primary);
    transform: rotate(180deg);
}
.menu-visibility-menu-summary__order-help {
    display: none;
}
.menu-visibility-role-matrix {
    padding: 14px;
}
.menu-visibility-role-matrix__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}
.menu-visibility-role-matrix__header > div:first-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
}
.menu-visibility-role-matrix__header strong {
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
}
.menu-visibility-role-matrix__header span {
    color: var(--color-text-muted);
    font-size: 12px;
}
.menu-visibility-role-matrix__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}
.menu-visibility-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
}
.menu-visibility-role-option {
    min-height: 48px;
    background: var(--color-bg-surface);
}
.menu-visibility-role-option.is-disabled {
    background: var(--color-bg-surface-soft);
    opacity: 0.58;
    cursor: not-allowed;
}
.menu-visibility-role-option__body {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 1px;
}
.menu-visibility-role-option__body strong, .menu-visibility-role-option__body small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.menu-visibility-role-option__body strong {
    color: var(--color-text-primary);
    font-size: 12px;
    font-weight: 600;
}
.menu-visibility-role-option__body small {
    color: var(--color-text-muted);
    font-size: 10px;
}
.menu-visibility-settings-page .menu-order-guide {
    display: none;
}
.menu-visibility-settings-page.is-ordering .menu-visibility-guide {
    display: none;
}
.menu-visibility-settings-page.is-ordering .menu-order-guide {
    display: flex;
}
.menu-visibility-settings-page.is-ordering .menu-visibility-section-list--settings {
    padding-top: 14px;
}
.menu-visibility-settings-page.is-ordering .menu-visibility-menu-list {
    min-height: 64px;
}
.menu-visibility-settings-page.is-ordering .menu-visibility-menu-summary {
    grid-template-columns: 22px 34px minmax(0, 1fr);
    cursor: default;
}
.menu-visibility-settings-page.is-ordering .menu-visibility-menu-summary > .menu-visibility-item-drag-handle {
    grid-column: 1;
    grid-row: 1;
}
.menu-visibility-settings-page.is-ordering .menu-visibility-menu-summary > .menu-visibility-option__icon {
    grid-column: 2;
    grid-row: 1;
}
.menu-visibility-settings-page.is-ordering .menu-visibility-menu-summary > .menu-visibility-option__body {
    grid-column: 3;
    grid-row: 1;
}
.menu-visibility-settings-page.is-ordering .menu-visibility-menu-summary__role-help,
.menu-visibility-settings-page.is-ordering .menu-visibility-menu-summary__count,
.menu-visibility-settings-page.is-ordering .menu-visibility-menu-summary__chevron,
.menu-visibility-settings-page.is-ordering .menu-visibility-role-matrix {
    display: none;
}
.menu-visibility-settings-page.is-ordering .menu-visibility-menu-summary__order-help {
    display: block;
}
.menu-visibility-settings-page.is-ordering .menu-visibility-menu-item[open] .menu-visibility-menu-summary {
    border-bottom: 0;
    background: var(--color-bg-surface);
}
.menu-visibility-settings-page.is-ordering .menu-visibility-menu-item[open] {
    background: var(--color-bg-surface);
}
.menu-visibility-order-actions {
    display: none;
}
.menu-visibility-settings-page.is-ordering .menu-visibility-role-actions {
    display: none;
}
.menu-visibility-settings-page.is-ordering .menu-visibility-order-actions {
    display: flex;
}
.menu-visibility-order-actions__buttons {
    flex: 0 0 auto;
}
.menu-order-guide {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-bg-surface);
    color: var(--color-text-muted);
    font-size: 12px;
    margin-top: 15px;
}
.menu-order-guide span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.menu-order-guide i {
    color: var(--color-primary);
}
.menu-order-guide strong {
    margin-left: auto;
    color: var(--color-primary);
    font-weight: 600;
}
.menu-order-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 11px;
    background: var(--color-bg-surface);
    transition:
        border-color 0.2s,
        background 0.2s,
        box-shadow 0.2s;
}
.menu-order-item:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}
.menu-order-item .menu-visibility-item-drag-handle {
    align-self: stretch;
    margin: -4px 0 -4px -5px;
}
.menu-order-item .menu-visibility-option__icon {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.menu-order-item.is-dragging, .menu-visibility-section-card.is-dragging {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    box-shadow: none;
    opacity: 0.35;
    pointer-events: none;
}
.menu-order-drag-preview {
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    max-width: calc(100vw - 24px);
    margin: 0;
    border-color: var(--color-primary);
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-hover);
    opacity: 0.98;
    pointer-events: none;
    cursor: grabbing;
    transform-origin: top left;
    transition: none;
    will-change: transform;
}
.menu-order-drag-preview--section {
    max-height: 70vh;
    overflow: hidden;
}
.menu-order-drag-preview .menu-visibility-section-drag-handle,
.menu-order-drag-preview .menu-visibility-item-drag-handle {
    color: var(--color-primary);
}
.menu-order-sortable-ghost {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    box-shadow: none;
    opacity: 0.3;
}
.menu-order-sortable-chosen {
    cursor: grabbing;
}
.menu-order-sortable-drag {
    z-index: 999999;
    border-color: var(--color-primary);
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-hover);
    opacity: 1;
    pointer-events: none;
    cursor: grabbing;
    transition: none;
}
.menu-order-sortable-drag.menu-visibility-section-card {
    max-height: 70vh;
    overflow: hidden;
}
body.menu-order-is-dragging {
    cursor: grabbing;
    user-select: none;
}
.menu-visibility-option__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
}
.menu-visibility-menu-item[open] .menu-visibility-option__icon {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.menu-visibility-option__body {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
}
.menu-visibility-option__body strong {
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
}
.menu-visibility-option__body small {
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 11px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* ======================== Email notification settings ======================== */
.email-notification-settings-page {
    max-width: 1580px;
    margin: 0 auto;
    color: var(--color-text-primary);
}
.email-notification-settings-header {
    margin-bottom: 18px;
}
.email-notification-settings-warning {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 16px;
    padding: 13px 15px;
    border: 1px solid #fcd34d;
    border-radius: 11px;
    background: #fffbeb;
    color: #92400e;
    font-size: 13px;
}
.email-notification-settings-warning > i {
    margin-top: 2px;
}
.email-notification-settings-warning div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.email-notification-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.email-notification-summary article {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 86px;
    padding: 16px 18px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card);
}
.email-notification-summary article > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.email-notification-summary article span {
    color: var(--color-text-muted);
    font-size: 13px;
}
.email-notification-summary article strong {
    color: var(--color-text-primary);
    font-size: 17px;
    font-weight: 600;
}
.email-notification-summary__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 17px !important;
}
.email-notification-summary__icon--all {
    background: #eef2ff;
    color: #4f46e5 !important;
}
.email-notification-summary__icon--enabled {
    background: var(--color-success-light);
    color: #059669 !important;
}
.email-notification-summary__icon--disabled {
    background: #f8fafc;
    color: var(--color-text-muted) !important;
}
.email-notification-settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.email-notification-settings-panel {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card);
}
.email-notification-settings-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 18px;
    border-bottom: 1px solid var(--color-line);
}
.email-notification-settings-panel__header h2 {
    margin: 0 0 3px;
    font-size: 17px;
    font-weight: 600;
}
.email-notification-settings-panel__header p {
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.55;
}
.email-notification-settings-panel__actions {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 7px;
    color: var(--color-text-muted-2);
    font-size: 13px;
}
.email-notification-settings-panel__actions button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    font: inherit;
    cursor: pointer;
}
.calendar-event-private-icon, .event-calendar-inline-privacy {
    color: var(--color-primary);
    font-size: 0.82em;
}
.email-notification-settings-panel__actions button:hover {
    color: var(--color-primary);
}
.email-notification-group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
    background: var(--color-bg-surface-soft);
}
.email-notification-group-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 14px;
}
.email-notification-group {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-surface);
}
.email-notification-group__header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px;
    border-bottom: 1px solid var(--color-line);
}
.email-notification-group__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: color-mix(in srgb, var(--email-group-color) 10%, #fff);
    color: var(--email-group-color);
    font-size: 16px;
}
.email-notification-group__header > div {
    min-width: 0;
    flex: 1 1 auto;
}
.email-notification-group__header h3 {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 600;
}
.email-notification-group__header p {
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.email-notification-group__count {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
}
.email-notification-type-list {
    display: flex;
    flex-direction: column;
    padding: 6px 14px;
}
.email-notification-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 72px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-line);
    cursor: pointer;
}
.email-notification-type:last-child {
    border-bottom: 0;
}
.email-notification-type__copy {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
}
.email-notification-type__copy strong {
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
}
.email-notification-type__copy > span {
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.45;
}
.email-notification-type__copy code {
    width: fit-content;
    margin-top: 2px;
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted-2);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
}
.email-notification-switch {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 24px;
}
.email-notification-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.email-notification-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background-color 0.2s;
}
.email-notification-switch span::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
    content: "";
    transition: transform 0.2s;
}
.email-notification-switch input:checked + span {
    background: var(--color-primary);
}
.email-notification-switch input:checked + span::after {
    transform: translateX(18px);
}
.email-notification-switch input:focus-visible + span {
    outline: 3px solid color-mix(in srgb, var(--color-primary) 22%, transparent);
    outline-offset: 2px;
}
.task-order-status.is-locked {
    border-color: var(--color-line);
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted-2);
}
/* ======================== Shared Sidebar Feedback ======================== */
.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: auto;
    padding: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 8px;
    font-weight: 600;
    line-height: 1;
}
.badge-new {
    background: var(--color-unread-badge);
    box-shadow: 0 2px 6px rgba(var(--color-primary-rgb), 0.3);
}
.dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}
.dd-item:hover {
    background: var(--color-bg-base);
    color: var(--color-text-primary);
}
.topbar-icon-button, .topbar-user-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.topbar-icon-button {
    position: relative;
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text-secondary);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}
.topbar-user-button {
    display: flex;
    align-items: center;
    padding: 0;
    border-radius: 50%;
}
.topbar-icon-button:hover, .topbar-icon-button[aria-expanded="true"], .topbar-user-button:hover, .topbar-user-button[aria-expanded="true"] {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.topbar-icon-button:focus-visible, .topbar-user-button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.user-dropdown {
    display: none;
}
.logout-link:hover {
    background: rgba(var(--color-primary-rgb), 0.05);
    color: var(--color-error);
}
#user-dd.show, #noti-dd.show, #web-push-settings-dd.show, #chat-dd.show {
    display: block;
}
.notification-dropdown__list::-webkit-scrollbar {
    width: 6px;
}
.notification-dropdown__list::-webkit-scrollbar-track {
    background: transparent;
}
.notification-dropdown__list::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: var(--color-border);
}
.notification-dropdown__list::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}
#sidebar.open {
    left: 0;
}
/* ======================== Tasks Index Enhancements ======================== */
.task-view-container {
    max-width: 1600px;
    margin: 0 auto;
}
.tasks-page-container .dropdown-menu {
    position: absolute;
    z-index: 100;
    top: 100%;
    right: 0;
    display: none;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.tasks-page-container .dropdown-menu.show {
    display: block;
}
.tasks-page-container .dropdown-menu a {
    display: flex;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.tasks-page-container .dropdown-menu a:hover {
    background: var(--color-bg-base);
}
.tasks-page-container .subtask-row:hover .subtask-delete-btn {
    opacity: 1;
}
.tasks-page-container .list-table-container {
    position: relative;
    overflow-x: auto;
}
body .swal2-container {
    z-index: 99999;
}
#tasks-content-area, .list-group-section, .task-row-item {
    transition: opacity 0.18s ease;
}
#tasks-content-area.is-loading, .list-group-section.is-loading, .task-row-item.is-loading {
    opacity: 0.5;
    pointer-events: none;
}
.kanban-empty {
    display: flex;
}
.list-group-content-box.is-collapsed {
    display: none;
}
.list-group-header-row.is-collapsed .toggle-icon {
    transform: rotate(-90deg);
}
.task-project-groups {
    display: block;
}
.task-list-project-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 13px;
    cursor: grab;
}
.task-list-project-drag-handle:hover {
    border-color: var(--color-line-strong);
    background: var(--color-bg-soft);
    color: var(--color-text-primary);
}
.task-list-project-drag-handle:active {
    cursor: grabbing;
}
.task-project-group--chosen {
    cursor: grabbing;
}
.task-project-group--ghost {
    opacity: 0.35;
}
.task-project-group--dragging {
    cursor: grabbing;
}
.task-project-groups.is-reordering, .kanban-board.is-reordering-statuses {
    cursor: grabbing;
    user-select: none;
}
.task-project-inline-menu, .task-status-inline-menu {
    position: relative;
    margin-left: auto;
    flex: 0 0 auto;
}
.task-project-inline-menu__toggle, .task-status-inline-menu__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 13px;
    cursor: pointer;
}
.task-project-inline-menu__toggle:hover, .task-project-inline-menu__toggle[aria-expanded="true"], .task-status-inline-menu__toggle:hover, .task-status-inline-menu__toggle[aria-expanded="true"] {
    border-color: var(--color-line-strong);
    background: #fff;
    color: var(--color-text-primary);
}
.task-project-inline-menu__dropdown, .task-status-inline-menu__dropdown {
    position: absolute;
    z-index: 40;
    top: calc(100% + 5px);
    right: 0;
    display: none;
    width: 190px;
    padding: 5px;
    border: 1px solid var(--color-line-strong);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}
.task-project-inline-menu__dropdown.is-open, .task-status-inline-menu__dropdown.is-open {
    display: grid;
    gap: 2px;
}
.task-project-inline-menu__dropdown button, .task-status-inline-menu__dropdown button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 32px;
    padding: 7px 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
}
.task-project-inline-menu__dropdown button:hover, .task-status-inline-menu__dropdown button:hover {
    background: var(--color-bg-soft);
    color: var(--color-text-primary);
}
.task-project-inline-menu__dropdown .task-project-inline-menu__delete, .task-status-inline-menu__dropdown .task-status-inline-menu__delete {
    color: var(--color-primary);
}
.task-project-inline-menu__dropdown button:disabled, .task-status-inline-menu__dropdown button:disabled {
    color: var(--color-text-muted);
    cursor: not-allowed;
    opacity: 0.55;
}
.task-project-inline-menu__dropdown small, .task-status-inline-menu__dropdown small {
    padding: 4px 9px 5px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
}
.task-project-accordion-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.list-group-header-row {
    position: relative;
    cursor: default;
}
.list-group-header-row:has(.task-project-inline-menu__dropdown.is-open) {
    z-index: 20;
}
.list-group-header-row.is-collapsed {
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}
.list-group-content-box.grouped {
    overflow: hidden;
}
.tasks-project-control {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 4px;
}
.tasks-project-manager__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--color-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text-muted);
    font-size: 15px;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}
.tasks-project-manager__toggle:hover, .tasks-project-manager__toggle[aria-expanded="true"] {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.tasks-project-manager {
    position: absolute;
    z-index: 90;
    top: calc(100% + 9px);
    left: 0;
    display: none;
    width: min(380px, calc(100vw - 40px));
    overflow: visible;
    border: 1px solid var(--color-line-strong);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}
.tasks-project-manager.is-open {
    display: block;
}
.tasks-project-manager__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 12px;
    border-bottom: 1px solid var(--color-line);
}
.tasks-project-manager__title {
    color: var(--color-text-primary);
    font-size: 15px;
    font-weight: 600;
}
.tasks-project-manager__header p {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 400;
}
.tasks-project-manager__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--color-line-strong);
    border-radius: 7px;
    background: #fff;
    color: var(--color-text-muted);
    font-size: 13px;
    cursor: pointer;
}
.tasks-project-manager__list {
    max-height: 340px;
    padding: 7px;
    overflow-y: auto;
}
.tasks-project-manager__item {
    position: relative;
    display: grid;
    grid-template-columns: 26px 30px minmax(0, 1fr) auto 28px;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 5px 6px;
    border-radius: 9px;
    background: #fff;
}
.tasks-project-manager__item:hover {
    background: var(--color-bg-soft);
}
.tasks-project-manager__item--chosen {
    cursor: grabbing;
}
.tasks-project-manager__item--ghost {
    background: var(--color-primary-light);
    opacity: 0.45;
}
.tasks-project-manager__drag-handle, .tasks-project-manager__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 13px;
    cursor: pointer;
}
.tasks-project-manager__drag-handle {
    cursor: grab;
}
.tasks-project-manager__drag-handle:active {
    cursor: grabbing;
}
.tasks-project-manager__drag-handle:hover, .tasks-project-manager__more:hover {
    background: #fff;
    color: var(--color-text-primary);
}
.tasks-project-manager__folder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid color-mix(in srgb, var(--ui-color) 25%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--ui-color) 10%, white);
    color: var(--ui-color);
    font-size: 14px;
}
.tasks-project-manager__name {
    min-width: 0;
    overflow: hidden;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tasks-project-manager__count {
    min-width: 25px;
    padding: 2px 7px;
    border-radius: 90px;
    background: var(--color-bg-elevated);
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}
.tasks-project-manager__row-menu {
    position: absolute;
    z-index: 4;
    top: 38px;
    right: 5px;
    display: none;
    width: 180px;
    padding: 5px;
    border: 1px solid var(--color-line-strong);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}
.tasks-project-manager__row-menu.is-open {
    display: grid;
    gap: 2px;
}
.tasks-project-manager__row-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 32px;
    padding: 7px 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
}
.tasks-project-manager__row-menu button:hover {
    background: var(--color-bg-soft);
    color: var(--color-text-primary);
}
.tasks-project-manager__row-menu .tasks-project-manager__delete-button {
    color: var(--color-primary);
}
.tasks-project-manager__row-menu button:disabled {
    color: var(--color-text-muted);
    cursor: not-allowed;
    opacity: 0.55;
}
.tasks-project-manager__row-menu small {
    padding: 4px 9px 5px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
}
.tasks-project-manager__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid var(--color-line);
    background: var(--color-bg-surface-soft);
    border-radius: 0 0 14px 14px;
}
.tasks-project-manager__footer a, .tasks-project-manager__footer button, .tasks-project-manager__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 400;
}
.tasks-project-manager__footer a, .tasks-project-manager__footer button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-primary);
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
}
.tasks-project-manager__status {
    color: var(--color-text-muted);
}
.tasks-project-manager__status.is-saving {
    color: #d97706;
}
.tasks-project-manager__status.is-saved {
    color: var(--color-success);
}
.tasks-project-manager__status.is-error, .tasks-project-rename-modal__error {
    color: var(--color-error);
}
.tasks-project-manager__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 90px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.tasks-project-rename-modal__dialog {
    width: min(100%, 440px);
}
.tasks-project-rename-modal__error {
    padding: 8px 10px;
    border: 1px solid var(--color-primary-border-strong);
    border-radius: 8px;
    background: var(--color-primary-subtle);
    font-size: 12px;
    font-weight: 400;
}
.task-configuration-table tbody {
    counter-reset: task-configuration-order;
}
.task-configuration-table__row {
    counter-increment: task-configuration-order;
    background: #fff;
    transition:
        background-color 0.16s ease,
        box-shadow 0.16s ease;
}
.task-configuration-table__row:hover {
    background: #fafbfc;
}
.task-configuration-table__row.is-dragging {
    opacity: 0.42;
    background: var(--color-primary-light);
}
.task-configuration-table__row.is-chosen {
    box-shadow: inset 3px 0 0 var(--color-primary);
}
.task-configuration-table__drag-heading, .task-configuration-table__drag-cell {
    width: 56px;
    text-align: center;
}
.task-configuration-table__order-heading, .task-configuration-table__order-cell {
    width: 62px;
    text-align: center;
}
.task-configuration-table__drag-cell .task-configuration-table__drag-handle {
    margin: 0 auto;
}
.task-configuration-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
.task-configuration-table__drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--color-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text-muted-2);
    font-size: 14px;
    cursor: grab;
    touch-action: none;
    user-select: none;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease;
}
.task-configuration-table__drag-handle > i {
    pointer-events: none;
}
.task-configuration-table__drag-handle:hover, .task-configuration-table__drag-handle:focus-visible {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.task-configuration-table__drag-handle:active {
    cursor: grabbing;
}
.task-configuration-table__order-locked {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0 auto;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted-2);
    font-size: 13px;
}
.task-configuration-table__order-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    border-radius: 8px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.task-configuration-table__order-number::before {
    content: none;
}
.task-configuration-table__project, .task-configuration-table__status-name {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}
.task-configuration-table__project-icon, .task-configuration-table__status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border: 1px solid color-mix(in srgb, var(--ui-color) 20%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--ui-color) 10%, #fff);
    color: var(--ui-color);
    font-size: 13px;
}
.task-configuration-table__name, .task-configuration-table__status-name > span:last-child {
    overflow: hidden;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.task-configuration-table__description {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.task-project-description {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 4px;
}
.task-project-description__text {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-overflow: clip;
    white-space: nowrap;
}
.task-project-description__toggle {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 4px;
    min-height: 24px;
    padding: 1px 5px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.task-project-description__toggle:hover, .task-project-description__toggle:focus-visible {
    background: #eff6ff;
    outline: none;
}
.task-project-description__toggle[hidden], .task-project-description__full[hidden] {
    display: none;
}
.task-project-description-modal__dialog {
    width: min(100%, 620px);
}
.task-project-description-modal__project {
    display: flex;
    align-items: center;
    gap: 10px;
}
.task-project-description-modal__project > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 15px;
}
.task-project-description-modal__project > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
}
.task-project-description-modal__project small {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 400;
}
.task-project-description-modal__project strong {
    overflow: hidden;
    color: var(--color-text-primary);
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.task-project-description-modal__content {
    max-height: min(52vh, 420px);
    overflow-y: auto;
    padding: 15px 16px;
    border: 1px solid var(--color-line-strong);
    border-radius: 10px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.75;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}
.task-configuration-table__color-code i {
    color: var(--ui-color);
    font-size: 8px;
}
.task-configuration-table__slug, .task-configuration-table__color-code, .task-configuration-table__task-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
}
.task-configuration-table__task-count {
    border-color: transparent;
    background: #eff6ff;
    color: #2563eb;
}
.task-configuration-table__number-heading, .task-configuration-table__number-cell {
    width: 118px;
    text-align: center;
}
.task-configuration-table__color-heading, .task-configuration-table__color-cell {
    width: 150px;
}
.task-configuration-table__actions-heading, .task-configuration-table__actions-cell {
    width: 110px;
    text-align: right;
}
.task-configuration-table__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.task-configuration-table__delete-form {
    margin: 0;
}
.task-configuration-table__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--color-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text-muted);
    font-size: 13px;
    cursor: pointer;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease;
}
.task-configuration-table__action:hover, .task-configuration-table__action:focus-visible {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}
.task-configuration-table__action--danger:hover, .task-configuration-table__action--danger:focus-visible {
    border-color: var(--color-primary-border-strong);
    background: var(--color-error-light);
    color: var(--color-primary);
}
.task-configuration-table__empty {
    padding: 40px 20px;
    text-align: center;
}
.task-configuration-table__empty > span, .task-configuration-table__empty strong, .task-configuration-table__empty small {
    display: block;
}
.task-configuration-table__empty > span {
    width: 44px;
    height: 44px;
    margin: 0 auto 9px;
    padding-top: 12px;
    border-radius: 11px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    font-size: 17px;
}
.task-configuration-table__empty strong {
    margin-bottom: 3px;
    font-size: 15px;
    font-weight: 600;
}
.task-configuration-table__empty small {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
body.task-configuration-modal-open {
    overflow: hidden;
}
.task-configuration-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.task-configuration-modal.is-open {
    display: flex;
}
.task-configuration-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(5px);
    cursor: default;
}
.task-configuration-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}
.task-configuration-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--color-line);
}
.task-configuration-modal__title {
    margin: 0 0 3px;
    color: var(--color-text-primary);
    font-size: 19px;
    font-weight: 600;
}
.task-configuration-modal__header p {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.task-configuration-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--color-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text-muted);
    font-size: 14px;
    cursor: pointer;
}
.task-configuration-modal__close:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.task-configuration-modal__body {
    display: grid;
    gap: 15px;
    padding: 20px;
}
.task-configuration-field {
    min-width: 0;
}
.task-configuration-field > label {
    display: block;
    margin-bottom: 6px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.task-configuration-field__label {
    margin-bottom: 6px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.task-configuration-field > label span {
    color: var(--color-primary);
}
.task-configuration-field > small {
    display: block;
    margin-top: 5px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 400;
}
.task-configuration-field__control {
    position: relative;
}
.task-configuration-field input[type="text"], .task-configuration-field textarea, .task-configuration-field select {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--color-line-strong);
    border-radius: 9px;
    background: #fff;
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
}
.task-configuration-field textarea {
    min-height: 92px;
    resize: vertical;
}
.task-configuration-field input:focus, .task-configuration-field textarea:focus, .task-configuration-field select:focus {
    border-color: color-mix(in srgb, var(--color-primary) 50%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 7%, transparent);
    outline: none;
}
.task-configuration-color-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 6px 10px;
    border: 1px solid var(--color-line-strong);
    border-radius: 9px;
    background: #fff;
}
.task-configuration-color-field input[type="color"] {
    flex: 0 0 54px;
    width: 54px;
    height: 32px;
    padding: 2px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
}
.task-configuration-color-field span {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.task-status-icon-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.task-status-icon-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 42px;
    padding: 7px 9px;
    border: 1px solid var(--color-line-strong);
    border-radius: 9px;
    background: #fff;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}
.task-status-icon-option:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
}
.task-status-icon-option:has(input:checked) {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.task-status-icon-option:has(input:focus-visible) {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.task-status-icon-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.task-status-icon-option__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--color-bg-soft);
    color: var(--color-text-muted);
    font-size: 14px;
}
.task-status-icon-option:has(input:checked) .task-status-icon-option__icon {
    background: #fff;
    color: var(--color-primary);
}
.task-status-icon-option__label {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.task-configuration-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--color-line);
    background: var(--color-bg-surface-soft);
}
.task-configuration-modal__footer .btn {
    min-height: 38px;
    padding: 0 14px;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
}
/* Shared add/edit offcanvas for project, status, and website taxonomy forms. */
.task-configuration-modal--offcanvas {
    display: block;
    visibility: hidden;
    padding: 0;
    pointer-events: none;
    transition: visibility 0s linear 0.3s;
}
.task-configuration-modal--offcanvas.is-open {
    display: block;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}
.task-configuration-modal--offcanvas .task-configuration-modal__backdrop {
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.24s ease;
}
.task-configuration-modal--offcanvas.is-open .task-configuration-modal__backdrop {
    opacity: 1;
}
.task-configuration-modal--offcanvas .task-configuration-modal__dialog {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: min(560px, 100vw);
    max-height: none;
    height: 100dvh;
    overflow: hidden;
    border-width: 0 0 0 1px;
    border-radius: 0;
    flex-direction: column;
    box-shadow: -22px 0 55px rgba(15, 23, 42, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.task-configuration-modal--offcanvas.is-open .task-configuration-modal__dialog {
    transform: translateX(0);
}
.task-configuration-modal--offcanvas .task-configuration-modal__dialog > form {
    display: flex;
    min-height: 0;
    height: 100%;
    flex-direction: column;
}
.task-configuration-modal--offcanvas .task-configuration-modal__header, .task-configuration-modal--offcanvas .task-configuration-modal__footer {
    flex: 0 0 auto;
}
.task-configuration-modal--offcanvas .task-configuration-modal__body {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
}
/* ======================== Members Directory ======================== */
.members-page {
    width: 100%;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
}
.members-page__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.members-page__heading {
    min-width: 0;
}
.members-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.members-page__breadcrumb-current {
    color: var(--color-primary);
    font-weight: 600;
}
.members-page__title {
    margin: 0 0 4px;
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}
.members-page__description {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.members-page__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}
.members-page .members-page__button {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.members-page .members-page__button--primary {
    padding-inline: 16px;
}
.members-page .members-page__button--danger-outline {
    border: 1px solid var(--color-primary-border-strong);
    background: #fff;
    color: var(--color-error);
}
.members-page .members-page__button--danger-outline:hover {
    border-color: var(--color-error);
    background: var(--color-error-light);
}
.members-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.members-summary__card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 72px;
    padding: 14px 16px;
    border: 1px solid var(--color-line-strong);
    border-radius: 12px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card-soft);
}
.members-summary__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
}
.members-summary__icon--primary {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.members-summary__icon--success {
    background: var(--color-success-light);
    color: var(--color-success);
}
.members-summary__icon--muted {
    background: #f1f5f9;
    color: var(--color-text-muted);
}
.members-summary__icon--info {
    background: #eff6ff;
    color: var(--color-info);
}
.members-summary__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}
.members-summary__label {
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.members-summary__value {
    color: var(--color-text-primary);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}
.members-summary__value--success {
    color: #059669;
}
.members-directory {
    overflow: hidden;
    border: 1px solid var(--color-line-strong);
    border-radius: 14px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card-soft);
}
.members-directory + .members-directory {
    margin-top: 20px;
}
.members-directory__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-line);
}
.members-directory__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}
.members-directory__title {
    color: var(--color-text-primary);
    font-size: 17px;
    font-weight: 600;
}
.members-directory__count {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 90px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.members-directory__filters {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 220px;
    align-items: center;
    gap: 16px;
    width: 100%;
}
.members-search {
    position: relative;
    display: block;
    min-width: 0;
}
.members-search__icon {
    position: absolute;
    top: 50%;
    left: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    color: var(--color-text-muted);
    transform: translateY(-50%);
    pointer-events: none;
}
.members-search__input {
    width: 100%;
    min-height: var(--filter-control-height);
    padding: 10px 16px 10px 42px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--filter-control-radius);
    background: #fff;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
}
.members-search__input::placeholder {
    color: var(--color-text-muted-2);
}
.members-search__input:focus {
    border-color: color-mix(in srgb, var(--color-primary) 50%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 7%, transparent);
}
.members-status-filter {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: var(--filter-control-height);
    padding-left: 12px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--filter-control-radius);
    background: #fff;
}
.members-status-filter__label {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
}
select.members-status-filter__select {
    min-height: var(--filter-control-height);
    padding: 6px 28px 6px 8px;
    border: 0;
    background-color: transparent;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
    box-shadow: none;
}
.members-status-filter > .ts-wrapper {
    min-width: 0;
    width: 100%;
}
.members-status-filter > .ts-wrapper.single .ts-control {
    min-height: var(--filter-control-height);
    padding: 6px 32px 6px 8px;
    border: 0 !important;
    border-radius: 0 var(--filter-control-radius) var(--filter-control-radius) 0;
    background-color: transparent !important;
    font-weight: 600;
    box-shadow: none !important;
}
.members-status-filter > .ts-wrapper.single.focus .ts-control {
    box-shadow: none !important;
}
.members-table-wrap {
    width: 100%;
    overflow-x: auto;
}
.members-table {
    min-width: 980px;
    border-collapse: collapse;
}
.members-table thead {
    background: var(--color-bg-surface-soft);
}
.members-directory .members-table th, .members-directory .members-table td {
    height: 54px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--color-line);
    vertical-align: middle;
    white-space: nowrap;
}
.members-directory .members-table th {
    height: 42px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.members-directory .members-table td {
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
}
.members-table__row {
    cursor: pointer;
    transition: background-color 0.16s ease;
}
.members-table__row:hover, .members-table__row:focus-visible {
    background: #fafbfc;
}
.members-table__row:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--color-primary) 28%, transparent);
    outline-offset: -2px;
}
.members-table__row:last-of-type td {
    border-bottom: 0;
}
.members-table__employee-id {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid var(--color-line-strong);
    border-radius: 90px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
}
.members-table__identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.members-table__avatar {
    display: inline-flex;
    align-items: center;
    flex: 0 0 36px;
}
.members-table__identity-text {
    display: flex;
    align-items: baseline;
    min-width: 0;
    gap: 6px;
}
.members-table__name {
    max-width: 230px;
    overflow: hidden;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.members-table__nickname {
    max-width: 110px;
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.members-table__position {
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 260px;
    gap: 6px;
}
.members-table__role {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    overflow: hidden;
    border: 1px solid #dbeafe;
    border-radius: 90px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    line-height: 1;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.members-table__separator {
    color: var(--color-text-muted-2);
}
.members-table__department {
    max-width: 110px;
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.members-table__email {
    display: block;
    max-width: 240px;
    overflow: hidden;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.members-table__email:hover {
    color: var(--color-primary);
}
.members-table__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 90px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
}
.members-table__status--active {
    background: var(--color-success-light);
    color: #047857;
}
.members-table__status--inactive {
    background: #f1f5f9;
    color: var(--color-text-muted);
}
.members-table__status--locked {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.members-table__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.members-table__actions-heading, .members-table__actions-cell {
    text-align: right;
}
.members-table__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.members-table__delete-form {
    margin: 0;
}
.members-table__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--color-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text-muted);
    cursor: pointer;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}
.members-table__action:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.members-table__action--danger:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-error-light);
    color: var(--color-error);
}
.members-directory .members-table td.members-table__empty {
    height: auto;
    padding: 0;
    text-align: center;
    white-space: normal;
}
.members-table__empty-state {
    display: flex;
    min-height: 190px;
    width: 100%;
    padding: 32px 24px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}
.members-table__empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 12px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
}
.members-table__empty-title, .members-table__empty-description {
    display: block;
}
.members-table__empty-title {
    margin-bottom: 3px;
    color: var(--color-text-primary);
    font-size: 15px;
    font-weight: 600;
}
.members-table__empty-description {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.members-table__filter-empty[hidden], .members-table__row[hidden] {
    display: none;
}
/* ======================== Member create / edit ======================== */
.member-editor-page {
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    color: var(--color-text-primary);
}
.member-editor-page--create {
    max-width: 1200px;
}
.member-editor-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--color-text-muted);
    font-size: 12px;
}
.member-editor-breadcrumb a {
    color: inherit;
    text-decoration: none;
}
.member-editor-breadcrumb a:hover, .member-editor-breadcrumb span {
    color: var(--color-text-primary);
}
.member-editor-breadcrumb i {
    font-size: 9px;
}
.member-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    align-items: start;
    gap: 32px;
    min-width: 0;
}
.member-editor-card {
    min-width: 0;
    padding: 32px;
    border: 1px solid var(--color-line-strong);
    border-radius: 16px;
    background: var(--color-bg-surface);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.member-editor-header, .member-editor-page-header {
    display: flex;
    min-width: 0;
    align-items: center;
}
.member-editor-header {
    gap: 14px;
    margin-bottom: 30px;
}
.member-editor-header__icon, .member-editor-page-header__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.member-editor-header__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 17px;
}
.member-editor-header h1, .member-editor-page-header h1 {
    margin: 0;
    color: var(--color-text-primary);
    font-weight: 600;
    line-height: 1.35;
}
.member-editor-header h1 {
    font-size: 22px;
}
.member-editor-header p {
    margin: 5px 0 0;
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.55;
}
.member-editor-page-header {
    gap: 10px;
    margin-bottom: 24px;
}
.member-editor-page-header h1 {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 21px;
}
.member-editor-page-header__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 14px;
}
.member-editor-back {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-text-muted);
    text-decoration: none;
    transition:
        background-color 0.16s ease,
        color 0.16s ease;
}
.member-editor-back:hover, .member-editor-back:focus-visible {
    background: var(--color-bg-surface-soft);
    color: var(--color-text-primary);
}
.member-editor-form, .member-editor-section, .member-editor-field, .member-editor-fields-stack, .member-editor-avatar-actions, .member-editor-vault-card__content {
    min-width: 0;
}
.member-editor-section {
    margin-bottom: 28px;
}
.member-editor-section--soft {
    padding: 22px;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    background: var(--color-bg-surface-soft);
}
.member-editor-section__heading {
    margin: 0 0 18px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--color-line);
    color: var(--color-text-primary);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}
.member-editor-section__heading--icon {
    display: flex;
    align-items: center;
    gap: 9px;
}
.member-editor-section__heading--icon i {
    color: var(--color-primary);
    font-size: 15px;
}
.member-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.member-editor-fields-stack {
    display: grid;
    gap: 20px;
}
.member-editor-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-secondary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}
.member-editor-field label > span {
    color: var(--color-primary);
}
.member-editor-field label small {
    color: var(--color-text-muted);
    font-size: inherit;
    font-weight: 400;
}
.member-editor-field input, .member-editor-field select, .member-editor-password input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--color-line-strong);
    border-radius: 10px;
    outline: 0;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-primary);
    font: 500 13px var(--font-body);
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        box-shadow 0.16s ease;
}
.member-editor-field select {
    cursor: pointer;
}
.member-editor-field input::placeholder, .member-editor-password input::placeholder {
    color: var(--color-text-muted-2);
    font-weight: 400;
}
.member-editor-field input:focus, .member-editor-field select:focus, .member-editor-password input:focus {
    border-color: var(--color-primary);
    background: var(--color-bg-surface);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}
.member-editor-password {
    position: relative;
    min-width: 0;
}
.member-editor-password input {
    padding-right: 44px;
}
.member-editor-password button {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    transform: translateY(-50%);
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
}
.member-editor-password button:hover, .member-editor-password button:focus-visible {
    background: var(--color-bg-surface);
    color: var(--color-primary);
}
.member-editor-avatar-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 20px;
}
.member-editor-avatar {
    display: flex;
    overflow: hidden;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
}
.member-editor-avatar--create {
    width: 82px;
    height: 82px;
    border: 2px dashed var(--color-line-strong);
    font-size: 23px;
}
.member-editor-avatar--edit {
    width: 100px;
    height: 100px;
    border: 2px solid var(--color-line-strong);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}
.member-editor-avatar > img, .member-editor-avatar .member-avatar-image, .member-editor-avatar .member-avatar-placeholder {
    width: 100%;
    height: 100%;
}
.member-editor-avatar > img, .member-editor-avatar .member-avatar-image {
    object-fit: cover;
}
.member-editor-avatar .member-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted-2);
    font-size: 25px;
}
.member-editor-avatar-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.member-editor-upload-button, .member-editor-avatar-remove {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--color-line-strong);
    border-radius: 9px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease;
}
.member-editor-upload-button:hover, .member-editor-upload-button:focus-within {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.member-editor-upload-button input, .member-editor-avatar-remove input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.member-editor-avatar-remove {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.member-editor-avatar-remove:hover, .member-editor-avatar-remove:has(input:checked) {
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.member-editor-avatar-actions p {
    max-width: 360px;
    margin: 8px 0 0;
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.5;
}
.member-editor-vault-card {
    display: grid;
    grid-template-columns: 20px 36px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: var(--color-bg-surface-soft);
    cursor: pointer;
}
.member-editor-vault-card > input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--color-primary);
    cursor: pointer;
}
.member-editor-vault-card__icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.member-editor-vault-card__content {
    display: grid;
    gap: 2px;
}
.member-editor-vault-card__content strong {
    color: var(--color-text-primary);
    font-size: 12px;
    font-weight: 600;
}
.member-editor-vault-card__content small {
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.5;
}
.member-editor-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
    gap: 12px;
    padding-top: 22px;
    border-top: 1px solid var(--color-line);
}
.member-editor-submit, .member-editor-cancel {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease,
        box-shadow 0.16s ease;
}
.member-editor-submit {
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.2);
    cursor: pointer;
}
.member-editor-submit:hover, .member-editor-submit:focus-visible {
    box-shadow: 0 7px 16px rgba(var(--color-primary-rgb), 0.26);
}
.member-editor-cancel {
    border: 1px solid var(--color-line-strong);
    background: transparent;
    color: var(--color-text-secondary);
}
.member-editor-cancel:hover, .member-editor-cancel:focus-visible {
    background: var(--color-bg-surface-soft);
    color: var(--color-text-primary);
}
.member-editor-sidebar {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 20px;
    min-width: 0;
}
.member-editor-guide-card, .member-editor-help-card {
    min-width: 0;
    padding: 22px;
    border-radius: 16px;
}
.member-editor-guide-card {
    border: 1px solid var(--color-line-strong);
    background: var(--color-bg-surface);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.member-editor-guide-card h2 {
    margin: 0 0 4px;
    color: var(--color-text-primary);
    font-size: 17px;
    font-weight: 600;
}
.member-editor-guide-card > p {
    margin: 0 0 20px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.member-editor-guide-list {
    display: grid;
    gap: 18px;
}
.member-editor-guide-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
}
.member-editor-guide-item > span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
}
.member-editor-guide-item--admin > span {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.member-editor-guide-item--manager > span {
    background: var(--color-success-light);
    color: #16a34a;
}
.member-editor-guide-item--member > span {
    background: #fffbeb;
    color: #d97706;
}
.member-editor-guide-item strong, .member-editor-guide-item small {
    display: block;
}
.member-editor-guide-item strong {
    margin-bottom: 2px;
    color: var(--color-text-primary);
    font-size: 12px;
    font-weight: 600;
}
.member-editor-guide-item small {
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.48;
}
.member-editor-help-card {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    background: linear-gradient(135deg, var(--color-primary), #4f46e5);
    color: #fff;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.2);
}
.member-editor-help-card > i {
    margin-top: 2px;
    font-size: 22px;
}
.member-editor-help-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
}
.member-editor-help-card p {
    margin: 0;
    opacity: 0.9;
    font-size: 12px;
    line-height: 1.55;
}
/* ======================== Shared content boxes ======================== */
.box-card {
    padding: 24px;
    border: 1px solid var(--color-line-strong);
    border-radius: 14px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card-soft);
}
.info-box {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: var(--color-bg-surface-soft);
}
/* ======================== Personal profile ======================== */
.profile-page {
    width: 100%;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
}
.profile-page__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.profile-page__heading {
    min-width: 0;
}
.profile-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.profile-page__breadcrumb-current {
    color: var(--color-primary);
    font-weight: 600;
}
.profile-page__title {
    margin: 0 0 4px;
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}
.profile-page__description {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.profile-page__password-button, .profile-page__back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    gap: 7px;
    border: 1px solid var(--color-line-strong);
    border-radius: 8px;
    background: var(--color-bg-surface);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        border-color 0.2s,
        background-color 0.2s,
        color 0.2s;
}
.profile-page__password-button:hover, .profile-page__back-button:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.profile-page > .box-card {
    margin-bottom: 24px;
}
.profile-overview__identity {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 22px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--color-line);
}
.profile-overview__avatar {
    flex: 0 0 82px;
    width: 82px;
    height: 82px;
    overflow: hidden;
    border: 2px solid var(--color-line-strong);
    border-radius: 50%;
    background: var(--color-bg-surface-soft);
}
.profile-overview__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-overview__person {
    min-width: 0;
}
.profile-overview__name {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.profile-overview__english-name {
    margin-top: 2px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
}
.profile-overview__badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.profile-overview__badges > * {
    font-size: 11px !important;
    font-weight: 400 !important;
}
.profile-overview__badges .badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border: 1px solid var(--color-line-strong);
    border-radius: 6px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-secondary);
    line-height: 1.4;
}
.profile-overview__badges .badge-success {
    border-color: #a7f3d0;
    background: var(--color-success-light);
    color: #047857;
}
.profile-overview__badges .badge-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}
.profile-overview__badges .badge-danger {
    border-color: var(--color-primary-border-strong);
    background: var(--color-error-light);
    color: var(--color-primary-hover);
}
.profile-overview__role {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border: 1px solid var(--color-line-strong);
    border-radius: 6px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-secondary);
}
.profile-overview__details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}
.profile-detail__label, .profile-detail__value, .profile-detail__brand-value, .profile-activity__label, .profile-activity__value {
    margin: 0;
}
.profile-detail__label, .profile-activity__label {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.profile-detail__value, .profile-detail__brand-value {
    margin-top: 4px;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.profile-detail__brand-value {
    color: var(--color-primary);
}
.profile-activity {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--color-line);
}
.profile-activity__item {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--color-bg-surface-soft);
}
.profile-activity__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.profile-activity__value {
    margin-top: 2px;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
}
.profile-editor__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.profile-editor__heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.profile-editor__title {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}
.profile-editor__description {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.profile-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.profile-form__field, .profile-form__file-field, .profile-form__date-field, .profile-form__full-field {
    min-width: 0;
}
.profile-editor form > .profile-form__file-field {
    margin-bottom: 16px;
}
.profile-form__file-field, .profile-form__full-field {
    grid-column: 1 / -1;
}
.profile-form__date-field {
    max-width: 280px;
}
.profile-form__label {
    display: block;
    margin-bottom: 7px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.profile-form__hint {
    color: var(--color-text-muted);
    font-weight: 400;
}
.profile-editor .profile-form__control, .profile-editor .profile-form__file, .profile-editor .profile-form__textarea {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--color-line-strong);
    border-radius: 8px;
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    outline: none;
    box-shadow: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background-color 0.2s;
}
.profile-editor .profile-form__control:hover, .profile-editor .profile-form__file:hover, .profile-editor .profile-form__textarea:hover {
    border-color: #cbd5e1;
}
.profile-editor .profile-form__control:focus, .profile-editor .profile-form__file:focus, .profile-editor .profile-form__textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}
.profile-editor .profile-form__file {
    padding: 7px 10px;
    border-style: dashed;
    background: var(--color-bg-surface-soft);
    cursor: pointer;
}
.profile-form__file::file-selector-button {
    margin-right: 10px;
    padding: 5px 10px;
    border: 0;
    border-radius: 6px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.profile-editor .profile-form__textarea {
    min-height: 88px;
    resize: vertical;
}
.profile-form__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-line);
}
.profile-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 1px 2px color-mix(in srgb, var(--color-primary) 12%, transparent);
    cursor: pointer;
    transition:
        background-color 0.2s,
        border-color 0.2s,
        box-shadow 0.2s;
}
.profile-form__submit:hover {
    border-color: var(--color-primary-hover);
    background: var(--color-primary-hover);
}
.profile-cropper-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
}
.profile-cropper-modal.is-open {
    display: flex;
}
.profile-cropper-dialog {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    height: min(680px, calc(100dvh - 40px));
    max-height: calc(100dvh - 40px);
    overflow: hidden;
    border-radius: 20px;
    background: var(--color-bg-surface);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.profile-cropper-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
}
.profile-cropper-title {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 19px;
    font-weight: 600;
}
.profile-cropper-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
}
.profile-cropper-close:hover {
    background: var(--color-bg-surface-soft);
    color: var(--color-text-primary);
}
.profile-cropper-workspace {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: var(--color-bg-surface-soft);
}
.profile-cropper-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
}
.profile-cropper-footer {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-surface);
}
.profile-cropper-cancel-button, .profile-cropper-confirm-button {
    min-height: 40px;
    padding: 8px 20px;
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.2s,
        color 0.2s,
        box-shadow 0.2s;
}
.profile-cropper-cancel-button {
    background: var(--color-bg-surface-soft);
    color: var(--color-text-secondary);
}
.profile-cropper-cancel-button:hover {
    background: var(--color-bg-elevated);
    color: var(--color-text-primary);
}
.profile-cropper-confirm-button {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 2px 6px color-mix(in srgb, var(--color-primary) 20%, transparent);
}
.profile-cropper-confirm-button:hover {
    background: var(--color-primary-hover);
}
body.has-profile-cropper {
    overflow: hidden;
}
.profile-preview-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ======================== Reset & Global ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-family: var(--font-body);
    color: var(--color-text-primary);
    background: var(--color-bg-base);
    overflow-x: hidden;
    overflow-x: clip;
}
body {
    margin: 0;
    min-width: 320px;
    font-family: var(--font-body);
    font-size: 13px;
    background: var(--color-bg-base);
    color: var(--color-text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
}
:focus-visible {
    outline: unset;
}
button, input, select, textarea {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
}
h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}
b, h1, h2, h3, h4, h5, h6, .page-title {
    font-family: var(--font-heading);
    font-weight: 600;
}
h1 {
    font-size: 20px;
    line-height: 1.2;
}
h2 {
    font-size: 20px;
    line-height: 1.2;
}
h3 {
    font-size: 19px;
    line-height: 1.3;
}
h4 {
    font-size: 17px;
    line-height: 1.3;
}
h5 {
    font-size: 15px;
    line-height: 1.4;
}
h6 {
    font-size: 13px;
    line-height: 1.4;
}
.page-title {
    font-size: 20px;
    color: var(--color-text-primary);
}
a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s;
}
.hidden {
    display: none !important;
}
/* ======================== Layout Structure ======================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--color-bg-surface);
    border-right: 1px solid var(--color-border);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transition:
        width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s;
}
.topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--topbar-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 100;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.topbar.has-open-dropdown {
    z-index: 9101;
}
.main-content {
    margin-top: var(--topbar-height);
    padding: 16px;
    min-height: calc(100vh - var(--topbar-height));
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
body.has-sidebar .main-content {
    margin-left: var(--sidebar-width);
}
body.embedded-page .main-content {
    margin-top: 0;
    margin-left: 0;
    padding: 0;
    min-height: 100vh;
}
/* ======================== Sidebar Items ======================== */
.sidebar-logo {
    padding: 24px 10px 15px 10px;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.sidebar-logo__link {
    display: flex;
    align-items: center;
}
.sidebar-logo__image {
    width: auto;
    height: 35px;
    border-radius: 0;
}
.mobile-close-sidebar {
    display: none;
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-text-secondary);
    cursor: pointer;
}
.sidebar-nav {
    flex: 1;
    margin-bottom: 15px;
    overflow-y: auto;
}
.sidebar-nav__section-title {
    padding: 20px 24px 8px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.sidebar-nav__section-title--first {
    padding-top: 16px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 20px;
    margin: 2px 0;
    border-radius: 7px;
    color: var(--color-text-secondary);
    font-weight: 400;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}
.nav-item:hover {
    background: var(--color-primary-light);
    color: var(--color-text-primary);
}
.nav-item.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 600;
}
.nav-item--disabled {
    cursor: not-allowed;
    opacity: 0.45;
}
.sidebar-footer {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-base);
}
.sidebar-footer__profile {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-footer__identity {
    min-width: 0;
    overflow: hidden;
}
.sidebar-footer__name {
    overflow: hidden;
    color: var(--color-text-primary);
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-footer__role {
    color: var(--color-text-secondary);
    font-size: 12px;
}
.topbar-primary, .topbar-right {
    display: flex;
    align-items: center;
}
.topbar-primary {
    flex: 1;
    gap: 12px;
}
.topbar-right {
    gap: 12px;
}
.topbar-sidebar-toggle {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: var(--color-bg-elevated);
    color: var(--color-text-secondary);
    cursor: pointer;
}
.topbar-user-menu {
    position: relative;
}
.topbar-user-dropdown {
    position: absolute;
    z-index: 9999;
    top: 100%;
    right: 0;
    width: 220px;
    margin-top: 12px;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.topbar-user-dropdown__identity {
    margin-bottom: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--color-border);
}
.topbar-user-dropdown__name, .topbar-user-dropdown__item-label {
    font-weight: 600;
}
.topbar-user-dropdown__name {
    color: var(--color-text-primary);
    font-size: 12px;
}
.topbar-user-dropdown__role {
    color: var(--color-text-muted);
    font-size: 12px;
}
.topbar-user-dropdown__separator {
    height: 1px;
    margin: 8px 6px;
    background: var(--color-border);
}
.topbar-user-dropdown__logout-form {
    margin: 0;
}
/* ======================== Components: Buttons ======================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    min-height: 32px;
    font-weight: 400;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--color-line-strong);
}
.btn-primary {
    border: 1px solid var(--color-primary);
    box-shadow: 0 1px 2px color-mix(in srgb, var(--color-primary) 12%, transparent);
}
.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}
.btn-outline {
    background: #fff;
    border: 1px solid var(--color-line-strong);
    color: var(--color-text-secondary);
}
.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-bg-surface);
}
/* ======================== Components: Cards ======================== */
.card {
    background: var(--color-bg-surface);
    border: 0;
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow-card);
}
/* ======================== Components: Inputs ======================== */
.form-control, input, select, textarea {
    width: 100%;
    padding: 6px 12px;
    min-height: 32px;
    background: #fff;
    border: 1px solid var(--color-line-strong);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    box-shadow: none;
    transition: all 0.2s;
}
/* ======================== Task Specifics ======================== */
.task-card {
    background: var(--color-bg-surface) !important;
    border: 0 !important;
    border-radius: 8px !important;
    padding: 16px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: var(--shadow-card-soft) !important;
}
.task-card:hover {
    box-shadow: var(--shadow-hover) !important;
    transform: translateY(-2px);
    border-color: transparent !important;
}
/* ======================== Components: Checkbox ======================== */
.premium-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    display: inline-grid;
    place-content: center;
    transition: all 0.2s ease-in-out;
    margin: 0;
    padding: 0;
}
.premium-checkbox::before {
    content: "";
    width: 10px;
    height: 10px;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transform-origin: center;
    transition: 120ms transform ease-in-out;
    background-color: #fff;
    box-shadow: inset 1em 1em var(--color-white);
}
.premium-checkbox:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}
.premium-checkbox:checked::before {
    transform: scale(1);
}
.premium-checkbox:hover {
    border-color: var(--color-primary);
}
/* ======================== Components: Avatars ======================== */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    overflow: hidden;
    object-fit: cover;
    flex-shrink: 0;
}
.avatar-initials {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
}
.kanban-col {
    background: var(--color-bg-base);
    border-radius: var(--radius-lg);
    padding: 12px;
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}
.kanban-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
}
/* Spinner */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-bg-base);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* Drag & Drop */
.dragging {
    opacity: 0.4;
    transform: scale(0.98);
}
/* Scrollbar Light */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}
/* ============================================
   GLOBAL QUILL EDITOR FIXES
   ============================================ */
/* Force visibility of dropdown items in Quill (Resolves Tailwind CSS preflight conflicts) */
.ql-snow .ql-picker.ql-header .ql-picker-label::before, .ql-snow .ql-picker.ql-header .ql-picker-item::before {
    display: inline-block !important;
    visibility: visible !important;
    color: inherit !important;
    content: "Normal" !important;
    /* Fallback */
}
/* Define explicit content for headers to bypass attribute resets */
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before, .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before {
    content: "Heading 1" !important;
}
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before, .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before {
    content: "Heading 2" !important;
}
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before, .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before {
    content: "Heading 3" !important;
}
.ql-snow .ql-picker.ql-header .ql-picker-label:not([data-value])::before, .ql-snow .ql-picker.ql-header .ql-picker-item:not([data-value])::before {
    content: "Normal" !important;
}
/* Improve styling of the dropdown container and items */
.ql-snow .ql-picker-options {
    background-color: #fff !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    padding: 8px 0 !important;
}
.ql-snow .ql-picker-item {
    padding: 8px 16px !important;
    color: #1e293b !important;
    display: block !important;
    cursor: pointer !important;
}
.ql-snow .ql-picker-item:hover, .ql-snow .ql-picker-item.ql-selected {
    background-color: #f1f5f9 !important;
    color: var(--color-primary-hover) !important;
}
/* ======================== Dashboard & Components ======================== */
/* Refined Design Tokens */
:root {
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.06);
    --gradient-primary: linear-gradient(135deg, #6366f1, #4f46e5);
    --gradient-success: linear-gradient(135deg, var(--color-success), #059669);
    --gradient-danger: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    --gradient-warning: linear-gradient(135deg, var(--color-warning), #d97706);
    --gradient-info: linear-gradient(135deg, var(--color-info), #2563eb);
    --gradient-soft-danger: linear-gradient(145deg, #fff, var(--color-error-light));
}
/* Utility Classes */
.soft-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}
.soft-card:hover {
    box-shadow: var(--shadow-hover);
}
.text-primary {
    color: var(--color-primary);
}
.text-danger {
    color: var(--color-error);
}
.text-success {
    color: var(--color-success);
}
.text-warning {
    color: var(--color-warning);
}
.text-info {
    color: var(--color-info);
}
.text-muted {
    color: var(--color-text-muted);
}
.bg-danger-light {
    background: var(--color-primary-subtle);
}
.border-danger-light {
    border-color: var(--color-primary-border-strong);
}
/* Dashboard Specifics */
.dashboard-wrap {
    padding: 12px 0;
    font-family: var(--font-body);
}
.dashboard-header {
    justify-content: space-between;
    align-items: center;
}
.greeting h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}
.greeting .highlight {
    color: var(--color-primary);
}
.greeting p {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.create-btn {
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s;
}
.create-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.glass-stat-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}
.glass-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 70, 229, 0.2);
}
.icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 17px;
    transition: transform 0.3s ease;
}
.glass-stat-card:hover .icon-wrap {
    transform: scale(1.05) rotate(-2deg);
}
.total .icon-wrap {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
}
.processing .icon-wrap {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
}
.done .icon-wrap {
    background: linear-gradient(135deg, var(--color-success-light), #d1fae5);
    color: #059669;
}
.overdue .icon-wrap {
    background: linear-gradient(135deg, var(--color-error-light), var(--color-primary-subtle));
    color: var(--color-primary-hover);
}
.stat-info .label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.stat-info .value {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.1;
}
.progress-track {
    margin-top: 12px;
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    overflow: hidden;
}
.progress-track .bar {
    height: 100%;
    border-radius: 2px;
    transition: width 1s ease;
}
.total .bar {
    background: var(--color-primary);
}
.processing .bar {
    background: var(--color-info);
}
.done .bar {
    background: var(--color-success);
}
.overdue .bar {
    background: var(--color-error);
}
/* Main Grid */
.main-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}
.card-section, .glass-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 16px;
    transition: box-shadow 0.3s ease;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.title-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}
.title-with-icon h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.title-with-icon svg {
    color: var(--color-primary);
    background: rgba(79, 70, 229, 0.1);
    padding: 6px;
    border-radius: 8px;
    width: 28px;
    height: 28px;
}
.view-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(79, 70, 229, 0.05);
    transition: all 0.2s;
}
.view-all:hover {
    background: rgba(79, 70, 229, 0.1);
    transform: translateX(2px);
}
/* Scope Toggle */
.scope-toggle {
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2px;
    display: flex;
    align-items: center;
}
.btn-toggle {
    background: transparent;
    color: var(--color-text-muted);
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.btn-toggle:hover {
    background: rgba(0, 0, 0, 0.02);
}
.btn-toggle-active {
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
/* Items */
.modern-task-item, .absence-item, .maint-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.modern-task-item:hover, .absence-item:hover, .maint-item:hover {
    background: #ffffff;
    border-color: var(--color-border);
    transform: translateX(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}
.task-project-tag {
    width: 4px;
    height: 32px;
    border-radius: 2px;
}
.task-main, .absence-info {
    flex: 1;
}
.task-title, .absence-name, .maint-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}
.task-meta, .absence-type, .maint-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 400;
}
.status-pill {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.assignees-mini {
    display: flex;
    align-items: center;
    margin-left: 8px;
}
.assignees-mini .avatar {
    margin-left: -6px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.absence-period {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    background: #fff;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
.empty-state, .empty-state-mini {
    text-align: center;
    padding: 16px 12px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
}
/* Dashboard premium empty states */
.dash-card-flex {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.dash-list-flex {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}
.dash-empty-premium {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(248, 250, 252, 0.7);
    border-radius: 12px;
    padding: 24px;
    color: var(--color-text-muted);
    border: 1px solid rgba(226, 232, 240, 0.5);
}
.dash-empty-premium svg {
    opacity: 0.3;
    margin-bottom: 12px;
}
.dash-empty-premium .empty-text {
    font-size: 13px;
    font-weight: 400;
}
.empty-state-success {
    color: var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
}
/* Activity Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.activity-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.activity-item::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 32px;
    bottom: -12px;
    width: 2px;
    background: #e2e8f0;
    z-index: 0;
}
.activity-item:last-child::before {
    display: none;
}
.activity-avatar {
    flex-shrink: 0;
    z-index: 1;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.activity-content {
    flex: 1;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 400;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.2s;
}
.activity-item:hover .activity-content {
    background: #fff;
    box-shadow: var(--shadow-soft);
}
.activity-text {
    color: var(--color-text-secondary);
    line-height: 1.5;
}
.activity-text strong {
    color: var(--color-text-primary);
    margin-right: 4px;
    font-weight: 600;
}
.activity-time {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 4px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
}
/* Chart */
.chart-container {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chart-center-val {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.chart-center-val .total-num {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.chart-center-val .total-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}
.chart-legend {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-secondary);
}
.legend-item .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
/* Project Progress */
.project-progress-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.proj-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.proj-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.proj-percent {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(79, 70, 229, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
}
.proj-bar-container {
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    overflow: hidden;
}
.proj-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 1s ease;
}
.proj-footer {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-muted);
}
/* Dashboard Utilities (Replacing Inline Styles) */
.dash-header-wrap {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}
.dash-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.filter-card {
    padding: 12px 16px;
    margin-bottom: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-label {
    font-size: 13px;
    font-weight: 600;
    margin-right: 8px;
}
.filter-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.filter-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-date-input {
    width: 140px;
    border-radius: var(--filter-control-radius);
    font-size: 13px;
}
.btn-filter {
    height: 32px;
    padding: 0 16px;
    border-radius: var(--filter-control-radius);
    font-size: 13px;
    font-weight: 600;
}
.btn-reset {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: var(--color-text-secondary);
    text-decoration: none;
}
.stats-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.stat-card-relative {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.stat-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--color-text-secondary);
}
.stat-value {
    display: block;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.1;
}
.stat-period {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 4px;
}
.stat-icon-wrap {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px;
    border-radius: 8px;
}
.chart-grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.chart-grid-1-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.details-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}
.section-no-margin {
    margin-bottom: 0;
}
.chart-h320 {
    height: 320px;
}
.chart-h280 {
    height: 280px;
}
.section-h3 {
    font-size: 13px;
}
.task-title-nowrap {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.maint-item-danger {
    border: 1px solid var(--color-primary-subtle);
}
.absence-item-pad {
    padding: 10px;
    gap: 10px;
}
/* ======================== Dashboard page ======================== */
.dashboard-page {
    width: 100%;
    padding: 12px 0;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
}
.dashboard-header {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}
.dashboard-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.dashboard-greeting h1 {
    margin: 0 0 4px;
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}
.dashboard-greeting__name {
    color: var(--color-primary);
}
.dashboard-greeting p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.dashboard-filter {
    padding: 12px 16px;
    border: 1px solid var(--color-line-strong);
    border-radius: 14px;
    background: var(--color-bg-surface-soft);
    box-shadow: var(--shadow-card-soft);
}
.dashboard-filter__form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.dashboard-filter__presets, .dashboard-filter__dates, .dashboard-filter__date-field {
    display: flex;
    align-items: center;
}
.dashboard-filter__presets {
    flex-wrap: wrap;
    gap: 8px;
}
.dashboard-filter__dates {
    flex-wrap: wrap;
    gap: 12px;
}
.dashboard-filter__date-field {
    gap: 8px;
}
.dashboard-filter__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.dashboard-filter__preset, .dashboard-filter__preset--active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 4px 10px;
    border: 0;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.2s,
        color 0.2s,
        box-shadow 0.2s;
}
.dashboard-filter__preset {
    background: transparent;
    color: var(--color-text-muted);
}
.dashboard-filter__preset:hover {
    background: var(--color-bg-elevated);
    color: var(--color-text-primary);
}
.dashboard-filter__preset--active {
    background: var(--color-bg-surface);
    color: var(--color-primary);
    box-shadow: var(--shadow-card);
}
.dashboard-filter .dashboard-filter__date-input {
    width: 140px;
    min-height: var(--filter-control-height);
    padding: 6px 10px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--filter-control-radius);
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
}
.dashboard-filter .dashboard-filter__date-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}
.dashboard-filter__submit, .dashboard-filter__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.2s,
        border-color 0.2s,
        color 0.2s;
}
.dashboard-filter__submit {
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
}
.dashboard-filter__submit:hover {
    border-color: var(--color-primary-hover);
    background: var(--color-primary-hover);
}
.dashboard-filter__reset {
    border: 1px solid var(--color-line-strong);
    background: var(--color-bg-surface);
    color: var(--color-text-secondary);
}
.dashboard-filter__reset:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.dashboard-stat-card {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-width: 0;
    min-height: 136px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.75);
    border-radius: 16px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-soft);
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.2s;
}
.dashboard-stat-card:hover {
    border-color: color-mix(in srgb, var(--color-primary) 20%, transparent);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.dashboard-stat-card__content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    height: 100%;
}
.dashboard-stat-card__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.dashboard-stat-card__label svg {
    display: block !important;
    flex: 0 0 18px;
    width: 18px !important;
    height: 18px !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.dashboard-stat-card__value--primary, .dashboard-stat-card__value--success, .dashboard-stat-card__value--warning, .dashboard-stat-card__value--info, .dashboard-stat-card__value--danger, .dashboard-stat-card__value--purple {
    display: block;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.15;
}
.dashboard-stat-card__value--primary {
    color: var(--color-primary);
}
.dashboard-stat-card__value--success {
    color: var(--color-success);
}
.dashboard-stat-card__value--warning {
    color: var(--color-warning);
}
.dashboard-stat-card__value--info {
    color: var(--color-info);
}
.dashboard-stat-card__value--danger {
    color: var(--color-error);
}
.dashboard-stat-card__value--purple {
    color: #7c3aed;
}
.dashboard-stat-card__period {
    display: block;
    margin-top: 5px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    overflow-wrap: anywhere;
}
.dashboard-chart-grid--wide, .dashboard-chart-grid--equal {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}
.dashboard-chart-grid--wide {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}
.dashboard-chart-grid--equal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dashboard-chart-card, .dashboard-detail-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(226, 232, 240, 0.75);
    border-radius: 16px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-soft);
}
.dashboard-detail-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.dashboard-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.dashboard-card__title {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
}
.dashboard-card__title h3 {
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}
.dashboard-card__title svg {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    padding: 6px;
    border-radius: 8px;
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.dashboard-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.dashboard-card__link:hover {
    background: var(--color-primary-border-strong);
}
.dashboard-chart--large, .dashboard-chart--medium {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.dashboard-chart--large {
    height: 320px;
}
.dashboard-chart--medium {
    height: 280px;
}
.dashboard-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.dashboard-detail-list {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 220px;
}
.dashboard-task-item, .dashboard-maintenance-item, .dashboard-absence-item {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    margin-bottom: 8px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--color-bg-surface-soft);
    transition:
        background-color 0.2s,
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.2s;
}
.dashboard-task-item {
    cursor: pointer;
}
.dashboard-task-item:hover, .dashboard-maintenance-item:hover, .dashboard-absence-item:hover {
    border-color: var(--color-line-strong);
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card);
    transform: translateX(3px);
}
.dashboard-task-item__marker {
    flex: 0 0 4px;
    width: 4px;
    height: 32px;
    border-radius: 2px;
    background: var(--color-primary);
}
.dashboard-task-item__content, .dashboard-maintenance-item__content, .dashboard-absence-item__content {
    min-width: 0;
    flex: 1;
}
.dashboard-task-item__title, .dashboard-maintenance-item__title, .dashboard-absence-item__name {
    margin-bottom: 4px;
    overflow: hidden;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dashboard-task-item__meta, .dashboard-maintenance-item__meta, .dashboard-absence-item__type {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.dashboard-task-item__project {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dashboard-task-item__due-date, .dashboard-maintenance-item__expiry {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-error);
    font-weight: 600;
    white-space: nowrap;
}
.dashboard-maintenance-item {
    border-color: var(--color-primary-border-strong);
}
.dashboard-absence-item__avatar {
    flex: 0 0 32px;
}
.dashboard-absence-item__status--wfh, .dashboard-absence-item__status--leave {
    font-size: 13px;
    font-weight: 600;
}
.dashboard-absence-item__status--wfh {
    color: var(--color-info);
}
.dashboard-absence-item__status--leave {
    color: var(--color-error);
}
.dashboard-empty-state, .dashboard-empty-state--success, .dashboard-empty-state--purple {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    flex-direction: column;
    min-height: 180px;
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: 12px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    text-align: center;
}
.dashboard-empty-state__icon, .dashboard-empty-state > svg, .dashboard-empty-state--success > svg, .dashboard-empty-state--purple > svg {
    margin-bottom: 12px;
    opacity: 0.4;
}
.dashboard-empty-state__icon {
    color: var(--color-primary);
}
.dashboard-empty-state--success {
    color: var(--color-success);
}
.dashboard-empty-state--purple {
    color: #7c3aed;
}
.dashboard-empty-state__text {
    color: inherit;
    font-size: 13px;
    font-weight: 400;
}
/* ======================== Tasks Page ======================== */
.tasks-page-container {
    max-width: 1600px;
    margin: 0 auto;
}
/* Header */
.tasks-header {
    margin-bottom: 24px;
}
.tasks-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.breadcrumb-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.breadcrumb-current {
    color: var(--color-text-primary);
}
.title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.title-wrap h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}
.header-actions {
    display: flex;
    gap: 12px;
}
/* Action Buttons */
.btn-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 38px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-action-trash {
    color: var(--color-error);
}
/* Filter Bar */
.tasks-filter-bar {
    position: relative;
    z-index: 50;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: var(--shadow-soft);
}
.view-switcher-wrap {
    background: var(--color-bg-base);
    padding: 4px;
    border-radius: 10px;
    display: flex;
    gap: 4px;
    border: 1px solid var(--color-border);
}
.btn-view {
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-view:hover {
    color: var(--color-text-primary);
    background: rgba(0, 0, 0, 0.03);
}
.btn-view.active {
    background: #fff;
    color: var(--color-primary);
    box-shadow: var(--shadow-soft);
}
.btn-view svg {
    transition: transform 0.2s;
}
.btn-view.active svg {
    transform: scale(1.1);
}
.filter-divider {
    width: 1px;
    height: 24px;
    background: var(--color-border);
}
.filter-controls-wrap {
    flex: 1;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.project-select-wrap {
    background: var(--color-bg-base);
    height: var(--filter-control-height);
    padding: 0;
    border-radius: var(--filter-control-radius);
    display: flex;
}
.project-select {
    min-width: 180px;
    height: var(--filter-control-height);
    padding: 0 32px 0 14px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    background-color: #fff;
    color: var(--color-text-muted);
    border-radius: var(--filter-control-radius);
    outline: none;
    cursor: pointer;
    font-family: var(--font-body);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
}
.project-select:hover {
    opacity: 0.9;
}
.status-pills-wrap {
    display: flex;
    height: var(--filter-control-height);
    align-items: center;
    gap: 4px;
    background: var(--color-bg-base);
    padding: 3px;
    border-radius: 8px;
}
.pill {
    display: inline-flex;
    min-height: calc(var(--filter-control-height) - 6px);
    align-items: center;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    color: var(--color-text-muted);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.pill:hover {
    color: var(--color-text-primary);
}
.pill.active {
    background: #fff;
    color: var(--color-primary);
    box-shadow: var(--shadow-soft);
}
.tasks-completed-filter {
    height: var(--filter-control-height);
    min-height: var(--filter-control-height);
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-text-muted);
    white-space: nowrap;
}
.tasks-completed-filter:hover {
    border-color: color-mix(in srgb, var(--color-primary) 28%, transparent);
    background: color-mix(in srgb, var(--color-primary) 4%, transparent);
    color: var(--color-primary);
}
.tasks-completed-filter.active {
    border-color: color-mix(in srgb, var(--color-primary) 34%, transparent);
    background: color-mix(in srgb, var(--color-primary) 8%, transparent);
    color: var(--color-primary);
    box-shadow: none;
}
.search-wrap {
    position: relative;
}
.search-icon-wrap {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.task-search-input {
    width: 180px;
    height: var(--filter-control-height);
    padding-left: 34px;
    font-size: 13px;
    background: var(--color-bg-base);
    border: 1px solid transparent;
    border-radius: var(--filter-control-radius);
    transition: all 0.2s ease;
    font-family: var(--font-body);
}
.task-search-input:focus {
    border-color: var(--color-primary);
    background: #fff;
    outline: none;
}
/* ============================
   Completed Tasks Board (Grid)
   ============================ */
.completed-tasks-board {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}
.completed-tasks-board__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}
.completed-tasks-board__heading {
    display: flex;
    align-items: center;
    gap: 12px;
}
.completed-tasks-board__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
    border-radius: 10px;
    color: #fff;
    font-size: 17px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.completed-tasks-board__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.3;
}
.completed-tasks-board__subtitle {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-muted);
    margin: 2px 0 0;
}
.completed-tasks-board__count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--color-success-light);
    color: #059669;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.completed-tasks-board__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.completed-tasks-board__grid .task-card {
    border: 1px solid var(--color-border) !important;
    padding-top: 46px !important;
}
.completed-task-drag-handle {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text-muted);
    cursor: grab;
}
.completed-task-drag-handle:hover {
    border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
    color: var(--color-primary);
}
.completed-task-drag-handle:active {
    cursor: grabbing;
}
.completed-tasks-board__empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px 24px;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 400;
}
.completed-tasks-board__empty i {
    font-size: 33px;
    color: #d1d5db;
}
/* Kanban Board */
.kanban-board-order-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 0 4px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 400;
}
.kanban-board-order-bar__hint, .kanban-board-order-bar__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.kanban-board-order-bar__status {
    white-space: nowrap;
}
.kanban-board-order-bar__status.is-saving {
    color: #d97706;
}
.kanban-board-order-bar__status.is-saved {
    color: var(--color-success);
}
.kanban-board-order-bar__status.is-error {
    color: var(--color-error);
}
.kanban-board {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 24px;
    align-items: flex-start;
}
.kanban-column {
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    overflow: hidden;
}
.kanban-column:has(.task-status-inline-menu__dropdown.is-open) {
    z-index: 30;
    overflow: visible;
}
.kanban-column--chosen {
    cursor: grabbing;
}
.kanban-column--ghost {
    opacity: 0.35;
}
.kanban-column--dragging {
    cursor: grabbing;
}
.kanban-col-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}
.kanban-status-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-right: 2px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 12px;
    cursor: grab;
}
.kanban-col-header:hover .kanban-status-drag-handle {
    border-color: var(--color-line-strong);
    background: #fff;
    color: var(--color-text-primary);
}
.kanban-col-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.kanban-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}
.kanban-col-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.kanban-count-badge {
    background: var(--color-bg-elevated);
    color: var(--color-text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}
.kanban-cards-wrap {
    min-height: 500px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}
.kanban-cards-wrap {
    -webkit-transition: width 0.5s;
    transition: width 0.5s;
    overflow-y: scroll;
    height: 100vh;
}
.kanban-cards-wrap::-webkit-scrollbar-thumb {
    background-color: #e2e8f0;
}
.kanban-cards-wrap::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background-color: var(--color-bg-elevated);
}
.kanban-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    transition:
        box-shadow 0.2s,
        border-color 0.2s;
    box-shadow: var(--shadow-soft);
    user-select: none;
    -webkit-user-select: none;
}
.kanban-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary);
}
.kanban-card:hover .kanban-copy-btn {
    opacity: 1 !important;
}
.kanban-card.dragging {
    opacity: 0.4;
    background: var(--color-bg-base);
    border: 1px dashed var(--color-border);
    box-shadow: none;
}
.kanban-placeholder {
    opacity: 1 !important;
    background: var(--color-bg-base) !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    border-radius: 10px !important;
}
.kanban-placeholder * {
    color: transparent !important;
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}
.sortable-fallback-drag {
    z-index: 999999 !important;
    opacity: 1 !important;
    background: var(--color-bg-surface) !important;
    border: none !important;
    box-shadow: var(--shadow-strong) !important;
    cursor: grabbing !important;
    pointer-events: none !important;
    display: block !important;
    transition: none !important;
}
.sortable-fallback-drag-subtask {
    z-index: 999999 !important;
    opacity: 1 !important;
    background: var(--color-bg-surface) !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    cursor: grabbing !important;
    pointer-events: none !important;
    transition: none !important;
}
.list-sortable-fallback-drag {
    z-index: 999999 !important;
    opacity: 1 !important;
    background: var(--color-bg-surface) !important;
    border: none !important;
    box-shadow: var(--shadow-strong) !important;
    cursor: grabbing !important;
    pointer-events: none !important;
    display: flex !important;
    transition: none !important;
}
.list-sortable-fallback-drag td {
    display: flex;
    align-items: center;
}
.sortable-fallback, .sortable-drag {
    z-index: 999999 !important;
    opacity: 1 !important;
    cursor: grabbing !important;
    box-shadow: var(--shadow-strong) !important;
    pointer-events: none !important;
    transition: none !important;
}
.kanban-card-project {
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.kanban-card-title {
    font-size: 13px;
    color: var(--color-text-primary);
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.4;
}
.kanban-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.kanban-assignees {
    display: flex;
}
.kanban-avatar-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -6px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.kanban-due-date {
    font-size: 11px;
    border-radius: 4px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
}
.kanban-empty {
    border: 1px dashed var(--color-border);
    border-radius: 8px;
    padding: 24px 12px;
    text-align: center;
    flex-direction: column;
    align-items: center;
    color: var(--color-text-muted);
}
.kanban-empty-text {
    font-size: 13px;
}
/* List View */
.list-group-section {
    margin-bottom: 24px;
}
/* Copy Link Buttons */
.btn-copy-link {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-copy-link:hover {
    color: var(--color-primary);
    background: var(--color-bg-base);
}
.kanban-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
    z-index: 2;
    opacity: 0;
}
.kanban-copy-btn:hover {
    color: var(--color-primary);
    background: var(--color-bg-base);
}
.list-copy-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px;
    margin-left: 6px;
    border-radius: 4px;
    opacity: 0;
    transition: all 0.2s;
}
.list-copy-btn:hover {
    color: var(--color-primary);
    background: var(--color-bg-base);
}
.list-group-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--color-bg-surface);
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    border: 1px solid var(--color-border);
    border-bottom: none;
    transition: background 0.2s;
}
.list-group-icon {
    transition: transform 0.2s;
}
.list-group-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.list-group-count {
    background: var(--color-bg-elevated);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
}
.list-group-content-box {
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-soft);
}
.list-group-content-box.grouped {
    border: 1px solid var(--color-border);
    border-radius: 0 0 12px 12px;
}
.list-group-content-box.ungrouped {
    border: 1px solid var(--color-border);
    border-radius: 12px;
}
.list-table-container {
    overflow-x: auto;
}
.list-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
}
.list-table th {
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    white-space: nowrap;
    border-bottom: 1px solid var(--color-border);
}
.list-table.grouped-table th {
    background: transparent;
}
.list-table th.align-left {
    text-align: left;
}
.list-table th.align-center {
    text-align: center;
}
.list-table-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.2s;
    height: 40px;
}
.list-table-row:hover {
    background: var(--color-bg-hover);
}
.list-table-row:hover .list-copy-btn {
    opacity: 1 !important;
}
.list-table-row.dragging-list {
    opacity: 0.4;
    background: var(--color-bg-base);
}
.list-table-row:last-child {
    border-bottom: none;
}
.list-table td {
    padding: 6px 15px;
    white-space: nowrap;
}
.list-table td.align-left {
    text-align: left;
}
.list-table td.align-center {
    text-align: center;
}
.list-task-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.task-project-add-task-button, .task-row-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 13px;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}
.task-project-add-task-button {
    margin-left: 2px;
    cursor: pointer;
}
.task-project-add-task-button:hover, .task-project-add-task-button:focus-visible {
    border-color: color-mix(in srgb, var(--color-primary) 22%, transparent);
    background: color-mix(in srgb, var(--color-primary) 7%, transparent);
    color: var(--color-primary);
    outline: none;
}
.task-row-drag-handle {
    width: 18px;
    height: 24px;
    margin-right: -4px;
    color: var(--color-text-muted-2);
    cursor: grab;
}
.task-row-drag-handle:hover {
    color: var(--color-text-primary);
}
.task-row-drag-handle:active {
    cursor: grabbing;
}
.task-inline-value {
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    cursor: text;
}
.task-inline-value:hover, .task-inline-value:focus-visible, .task-inline-value.is-editing {
    color: var(--color-primary);
    outline: none;
}
.task-inline-status, .task-inline-priority, .task-inline-assignees {
    cursor: pointer;
}
.task-inline-date {
    min-width: 26px;
    color: var(--color-text-secondary);
    cursor: pointer;
}
.task-inline-value.is-empty {
    color: var(--color-text-muted);
}
.task-inline-assignees {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 28px;
    color: var(--color-text-muted);
}
.task-inline-input {
    width: 100%;
    min-width: 82px;
    height: 32px;
    padding: 6px 9px;
    border: 1px solid var(--color-line-strong);
    border-radius: 7px;
    background: #fff;
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    outline: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}
.task-inline-input:focus {
    border-color: color-mix(in srgb, var(--color-primary) 50%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.task-inline-date-input {
    min-width: 128px;
}
.task-inline-select {
    min-width: 110px;
    cursor: pointer;
}
/* Shared searchable select used across task filters, details and forms. */
.task-enhanced-select {
    position: relative;
    display: inline-block;
    width: 100%;
    min-width: 0;
}
.project-select-wrap .task-enhanced-select {
    min-width: 190px;
}
.project-select-wrap .task-enhanced-select__trigger {
    height: var(--filter-control-height);
    min-height: var(--filter-control-height);
    border-radius: var(--filter-control-radius);
}
.premium-select-wrapper {
    max-width: 100%;
}
.premium-select-wrapper .task-enhanced-select {
    width: min(220px, 100%);
    min-width: min(180px, 100%);
}
.task-enhanced-select__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    pointer-events: none !important;
}
.task-enhanced-select__trigger {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 38px;
    padding: 6px 12px;
    border: 1px solid var(--color-line-strong);
    border-radius: 9px;
    background: #fff;
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}
.task-enhanced-select__trigger:hover, .task-enhanced-select.is-open .task-enhanced-select__trigger {
    border-color: color-mix(in srgb, var(--color-primary) 48%, transparent);
}
.task-enhanced-select.is-open .task-enhanced-select__trigger {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 7%, transparent);
}
.task-enhanced-select.is-disabled .task-enhanced-select__trigger {
    background: var(--color-bg-soft);
    color: var(--color-text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}
.task-enhanced-select__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.task-enhanced-select__chevron {
    color: var(--color-text-muted);
    font-size: 11px;
    transition: transform 0.18s ease;
}
.task-enhanced-select.is-open .task-enhanced-select__chevron {
    transform: rotate(180deg);
}
.task-enhanced-select__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--task-option-color, #7f8c85);
}
.task-enhanced-select__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--color-bg-soft);
}
.task-enhanced-select__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.task-enhanced-select__panel {
    position: fixed;
    z-index: 2400;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 6px;
    max-width: calc(100vw - 20px);
    max-height: min(370px, calc(100vh - 20px));
    padding: 7px;
    overflow: hidden;
    border: 1px solid var(--color-line-strong);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.16);
}
.task-enhanced-select__panel.is-elevated-layer {
    z-index: 20050;
}
.task-enhanced-select__search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--filter-control-radius);
    color: var(--color-text-muted);
}
.task-enhanced-select__search:focus-within {
    border-color: color-mix(in srgb, var(--color-primary) 48%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 7%, transparent);
}
.task-enhanced-select__search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 13px;
}
.task-enhanced-select__options {
    display: grid;
    gap: 3px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.task-enhanced-select__manager {
    border-top: 1px solid var(--color-line);
    padding-top: 5px;
}
.task-enhanced-select__manager button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 36px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--color-text-muted);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.task-enhanced-select__manager button:hover, .task-enhanced-select__manager button:focus-visible {
    background: var(--color-bg-soft);
    color: var(--color-primary);
    outline: none;
}
.task-enhanced-select__option {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 36px;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--color-text-secondary);
    font-family: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}
.task-enhanced-select__panel.is-member-picker .task-enhanced-select__option {
    grid-template-columns: 30px minmax(0, 1fr) 18px;
    min-height: 44px;
}
.task-enhanced-select__option:hover, .task-enhanced-select__option:focus-visible {
    background: var(--color-bg-soft);
    color: var(--color-text-primary);
    outline: none;
}
.task-enhanced-select__option.is-selected {
    border-color: color-mix(in srgb, var(--color-primary) 18%, transparent);
    background: color-mix(in srgb, var(--color-primary) 6.5%, transparent);
    color: var(--color-primary);
}
.task-enhanced-select__option-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.task-enhanced-select__check {
    opacity: 0;
    font-size: 12px;
    text-align: center;
}
.task-enhanced-select__option.is-selected .task-enhanced-select__check {
    opacity: 1;
}
.task-enhanced-select__empty {
    padding: 18px 10px;
    color: var(--color-text-muted);
    font-size: 13px;
    text-align: center;
}
.task-enhanced-select__empty[hidden] {
    display: none;
}
.task-description-link {
    color: #1468d4;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.task-description-link:hover {
    color: #0b4ea2;
}
.task-inline-floating-panel {
    position: fixed;
    z-index: 2200;
    max-width: calc(100vw - 24px);
    border: 1px solid var(--color-line-strong);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.16);
}
.task-inline-choice-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 6px;
    width: 240px;
    max-height: min(300px, calc(100vh - 24px));
    padding: 7px;
    overflow: hidden;
}
.task-inline-choice-panel.has-manager {
    grid-template-rows: auto minmax(0, 1fr) auto;
}
.task-inline-choice-search, .task-inline-member-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--filter-control-radius);
    background: #fff;
    color: var(--color-text-muted);
}
.task-inline-choice-search:focus-within, .task-inline-member-search:focus-within {
    border-color: color-mix(in srgb, var(--color-primary) 48%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 7%, transparent);
}
.task-inline-choice-search-input, .task-inline-member-search-input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
}
.task-inline-choice-list {
    display: grid;
    gap: 3px;
    max-height: 238px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.task-inline-choice-option {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 36px;
    padding: 7px 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--color-text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
}
.task-inline-choice-option:hover, .task-inline-choice-option:focus-visible {
    background: var(--color-bg-soft);
    color: var(--color-text-primary);
    outline: none;
}
.task-inline-choice-option.is-selected {
    background: color-mix(in srgb, var(--color-primary) 7%, transparent);
    color: var(--color-primary);
}
.task-inline-choice-option.is-filtered-out {
    display: none;
}
.task-inline-choice-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.72;
}
.task-inline-choice-check {
    opacity: 0;
    font-size: 12px;
    text-align: center;
}
.task-inline-choice-option.is-selected .task-inline-choice-check {
    opacity: 1;
}
.task-inline-assignee-editor {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 6px;
    width: 290px;
    max-height: min(390px, calc(100vh - 24px));
    padding: 8px;
    overflow: hidden;
}
.task-inline-member-list {
    display: grid;
    gap: 3px;
    max-height: 244px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.task-inline-member-option {
    position: relative;
    display: grid;
    grid-template-columns: 18px 30px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease;
}
.task-inline-member-option:hover {
    background: var(--color-bg-soft);
    color: var(--color-text-primary);
}
.task-inline-member-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.task-inline-member-option:has(input:checked) {
    border-color: color-mix(in srgb, var(--color-primary) 18%, transparent);
    background: color-mix(in srgb, var(--color-primary) 5.5%, transparent);
    color: var(--color-text-primary);
}
.task-inline-member-option.is-filtered-out {
    display: none;
}
.task-inline-member-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid var(--color-line-strong);
    border-radius: 5px;
    background: #fff;
    color: #fff;
    font-size: 10px;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease;
}
.task-inline-member-check i {
    opacity: 0;
}
.task-inline-member-option input:checked + .task-inline-member-check {
    border-color: var(--color-primary);
    background: var(--color-primary);
}
.task-inline-member-option input:checked + .task-inline-member-check i {
    opacity: 1;
}
.task-inline-member-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--color-primary) 7%, transparent);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
}
.task-inline-member-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}
.task-inline-member-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.task-inline-member-picker-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 34px;
    padding: 6px 2px 0;
    border-top: 1px solid var(--color-border);
}
.task-inline-member-selection-count {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.task-inline-editor-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}
.task-inline-save-button, .task-inline-cancel-button, .task-inline-picker-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--color-line-strong);
    border-radius: 7px;
    background: #fff;
    color: var(--color-text-secondary);
    font-size: 13px;
    cursor: pointer;
}
.task-inline-save-button {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.08);
    color: #15803d;
}
.task-inline-save-button:hover {
    background: rgba(34, 197, 94, 0.15);
}
.task-inline-cancel-button:hover, .task-inline-picker-close:hover {
    border-color: color-mix(in srgb, var(--color-primary) 25%, transparent);
    background: color-mix(in srgb, var(--color-primary) 7%, transparent);
    color: var(--color-primary);
}
.task-inline-create-row {
    background: #f8fbff;
}
.task-inline-create-row:hover {
    background: #f8fbff;
}
.task-inline-create-row td {
    padding-top: 8px;
    padding-bottom: 8px;
    vertical-align: middle;
}
.task-inline-create-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.task-row-drag-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    color: #cbd5e1;
    font-size: 13px;
}
.task-inline-checkbox-placeholder {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
}
.task-inline-create-assignees {
    position: relative;
}
.task-inline-draft-select {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 110px;
    min-height: 32px;
    padding: 6px 9px;
    border: 1px solid var(--color-line-strong);
    border-radius: 7px;
    background: #fff;
    color: var(--color-text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease;
}
.task-inline-draft-select:hover, .task-inline-draft-select.is-editing {
    border-color: color-mix(in srgb, var(--color-primary) 48%, transparent);
    color: var(--color-text-primary);
}
.task-inline-draft-select.is-editing {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 7%, transparent);
}
.task-inline-draft-select i {
    color: var(--color-text-muted);
    font-size: 11px;
    transition: transform 0.18s ease;
}
.task-inline-draft-select.is-editing i {
    transform: rotate(180deg);
}
.task-inline-assignee-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid var(--color-line-strong);
    border-radius: 7px;
    background: #fff;
    color: var(--color-text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}
.task-inline-assignee-toggle:hover {
    border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
    color: var(--color-primary);
}
.task-inline-assignee-toggle.is-editing {
    border-color: color-mix(in srgb, var(--color-primary) 48%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 7%, transparent);
}
.task-inline-assignee-toggle-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.task-inline-assignee-toggle-caret {
    margin-left: auto;
    color: var(--color-text-muted);
    font-size: 11px;
    transition: transform 0.18s ease;
}
.task-inline-assignee-toggle.is-editing .task-inline-assignee-toggle-caret {
    transform: rotate(180deg);
}
.task-inline-assignee-popover {
    position: fixed;
    z-index: 2200;
    display: none;
    width: 290px;
    max-width: calc(100vw - 24px);
    max-height: min(390px, calc(100vh - 24px));
    padding: 7px;
    border: 1px solid var(--color-line-strong);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}
.task-inline-assignee-popover.is-open {
    display: block;
}
.task-inline-current-user {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}
.task-inline-member-avatar--creator {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
}
.task-row-item.is-inline-saving, .task-inline-create-row.is-inline-saving {
    opacity: 0.55;
    pointer-events: none;
}
.empty-list-row.is-hidden {
    display: none;
}
.list-quick-status {
    min-width: 18px;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.list-quick-status.done {
    background: var(--color-success);
    border: 2px solid var(--color-success);
}
.list-quick-status.pending {
    background: transparent;
    border: 2px solid #cbd5e1;
}
.list-quick-status.pending:hover {
    border-color: var(--color-primary);
    background: rgba(0, 0, 0, 0.02);
}
/* Subtask Checkbox */
.subtask-checkbox {
    min-width: 18px;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.subtask-checkbox:hover {
    border-color: var(--color-primary);
    background: rgba(0, 0, 0, 0.02);
}
.subtask-checkbox.completed {
    border-color: var(--color-success);
    background: var(--color-success);
}
.list-task-name-group {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}
.list-task-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.task-new-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--color-unread-badge);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.list-subtask-count {
    font-size: 11px;
    color: var(--color-text-muted);
}
.list-project-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
}
.list-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 90px;
    border: 1px solid;
}
.list-badge-outline {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 90px;
    background: var(--badge-bg, transparent);
    border: 1px solid var(--badge-border, transparent);
    color: var(--color-text-primary);
}
.task-inline-status.list-badge-outline.ui-dynamic-color {
    color: var(--ui-color);
    border-color: color-mix(in srgb, var(--ui-color) 32%, #fff);
    background: color-mix(in srgb, var(--ui-color) 10%, #fff);
}
.task-inline-status.list-badge-outline.ui-dynamic-color:hover, .task-inline-status.list-badge-outline.ui-dynamic-color:focus-visible, .task-inline-status.list-badge-outline.ui-dynamic-color.is-editing {
    color: var(--ui-color);
    border-color: color-mix(in srgb, var(--ui-color) 45%, #fff);
    background: color-mix(in srgb, var(--ui-color) 15%, #fff);
}
.project-badge-tag {
    font-size: 12px;
    font-weight: 400;
    color: var(--project-color);
    text-transform: uppercase;
    background: var(--project-bg);
    padding: 4px 10px;
    border-radius: 90px;
}
.list-progress-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}
.list-progress-text {
    font-size: 11px;
    color: var(--color-text-secondary);
}
.list-progress-bar-bg {
    width: 100%;
    max-width: 60px;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
}
.list-progress-bar-fill {
    height: 100%;
    background: var(--color-line-strong);
    border-radius: 2px;
}
.list-date-text {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-secondary);
}
/* Offcanvas Detail Styles */
.offcanvas-modern {
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    display: flex;
    width: min(850px, 100vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    border-left: 1px solid var(--color-border);
    background: #fff;
    box-shadow: -20px 0 60px rgba(15, 23, 42, 0.15);
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(100%, 0, 0);
    transition:
        transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
        visibility 0s linear 0.4s;
    will-change: transform;
}
.offcanvas-modern.open {
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition-delay: 0s;
}
#offcanvas-overlay {
    position: fixed;
    z-index: 9998;
    inset: 0;
    display: none;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}
#offcanvas-overlay.open {
    display: block;
    opacity: 1;
}
.loader-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid var(--color-bg-elevated);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.offcanvas-inner {
    height: 100%;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    position: relative;
    overflow: hidden;
}
.offcanvas-progress-bar {
    height: 4px;
    width: 100%;
    opacity: 0.8;
}
.offcanvas-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    z-index: 10;
}
.offcanvas-body-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    min-height: 0;
}
.ql-snow .ql-editor a {
    text-decoration: none !important;
}
.offcanvas-task-header {
    margin-bottom: 32px;
}
.offcanvas-comment-area {
    margin-top: 15px;
    background: #fff;
    z-index: 20;
    flex-shrink: 0;
}
.comment-edit-mode {
    display: none;
    flex: 1;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
}
.comment-edit-mode > .ql-toolbar.ql-snow {
    display: none !important;
}
.comment-edit-mode .ql-container.ql-bubble .ql-tooltip .ql-toolbar {
    display: flex !important;
    align-items: center;
}
.comment-edit-mode .ql-container {
    flex: 1;
    border-radius: 12px;
    border: 1px solid var(--color-border) !important;
    min-height: 40px;
    font-size: 13px !important;
    font-family: inherit !important;
}
.comment-edit-mode .ql-editor {
    padding: 10px 15px;
}
.comment-edit-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.btn-comment-cancel {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    border-radius: 6px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.2s;
}
.btn-comment-cancel:hover {
    background: var(--color-bg-base);
}
.btn-comment-save {
    background: var(--color-primary);
    border: none;
    color: #fff;
    border-radius: 6px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.2s;
}
.btn-comment-save:hover {
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.3);
}
.btn-comment-save:disabled {
    opacity: 0.65;
    cursor: wait;
    box-shadow: none;
}
.detail-edit-quill {
    flex: 1;
    min-width: 0;
    min-height: 40px;
    font-size: 13px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    outline: none;
    font-family: inherit;
}
.offcanvas-comment-section {
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
}
/* Task View Cards */
.task-view-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
.task-view-card.done-status {
    background: #f0fdf4;
    border-color: var(--color-success);
}
.task-sidebar-title {
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}
/* Assignees Sidebar */
.assignee-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.assignee-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 8px 12px;
    border-radius: 8px;
}
.assignee-list-item.done-status {
    background: #f0fdf4;
    border-color: var(--color-success);
}
.assignee-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.btn-assignee-remove {
    background: var(--color-primary-subtle);
    border: none;
    color: var(--color-error);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.btn-assignee-remove:hover {
    background: var(--color-error);
    color: #fff;
}
.assignee-select-input {
    width: 100%;
    background: #fff;
    border: 1px dashed var(--color-border);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}
.assignee-select-input.done-status {
    background: #f0fdf4;
}
.assignee-select-input:focus {
    border-color: var(--color-primary);
}
/* Task Info Sidebar */
.task-info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: var(--color-text-muted);
}
.task-info-item {
    display: flex;
    justify-content: space-between;
}
.task-info-value {
    font-weight: 600;
    color: var(--color-text-secondary);
}
.task-info-value--member, .task-member-identity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.task-info-value--member > span:last-child, .task-member-identity > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.task-page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.task-page-title-input {
    min-width: 0;
    flex: 1 1 auto;
    margin: 0 0 0 -12px;
    padding: 8px 12px;
    border: 2px solid transparent;
    border-radius: 10px;
    outline: none;
    background: transparent;
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.3;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}
.task-page-title-input:focus {
    border-color: var(--color-primary);
    background: var(--color-bg-base);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}
input[type="date"]:not(:disabled):not([readonly]), input[type="date"]:not(:disabled):not([readonly])::-webkit-calendar-picker-indicator {
    cursor: pointer;
}
/* =========================================================
   Global Thai calendar fields
   ========================================================= */
.thai-date-field__native {
    position: absolute !important;
    width: 1px !important;
    min-width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    white-space: nowrap !important;
}
.thai-date-field {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    height: var(--thai-date-field-height, 42px);
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--color-border, #dde2e7);
    border-radius: var(--thai-date-field-radius, 8px);
    outline: none;
    background: unset;
    color: var(--color-text-primary, var(--color-text-primary));
    font-family: var(--font-body, "Noto Sans Thai", sans-serif);
    font-size: var(--thai-date-field-font-size, 14px);
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}
.thai-date-field:hover:not(:disabled):not(.is-readonly) {
    border-color: var(--color-primary-border-strong);
}
.thai-date-field:focus-visible, .thai-date-field[aria-expanded="true"] {
    border-color: var(--color-primary, var(--color-primary));
}
.thai-date-field:disabled, .thai-date-field.is-readonly {
    background: var(--color-bg-hover, #f6f6f6);
    color: var(--color-text-muted-2, var(--color-text-muted-2));
    cursor: not-allowed;
}
.thai-date-field.is-placeholder .thai-date-field__value {
    color: var(--color-text-muted-2, var(--color-text-muted-2));
}
.thai-date-field__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.thai-date-field__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--color-primary, var(--color-primary));
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}
.thai-date-field__native:invalid + .thai-date-field {
    border-color: var(--color-error, var(--color-error));
}
.thai-date-picker {
    position: fixed;
    z-index: 10050;
    width: min(360px, calc(100vw - 20px));
    padding: 16px;
    border: 1px solid #e7ebf0;
    border-radius: 18px;
    background: #fff;
    color: var(--color-text-primary, var(--color-text-primary));
    box-shadow:
        0 22px 55px rgba(15, 23, 42, 0.18),
        0 3px 10px rgba(15, 23, 42, 0.08);
    font-family: var(--font-body, "Noto Sans Thai", sans-serif);
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    transform: translateY(-4px) scale(0.99);
    transform-origin: top center;
}
dialog.has-thai-date-picker-open {
    overflow: visible;
}
body.has-filter-offcanvas .thai-date-picker {
    z-index: 12010;
}
.thai-date-picker .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
}
.thai-date-picker[hidden] {
    display: none !important;
}
.thai-date-picker.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: thai-date-picker-in 0.16s ease-out;
}
@keyframes thai-date-picker-in {
    from {
        opacity: 0;
        transform: translateY(-5px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.thai-date-picker__header {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.thai-date-picker__nav {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 1px solid #edf0f4;
    border-radius: 50%;
    background: #fff;
    color: #263244;
    cursor: pointer;
    transition:
        border-color 0.16s ease,
        color 0.16s ease,
        background-color 0.16s ease;
}
.thai-date-picker__nav:hover, .thai-date-picker__nav:focus-visible {
    border-color: var(--color-primary-border-strong);
    outline: none;
    background: var(--color-primary-light, var(--color-primary-light));
    color: var(--color-primary, var(--color-primary));
}
.thai-date-picker__nav svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.3;
}
.thai-date-picker__selectors {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.thai-date-picker__select {
    position: relative;
    min-width: 0;
}
.thai-date-picker__select[data-picker-select="month"] {
    width: 136px;
}
.thai-date-picker__select[data-picker-select="year"] {
    width: 88px;
}
.thai-date-picker__select-trigger {
    display: flex;
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    overflow: hidden;
    border: 1px solid #e8ebf0;
    border-radius: var(--filter-control-radius);
    outline: none;
    background: #f8f9fb;
    color: var(--color-text-primary, var(--color-text-primary));
    font: inherit;
    font-weight: 600;
    cursor: text;
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background-color 0.16s ease;
}
.thai-date-picker__select-trigger > input {
    width: 0;
    height: 100%;
    min-width: 0;
    flex: 1 1 auto;
    padding: 0 2px 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    line-height: normal;
    box-shadow: none;
    cursor: text;
}
.thai-date-picker__select-toggle {
    display: grid;
    width: 32px;
    height: 100%;
    flex: 0 0 32px;
    padding: 0;
    place-items: center;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.thai-date-picker__select-toggle svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--color-text-muted);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: transform 0.16s ease;
}
.thai-date-picker__select-trigger:hover, .thai-date-picker__select-trigger:focus-within, .thai-date-picker__select.is-open .thai-date-picker__select-trigger {
    border-color: var(--color-primary, var(--color-primary));
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 9%, transparent);
}
.thai-date-picker__select.is-open .thai-date-picker__select-toggle svg {
    transform: rotate(180deg);
}
.thai-date-picker__select-trigger.is-invalid {
    border-color: var(--color-error);
    background: var(--color-primary-subtle);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}
.thai-date-picker__select-menu {
    position: absolute;
    z-index: 12;
    top: calc(100% + 6px);
    left: 0;
    width: 190px;
    padding: 8px;
    border: 1px solid #dfe5ec;
    border-radius: var(--filter-control-radius);
    background: #fff;
    box-shadow:
        0 16px 35px rgba(15, 23, 42, 0.16),
        0 3px 8px rgba(15, 23, 42, 0.06);
}
.thai-date-picker__select[data-picker-select="year"] .thai-date-picker__select-menu {
    right: 0;
    left: auto;
    width: 156px;
}
.thai-date-picker__select-menu[hidden] {
    display: none !important;
}
.thai-date-picker__select-search {
    position: relative;
    display: block;
    margin-bottom: 7px;
}
.thai-date-picker__select-search > svg {
    position: absolute;
    top: 50%;
    left: 10px;
    z-index: 1;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: var(--color-text-muted-2);
    stroke-linecap: round;
    stroke-width: 1.8;
    transform: translateY(-50%);
    pointer-events: none;
}
.thai-date-picker__select-search input {
    width: 100%;
    height: 36px;
    min-height: 36px;
    padding: 5px 9px 5px 31px;
    border: 1px solid #d9e0e8;
    border-radius: var(--filter-control-radius);
    outline: none;
    background: #fff;
    color: var(--color-text-primary, var(--color-text-primary));
    font: inherit;
    font-size: 12px;
    box-shadow: none;
}
.thai-date-picker__select-search input:focus {
    border-color: var(--color-primary, var(--color-primary));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.thai-date-picker__select-search input.is-invalid {
    border-color: var(--color-error);
    background: var(--color-primary-subtle);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}
.thai-date-picker__select-entry-hint {
    display: block;
    margin: -1px 3px 6px;
    color: var(--color-text-muted-2);
    font-size: 10px;
    line-height: 1.35;
}
.thai-date-picker__select-options {
    max-height: 258px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
}
.thai-date-picker__select-option {
    display: flex;
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    align-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #354156;
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}
.thai-date-picker__select-option[hidden] {
    display: none !important;
}
.thai-date-picker__select-option:hover, .thai-date-picker__select-option:focus-visible {
    outline: none;
    background: #f8fafc;
    color: var(--color-primary, var(--color-primary));
}
.thai-date-picker__select-option.is-selected {
    background: var(--color-primary-light, var(--color-primary-light));
    color: var(--color-primary, var(--color-primary));
    font-weight: 600;
}
.thai-date-picker__select-empty {
    padding: 16px 8px;
    color: var(--color-text-muted-2);
    font-size: 12px;
    text-align: center;
}
.thai-date-picker__select-empty[hidden] {
    display: none !important;
}
.thai-date-picker :is(select) {
    height: 40px;
    max-width: 160px;
    padding: 0 30px 0 10px;
    border: 1px solid #e8ebf0;
    border-radius: var(--filter-control-radius);
    outline: none;
    background-color: #f8f9fb;
    color: var(--color-text-primary, var(--color-text-primary));
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.thai-date-picker :is(select):focus {
    border-color: var(--color-primary, var(--color-primary));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, transparent);
}
.thai-date-picker__weekdays, .thai-date-picker__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}
.thai-date-picker__weekdays {
    margin-bottom: 5px;
}
.thai-date-picker__weekdays span {
    display: grid;
    height: 30px;
    place-items: center;
    color: #69768a;
    font-size: 12px;
    font-weight: 600;
}
.thai-date-picker__weekdays span:nth-last-child(-n + 2) {
    color: var(--color-primary, var(--color-primary));
}
.thai-date-picker__day {
    position: relative;
    display: grid;
    aspect-ratio: 1;
    min-width: 0;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #263244;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition:
        color 0.14s ease,
        background-color 0.14s ease,
        transform 0.14s ease;
}
.thai-date-picker__day:hover:not(:disabled), .thai-date-picker__day:focus-visible {
    outline: none;
    background: var(--color-primary-light, var(--color-primary-light));
    color: var(--color-primary, var(--color-primary));
}
.thai-date-picker__day:active:not(:disabled) {
    transform: scale(0.94);
}
.thai-date-picker__day.is-outside {
    color: #c5ccd6;
}
.thai-date-picker__day.is-today:not(.is-selected) {
    box-shadow: inset 0 0 0 1.5px var(--color-primary-border-strong);
    color: var(--color-primary, var(--color-primary));
    font-weight: 700;
}
.thai-date-picker__day.is-selected {
    background: var(--color-primary, var(--color-primary));
    box-shadow: 0 5px 12px color-mix(in srgb, var(--color-primary) 24%, transparent);
    color: #fff;
    font-weight: 700;
}
.thai-date-picker__day:disabled, .thai-date-picker__month:disabled {
    color: #d9dee5;
    cursor: not-allowed;
    opacity: 0.7;
}
.thai-date-picker__months {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 3px 0 8px;
}
.thai-date-picker__month {
    min-height: 48px;
    padding: 8px 6px;
    border: 1px solid #edf0f4;
    border-radius: 11px;
    background: #fff;
    color: #354156;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition:
        border-color 0.14s ease,
        color 0.14s ease,
        background-color 0.14s ease;
}
.thai-date-picker__month:hover:not(:disabled), .thai-date-picker__month:focus-visible {
    border-color: var(--color-primary-border-strong);
    outline: none;
    background: var(--color-primary-light, var(--color-primary-light));
    color: var(--color-primary, var(--color-primary));
}
.thai-date-picker__month.is-selected {
    border-color: var(--color-primary, var(--color-primary));
    background: var(--color-primary, var(--color-primary));
    color: #fff;
    font-weight: 600;
}
.thai-date-picker__time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #edf0f4;
    border-radius: 12px;
    background: #fafbfc;
    color: #596579;
    font-size: 13px;
}
.thai-date-picker__time .thai-date-picker__select {
    width: 78px;
}
.thai-date-picker__time .thai-date-picker__select-trigger {
    height: 40px;
    min-height: 40px;
    padding: 0;
    background: #fff;
    font-variant-numeric: tabular-nums;
}
.thai-date-picker__time .thai-date-picker__select-trigger > input {
    padding-left: 10px;
}
.thai-date-picker__time .thai-date-picker__select-menu {
    top: auto;
    bottom: calc(100% + 7px);
    width: 146px;
}
.thai-date-picker__time .thai-date-picker__select[data-picker-select="minute"] .thai-date-picker__select-menu {
    right: 0;
    left: auto;
}
.thai-date-picker__time .thai-date-picker__select-option {
    justify-content: center;
    font-variant-numeric: tabular-nums;
    text-align: center;
}
.thai-date-picker__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid #edf0f4;
}
.thai-date-picker__footer > div {
    display: flex;
    align-items: center;
    gap: 7px;
}
.thai-date-picker__text-button, .thai-date-picker__apply {
    min-height: 34px;
    padding: 6px 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-primary, var(--color-primary));
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.thai-date-picker__text-button:hover, .thai-date-picker__text-button:focus-visible {
    outline: none;
    background: var(--color-primary-light, var(--color-primary-light));
}
.thai-date-picker__apply {
    padding-inline: 16px;
    background: var(--color-primary, var(--color-primary));
    color: #fff;
}
.thai-date-picker__apply:hover, .thai-date-picker__apply:focus-visible {
    outline: none;
    background: var(--color-primary-hover, var(--color-primary-hover));
}
.leave-form-field__control:has(> .thai-date-field) > i {
    display: none;
}
.leave-makeup-row__form > .thai-date-field {
    width: 150px;
    min-height: 30px;
}
.task-property-value > .thai-date-field, .property-value > .thai-date-field {
    width: min(220px, 100%);
}
/* Task Delete Sidebar */
.btn-sidebar-delete {
    width: 100%;
    background: var(--color-primary);
    color: #ffffff;
    border: 1px solid var(--color-primary);
    border-radius: 12px;
    padding: 12px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-sidebar-delete:hover {
    background: var(--color-primary-hover);
    opacity: 1;
}
/* Inline Controls */
.task-controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    flex-direction: row;
}
.task-control-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.task-control-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    white-space: nowrap;
}
.task-control-select {
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 6px 12px;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}
.task-control-select.done-status {
    border-color: var(--color-success);
}
.task-due-alert {
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
/* Dates Row */
.task-dates-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.task-date-box {
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 10px 14px;
}
.task-date-box.done-status {
    border-color: var(--color-success);
}
.task-date-label {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.task-date-input {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}
.task-date-input.overdue {
    color: var(--color-error);
}
/* Duplicate Button */
.btn-sidebar-duplicate {
    width: 100%;
    background: #fff;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 12px;
    padding: 12px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}
.btn-sidebar-duplicate:hover {
    background: var(--color-primary-light);
}
/* Task Properties Table */
.task-properties-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.task-property-row {
    display: flex;
    align-items: center;
    min-height: 32px;
}
.task-property-label {
    width: 140px;
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.task-property-value {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.task-property-select {
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 90px;
    padding: 4px 28px 4px 12px;
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
    height: 34px;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.task-property-select:hover, .task-property-select:focus {
    background-color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.task-property-assignees {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.task-property-assignees .task-enhanced-select {
    width: auto;
}
.assignee-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 6px 12px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.assignee-badge:hover {
    border-color: #cbd5e1;
}
.btn-assignee-remove-badge {
    color: var(--color-text-muted-2);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    border: none;
    padding: 0;
}
.btn-assignee-remove-badge:hover {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.assignee-select-badge {
    background-color: transparent;
    border: 1px dashed #cbd5e1;
    color: var(--color-text-muted);
    width: auto;
    height: 30px;
    border-radius: 90px;
    padding: 0 26px 0 12px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.assignee-select-badge:hover, .assignee-select-badge:focus {
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    border-color: var(--color-text-muted-2);
}
.task-property-date {
    border: 1px solid var(--color-line-strong);
    background: transparent;
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-primary);
    outline: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    height: 32px;
    width: 100%;
    max-width: 250px;
}
.task-property-date:hover, .task-property-date:focus {
    border-color: var(--color-border);
}
/* Company Websites Table Redesign */
.cw-star-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cw-url-link {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    transition: color 0.2s;
}
.cw-url-link:hover {
    color: var(--color-primary);
}
.cw-auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}
.cw-auth-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
}
.cw-auth-box.user svg {
    color: var(--color-text-muted);
    /* Slate icon */
}
.cw-auth-box.pwd {
    color: var(--color-text-muted);
    /* Slate dots */
    font-family: monospace;
}
.cw-auth-box.pwd svg {
    color: var(--color-text-muted);
    /* Slate icon */
}
.cw-auth-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
}
.cw-icon-btn-subtle {
    color: var(--color-text-muted-2);
    border-radius: 6px;
}
.cw-url-copy-button > i {
    display: block;
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
}
.cw-icon-btn-subtle:hover {
    background: #f1f5f9;
    color: var(--color-info);
}
/* Company Websites Filter & Header */
.cw-btn-add {
    background: var(--color-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.cw-btn-add:hover {
    background: var(--color-primary-hover);
}
.cw-filter-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.cw-filter-wrap {
    display: flex;
    gap: 16px;
    align-items: center;
}
.cw-search-wrap {
    flex: 1;
    position: relative;
}
.cw-select-wrap {
    width: 220px;
}
/* ============================================
   SHARED FORM CONTROLS (Search & Select)
   ============================================ */
.cw-search-input, .cw-category-select, .ts-wrapper.cw-category-select .ts-control {
    width: 100%;
    height: var(--filter-control-height);
    border: 1px solid var(--color-line-strong);
    border-radius: var(--filter-control-radius) !important;
    font-size: 13px;
    background: #ffffff;
    outline: none;
    transition: all 0.2s;
    box-shadow: none;
    color: var(--color-text-primary);
    font-family: inherit;
    box-sizing: border-box;
}
/* Search Input Specifics */
.cw-search-input {
    padding: 12px 16px 12px 44px;
}
.cw-search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-light);
}
.cw-search-icon {
    position: absolute;
    left: 16px;
    top: 14px;
    color: var(--color-text-muted);
    pointer-events: none;
}
/* Category Select Specifics (Tom Select Overrides) */
.cw-category-select {
    cursor: pointer;
    border: none;
}
.cw-select-wrap .task-enhanced-select__trigger {
    height: var(--filter-control-height);
    min-height: var(--filter-control-height);
    border-radius: var(--filter-control-radius);
}
.ts-wrapper.single .ts-control, .ts-dropdown.single {
    border-color: var(--color-line-strong) !important;
}
/* High specificity to override Tom Select CDN defaults without !important */
.ts-wrapper.single .ts-control {
    padding: 10px 40px 10px 16px;
    min-height: 40px;
    cursor: pointer !important;
    font-weight: 400;
    display: flex;
    align-items: center;
    background: unset !important;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid var(--color-line-strong);
    box-shadow: unset !important;
}
.ts-wrapper.single.focus .ts-control {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-light);
    background: #ffffff;
}
.ts-wrapper .ts-control .item {
    opacity: 1;
    display: block;
    position: static;
    margin-right: auto;
}
/* Employee selects: keep identity visible when nicknames are duplicated. */
.ts-wrapper.member-select .ts-control .item {
    display: flex;
    min-width: 0;
}
.member-select-content {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
}
.member-select-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-bg-subtle);
}
.member-select-identity {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}
.member-select-name, .member-select-full-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.member-select-name {
    color: var(--color-text-primary);
}
.member-select-full-name {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 400;
}
.member-select-content--selected .member-select-avatar {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
}
.ts-dropdown.member-select-dropdown .option {
    padding-top: 8px;
    padding-bottom: 8px;
}
.ts-wrapper.form-control-compact.single {
    padding: 0;
    border: none;
}
/* Tom Select Dropdown Styles */
.ts-dropdown.cw-category-select {
    border-radius: var(--filter-control-radius);
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    z-index: 9999;
}
.ts-dropdown.cw-category-select .option {
    padding: 10px 16px;
    cursor: pointer;
}
.ts-dropdown.cw-category-select .active {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}
.ts-dropdown.cw-category-select .dropdown-input-wrap {
    padding: 12px;
    border-bottom: 1px solid var(--color-border);
}
.ts-dropdown.cw-category-select .dropdown-input {
    border: 1px solid var(--color-border);
    border-radius: var(--filter-control-radius);
    padding: 8px 12px 8px 36px;
    width: 100%;
    background-color: var(--color-bg-subtle);
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%239ca3af%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228%22%3E%3C/circle%3E%3Cline%20x1%3D%2221%22%20y1%3D%2221%22%20x2%3D%2216.65%22%20y2%3D%2216.65%22%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    font-size: 13px;
    outline: none;
    color: var(--color-text-primary);
    box-sizing: border-box;
}
.ts-dropdown.plugin-dropdown_input {
    border: 1px solid #b8b8b7;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    z-index: 999;
    overflow: hidden;
}
.ts-dropdown .dropdown-input-wrap {
    padding: 12px;
}
.ts-dropdown .dropdown-input-wrap input.dropdown-input {
    border: 1px solid #b8b8b7;
    box-shadow: unset;
}
.ts-dropdown .ts-dropdown-content [data-selectable].option {
    padding: 10px 16px;
    font-size: 13px;
}
.ts-dropdown .ts-dropdown-content [data-selectable].option.selected, .ts-dropdown .ts-dropdown-content [data-selectable].option:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}
.cw-icon-btn-subtle {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 4px;
}
.cw-icon-btn-subtle:hover {
    background: var(--color-bg-elevated);
    color: var(--color-primary);
}
.cw-progress-col-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.cw-progress-col-text {
    font-size: 12px;
    color: var(--color-text-secondary);
}
.cw-progress-col-bg {
    width: 40px;
    height: 3px;
    background: var(--color-bg-base);
    border-radius: 2px;
}
.cw-progress-col-fill {
    height: 100%;
    background: var(--color-bg-base);
    border-radius: 2px;
    transition: width 0.4s ease;
}
.cw-manage-wrap {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.cw-manage-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.cw-manage-btn:hover {
    color: var(--color-primary);
}
/* ============================================
   Refactored Inline Styles
   ============================================ */
/* Pagination */
.main-content.is-ajax-loading {
    opacity: 0.68;
    cursor: progress;
    pointer-events: none;
    transition: opacity 0.16s ease;
}
.pagination-container {
    margin-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}
.main-content.is-ajax-loading {
    opacity: 0.65;
    cursor: progress;
    pointer-events: none;
    transition: opacity 0.18s ease;
}
.pagination-info-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--color-text-secondary, var(--color-text-muted));
    flex-shrink: 0;
}
.pagination-info-text {
    white-space: nowrap;
    flex-shrink: 0;
}
.pagination-per-page-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}
.pagination-per-page-label {
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}
.pagination-per-page-select {
    background: #fff;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    color: var(--color-text-primary, #1e293b);
    flex-shrink: 0;
    min-width: 70px;
}
/* Ensure Tom Select control for pagination has min width */
.pagination-per-page-wrap .ts-wrapper, .pagination-per-page-wrap .ts-wrapper .ts-control {
    min-width: 85px !important;
    cursor: pointer;
}
.pagination-links-wrap {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}
.pagination-wrap .page-link {
    display: flex;
    min-width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text-secondary, var(--color-text-muted));
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
}
.pagination-wrap .page-link.active {
    border-color: var(--color-primary, var(--color-primary));
    background: var(--color-primary, var(--color-primary));
    box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.2);
    color: #fff;
    font-weight: 600;
}
.pagination-wrap a.page-link:hover {
    border-color: #cbd5e1;
    background: var(--color-bg-subtle, #f8fafc);
    color: var(--color-primary, var(--color-primary));
}
.pagination-wrap .page-link.disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background: #f1f5f9;
}
/* Page Header */
.page-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.page-header-actions {
    display: flex;
    gap: 12px;
}
/* Modals */
.modal-content-lg {
    max-width: 900px;
}
.modal-content-xl {
    max-width: 960px;
    padding: 32px;
    border-radius: 16px;
}
.modal-loader-center {
    padding: 60px;
    text-align: center;
}
.modal-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
/* Import Excel Form */
.import-drop-zone {
    border: 2px dashed var(--color-border);
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--color-bg-base);
}
.import-0s-form {
    margin-top: 24px;
    padding: 24px;
    background: var(--color-bg-base);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.grid-2-cols-mb {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.import-form-footer {
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group-flex {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.import-preview-area {
    margin-top: 24px;
}
.import-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.table-scroll-wrapper {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}
.table-scroll-container {
    max-height: 280px;
    overflow-y: auto;
}
.import-pagination-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 2px;
}
.import-pagination-buttons {
    display: flex;
    gap: 4px;
    align-items: center;
}
.import-modal-footer {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}
/* ============================================
   Compact Form UI (Refactored)
   ============================================ */
.form-page-container {
    width: 100%;
    margin: 0 auto;
}
.form-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.form-breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
}
.form-breadcrumb span {
    color: var(--color-text-primary);
}
.form-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}
.form-layout-grid.with-sidebar {
    grid-template-columns: 1fr 320px;
    gap: 20px;
}
.form-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.form-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.task-create-title-icon {
    display: inline-block;
    flex: 0 0 24px;
    width: 24px;
    color: var(--color-primary);
    font-size: 22px;
    text-align: center;
}
.task-create-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-base);
}
.task-create-tip__icon {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--color-warning);
    font-size: 15px;
}
.task-create-tip__text {
    color: var(--color-text-secondary);
    font-size: 13px;
    line-height: 1.5;
}
.form-row-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    align-items: end;
}
.form-row-single-line {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    align-items: start;
}
.form-row-single-line > .form-group-compact {
    min-width: 150px;
}
.form-group-compact {
    margin-bottom: 16px;
}
.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    display: block;
}
.text-error {
    color: var(--color-error);
}
.form-control-compact {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    outline: none;
    height: 42px;
    background: #fff;
    color: var(--color-text-primary);
    font-weight: 400;
    transition: all 0.2s;
}
.form-control-compact:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}
textarea.form-control-compact {
    height: auto;
    resize: vertical;
    min-height: 80px;
}
.form-section-box {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--color-bg-base);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}
.form-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-toggle-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}
.member-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.member-pill {
    display: block;
}
.member-pill input {
    display: none;
}
.member-inner-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 400;
}
.member-inner-compact:hover {
    border-color: var(--color-text-muted);
    background: var(--color-bg-base);
}
.member-pill input:checked + .member-inner-compact {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
}
.avatar-micro {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    overflow: hidden;
}
.avatar-micro img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.form-actions-compact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    margin-top: 24px;
}
.btn-primary-compact {
    height: 42px;
    padding: 0 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    grid-gap: 6px;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    min-width: 150px;
}
.btn-primary-compact:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.btn-cancel-compact {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 0 24px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: all 0.2s;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    min-width: 100px;
}
.btn-cancel-compact:hover {
    background: var(--color-bg-base);
}
.tips-wrapper {
}
.tips-box {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.tips-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}
.tips-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-weight: 400;
}
.tips-icon {
    font-size: 13px;
}
/* ============================================
   Checklist Compact Styles
   ============================================ */
.checklist-row-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: all 0.2s;
    margin-bottom: 6px;
}
.checklist-row-compact.checked {
    background: #f0fdf4;
    border-color: var(--color-success);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.05);
}
.checklist-row-compact input[type="text"] {
    flex: 1;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    outline: none;
    font-family: inherit;
    padding: 0;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}
.checklist-row-compact.checked input[type="text"] {
    color: #166534;
}
.checklist-row-compact input[type="text"]:focus {
    border-bottom: 1px solid var(--color-primary);
}
.checklist-remove-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid var(--color-primary-border-strong);
    background: var(--color-error-light);
    color: var(--color-error);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
}
.checklist-remove-btn:hover {
    background: var(--color-primary-subtle);
}
.checklist-progress-container {
    margin-bottom: 20px;
}
.checklist-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.checklist-progress-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
}
.checklist-progress-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
}
.checklist-progress-track {
    width: 100%;
    height: 8px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.checklist-progress-fill {
    height: 100%;
    width: 100%;
    overflow: hidden;
    border: 0;
    appearance: none;
    background: transparent;
}
.checklist-progress-fill::-webkit-progress-bar {
    background: transparent;
}
.checklist-progress-fill::-webkit-progress-value {
    border-radius: 90px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}
.checklist-progress-fill::-moz-progress-bar {
    border-radius: 90px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}
.checklist-progress-fill.is-complete::-webkit-progress-value {
    background: var(--color-success);
}
.checklist-progress-fill.is-complete::-moz-progress-bar {
    background: var(--color-success);
}
.checklist-progress-text.is-complete {
    color: var(--color-success);
}
/* Custom Checkbox */
.checklist-checkbox {
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
}
.checklist-checkbox-input {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}
.checklist-checkbox-inner {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #cbd5e1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.checklist-checkbox-inner.checked {
    border-color: var(--color-success);
    background: var(--color-success);
}
.checklist-checkbox-inner svg {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s;
}
.checklist-checkbox-inner svg.show {
    opacity: 1;
    transform: scale(1);
}
/* ============================================
   Tasks Create Specific Styles
   ============================================ */
.assignee-label {
    cursor: pointer;
}
.assignee-label input:checked + .assignee-pill {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.1);
}
.assignee-pill {
    display: flex;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.assignee-pill:hover {
    border-color: var(--color-text-muted);
}
.btn-ghost {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-ghost:hover {
    background: var(--color-bg-base);
    border-style: solid;
    color: var(--color-text-primary);
}
.subtask-input-group {
    display: flex;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.subtask-drag-handle {
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: var(--color-text-muted);
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    width: 42px;
}
.subtask-delete-btn {
    background: rgba(var(--color-primary-rgb), 0.08);
    color: var(--color-error);
    border: none;
    border-radius: 8px;
    width: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.subtask-delete-btn:hover {
    background: var(--color-error);
    color: #fff;
}
/* Quill Customization to match My Workspace Theme */
.ql-toolbar.ql-snow {
    border-bottom: 1px solid var(--color-border) !important;
    background: var(--color-bg-base);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 12px !important;
    font-family: inherit;
}
.ql-container.ql-snow {
    font-family: inherit !important;
    font-size: 13px !important;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.ql-editor {
    padding: 10px 15px !important;
    color: var(--color-text-primary);
    min-height: 150px;
}
.ql-editor.ql-blank::before {
    font-style: normal !important;
    color: var(--color-text-muted);
    opacity: 0.8;
    font-size: 13px;
}
#editor-container-wrapper:focus-within {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px var(--color-primary-light) !important;
}
/* Attachment Upload Preview Items */
.attachment-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 6px 10px 6px 12px;
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.attachment-name {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.attachment-remove {
    background: transparent;
    color: var(--color-text-muted);
    border: none;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-left: 2px;
}
.attachment-remove:hover {
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-error);
}
.form-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.credential-item {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    margin-bottom: 12px;
    position: relative;
}
.credential-item .btn-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 25px;
    height: 25px;
    padding: 0;
    border: 1px solid var(--color-primary-border-strong);
    border-radius: 8px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(var(--color-primary-rgb), 0.08);
    transition:
        background 0.2s,
        border-color 0.2s,
        color 0.2s,
        box-shadow 0.2s,
        transform 0.2s;
}
.credential-item .btn-remove:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 5px 12px rgba(var(--color-primary-rgb), 0.22);
}
.credential-item .btn-remove:active {
    box-shadow: none;
}
.credential-domain-header {
    align-items: center;
}
.domain-switch-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}
.domain-switch-control,
.task-calendar-switch {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
}
.domain-switch-input,
.task-calendar-switch__input {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.custom-switch {
    position: absolute;
    inset: 0;
    border-radius: 90px;
    background: #cbd5e1;
    box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.08);
    transition:
        background 0.25s,
        box-shadow 0.25s;
}
.switch-slider {
    position: absolute;
    bottom: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.28);
    transition: transform 0.25s;
}
.domain-switch-input:checked + .custom-switch,
.task-calendar-switch__input:checked + .custom-switch {
    background: var(--color-primary);
    box-shadow:
        inset 0 0 0 1px rgba(var(--color-primary-rgb), 0.12),
        0 0 0 3px rgba(var(--color-primary-rgb), 0.08);
}
.domain-switch-input:checked + .custom-switch .switch-slider,
.task-calendar-switch__input:checked + .custom-switch .switch-slider {
    transform: translateX(20px);
}
.domain-switch-input:focus-visible + .custom-switch,
.task-calendar-switch__input:focus-visible + .custom-switch {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.domain-add-action {
    display: flex;
    justify-content: flex-end;
    margin: -2px 0 16px;
}
.domain-add-action.is-hidden, .domain-fields.is-hidden {
    display: none;
}
.domain-add-button {
    margin: 0;
}
/* ============================================
   Website Credentials Index
   ============================================ */
.wc-page-title {
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 600;
}
.wc-page-description {
    color: var(--color-text-secondary);
    font-size: 13px;
}
.wc-trash-link {
    display: flex;
    align-items: center;
    gap: 8px;
}
#table-wrapper.is-loading {
    opacity: 0.5;
    pointer-events: none;
}
.wc-col-site {
    width: 30%;
}
.wc-col-details {
    width: 55%;
}
.wc-col-actions {
    width: 15%;
}
.wc-site-link {
    font-weight: 600;
    text-decoration: none;
}
.wc-credential-types {
    display: flex;
    gap: 12px;
}
.wc-type-button {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -4px -8px;
    padding: 4px 8px;
    border: none;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    transition: background 0.2s;
}
.wc-type-button:hover {
    background: #f8fafc;
}
.wc-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--wc-theme-bg);
    color: var(--wc-theme-color);
}
.wc-type-label {
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 400;
}
.wc-type-count {
    color: var(--color-text-muted);
}
.wc-theme--hosting {
    --wc-theme-bg: var(--color-primary-subtle);
    --wc-theme-color: var(--color-primary-hover);
}
.wc-theme--domain {
    --wc-theme-bg: #fffbeb;
    --wc-theme-color: #d97706;
}
.wc-theme--directadmin {
    --wc-theme-bg: #ede9fe;
    --wc-theme-color: #8b5cf6;
}
.wc-theme--ftp {
    --wc-theme-bg: #dbeafe;
    --wc-theme-color: var(--color-info);
}
.wc-theme--database {
    --wc-theme-bg: #dcfce7;
    --wc-theme-color: #22c55e;
}
.wc-delete-form {
    display: inline-block;
    margin: 0;
}
.wc-empty-state {
    padding: 40px 0;
    text-align: center;
}
.wc-empty-icon {
    margin-bottom: 8px;
    color: #cbd5e1;
}
.wc-empty-title {
    color: var(--color-text-muted-2);
    font-size: 17px;
    font-weight: 600;
}
.wc-empty-description {
    margin: 4px 0 16px;
    color: var(--color-text-muted);
    font-size: 14px;
}
.wc-empty-action {
    display: inline-flex;
}
.pagination-container.wc-pagination {
    margin-top: 24px;
}
.wc-offcanvas {
    position: fixed;
    inset: 0;
    z-index: 10020;
    visibility: hidden;
    pointer-events: none;
}
.wc-offcanvas-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.48);
    opacity: 0;
    cursor: default;
    backdrop-filter: blur(4px);
    transition: opacity 0.24s ease;
}
.wc-offcanvas-panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(850px, 100vw);
    height: 100dvh;
    border-top: 3px solid var(--color-primary);
    border-left: 1px solid var(--color-border);
    background: #fff;
    box-shadow: -18px 0 45px rgba(15, 23, 42, 0.16);
    font-size: 13px;
    font-weight: 400;
    outline: none;
    transform: translateX(100%);
    transition: all 0.4s;
}
.wc-offcanvas.is-open {
    visibility: visible;
    pointer-events: auto;
}
.wc-offcanvas.is-open .wc-offcanvas-overlay {
    opacity: 1;
}
.wc-offcanvas.is-open .wc-offcanvas-panel {
    transform: translateX(0);
}
.wc-offcanvas-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    background: #fff;
}
.wc-offcanvas-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.wc-offcanvas-eyebrow {
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 600;
}
.wc-offcanvas-title {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 17px;
    font-weight: 600;
}
.wc-offcanvas-close {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: var(--color-bg-base);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.wc-offcanvas-close:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.wc-offcanvas-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.wc-credential-row {
    cursor: pointer;
}
.wc-credential-row:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}
.wc-site-link--button {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.wc-full-detail {
    padding: 22px;
}
.wc-full-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.wc-full-detail-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 500;
}
.wc-full-detail-title {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}
.wc-full-detail-grid {
    grid-template-columns: 1fr;
}
.credential-show-notes {
    padding: 10px 12px;
    border: 1px solid #edf0f4;
    border-radius: 9px;
    background: var(--color-bg-base);
    color: var(--color-text-primary);
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.wc-offcanvas-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 260px;
    padding: 40px 24px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.wc-spinner {
    color: var(--color-primary);
    animation: spin 1s linear infinite;
}
.wc-offcanvas-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 40px 24px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}
.wc-offcanvas-empty {
    padding: 40px;
    color: var(--color-text-muted-2);
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}
.wc-offcanvas-body {
    position: relative;
    padding: 24px;
}
.wc-offcanvas-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-bg-base);
}
.wc-theme-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--wc-theme-bg);
    color: var(--wc-theme-color);
}
.wc-offcanvas-project-title {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
}
body.has-credential-offcanvas-open {
    overflow: hidden;
}
/* Website credential single page */
.credential-show-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}
.credential-show-heading {
    min-width: 0;
}
.credential-show-title {
    margin: 0 0 6px;
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}
.credential-show-description {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.credential-show-header-actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}
.credential-show-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}
.credential-show-button--secondary {
    background: #fff;
    color: var(--color-text-primary);
}
.credential-show-button--secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.credential-show-button--primary {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}
.credential-show-button--primary:hover {
    border-color: var(--color-primary-hover);
    background: var(--color-primary-hover);
    color: #fff;
}
.credential-show-layout {
    width: 100%;
}
.credential-show-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
    width: 100%;
}
.credential-show-card {
    --credential-accent: var(--color-text-muted);
    --credential-accent-soft: #f1f5f9;
    position: relative;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.credential-show-card--hosting {
    --credential-accent: var(--color-primary);
    --credential-accent-soft: var(--color-error-light);
}
.credential-show-card--domain {
    --credential-accent: #f97316;
    --credential-accent-soft: #fff7ed;
}
.credential-show-card--directadmin {
    --credential-accent: #8b5cf6;
    --credential-accent-soft: #f5f3ff;
}
.credential-show-card--ftp {
    --credential-accent: var(--color-info);
    --credential-accent-soft: #eff6ff;
}
.credential-show-card--database {
    --credential-accent: var(--color-success);
    --credential-accent-soft: var(--color-success-light);
}
.credential-show-card-accent {
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--credential-accent);
}
.credential-show-card-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.credential-show-card-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--credential-accent-soft);
    color: var(--credential-accent);
}
.credential-show-card-title {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}
.credential-show-record {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--color-border);
}
.credential-show-card-heading + .credential-show-record {
    padding-top: 0;
    border-top: 0;
}
.credential-show-record:last-of-type {
    padding-bottom: 0;
}
.credential-show-field {
    min-width: 0;
}
.credential-show-field-label {
    display: block;
    margin-bottom: 5px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
}
.credential-show-field-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 40px;
    padding: 7px 8px 7px 12px;
    border: 1px solid #edf0f4;
    border-radius: 9px;
    background: var(--color-bg-base);
}
.credential-show-field-link, .credential-show-field-value {
    min-width: 0;
    overflow: hidden;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.credential-show-field-link {
    color: var(--color-primary);
    text-decoration: none;
}
.credential-show-field-link:hover {
    text-decoration: underline;
}
.credential-show-password {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.credential-show-field-actions {
    display: flex;
    flex-shrink: 0;
    gap: 2px;
}
.credential-show-icon-button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}
.credential-show-icon-button:hover {
    background: #fff;
    color: var(--color-primary);
}
.credential-show-empty {
    padding: 24px 16px;
    border: 1px dashed var(--color-border);
    border-radius: 10px;
    background: var(--color-bg-base);
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}
.credential-show-linked-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 13px;
    font-weight: 400;
}
.credential-copy-fallback {
    position: fixed;
    opacity: 0;
    pointer-events: none;
}
.wc-theme-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--wc-theme-bg);
    color: var(--wc-theme-color);
    font-size: 13px;
    font-weight: 600;
}
.wc-credential-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.wc-credential-card {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}
.wc-credential-index {
    margin-bottom: 12px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}
.wc-credential-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.wc-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}
.wc-field-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding-right: 16px;
}
.wc-field-label {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}
.wc-field-link, .wc-field-value {
    display: block;
    overflow: hidden;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wc-field-link {
    font-weight: 400;
    text-decoration: none;
}
.wc-password-value {
    color: var(--color-text-muted-2);
    font-family: monospace;
}
.wc-password-value.is-revealed {
    color: var(--color-text-primary);
}
.wc-field-actions {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}
.wc-action-button {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.wc-action-button:hover {
    background: #f1f5f9;
    color: var(--color-primary);
}
.wc-field-row--notes {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
}
.wc-field-notes {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    white-space: pre-wrap;
}
.form-section-heading {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}
.form-group-mb {
    margin-bottom: 16px;
}
.credential-item--additional {
    position: relative;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--color-border);
}
.credential-row--additional {
    padding-right: 24px;
}
.credential-ftp-row {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.btn-add-outline {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-primary);
    background: var(--color-primary-light);
    border: 1px solid var(--color-primary);
    padding: 6px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.btn-add-outline:hover {
    background: var(--color-primary);
    color: #ffffff;
}
h1.page-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}
.page-subtitle {
    font-size: 14px;
    font-weight: 400;
}
/* === SEMANTIC COMPONENT STYLES: START === */
/* Consolidated from legacy utility classes used by Blade components. */
.is-hidden {
    display: none !important;
}
.app-horizontal-scroll {
    overflow-x: auto;
}
/* resources/views/auth/login.blade.php */
.auth-login__layout-01 {
    max-width: 100%;
    width: auto;
    height: 64px;
}
/* resources/views/chat/index.blade.php */
.chat-index__modal-overlay-style {
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: 0;
    z-index: 2147483000;
    background: rgba(0, 0, 0, 0.85);
}
#imageLightboxModal {
    z-index: 2147483000 !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.85) !important;
}
body.chat-image-lightbox-open {
    overflow: hidden;
}
#imageLightboxModal:not(.is-hidden) {
    display: flex;
}
#imageLightboxModal .chat-lightbox-control {
    z-index: 20;
    isolation: isolate;
    color: #fff;
    background: #0f172a60;
    opacity: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
#imageLightboxModal .chat-lightbox-control:hover, #imageLightboxModal .chat-lightbox-control:focus-visible {
    border-color: #fff;
    background: rgba(15, 23, 42, 0.96);
    color: #fff;
}
.chat-lightbox-control__icon {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.chat-lightbox-zoom-controls {
    position: absolute;
    z-index: 20;
    top: 24px;
    left: 24px;
    display: inline-flex;
    height: 44px;
    align-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: #0f172a60;
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
}
.chat-lightbox-zoom-button, .chat-lightbox-zoom-level {
    display: inline-grid;
    height: 42px;
    min-width: 42px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.chat-lightbox-zoom-button .chat-lightbox-control__icon {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
}
.chat-lightbox-zoom-level {
    min-width: 54px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 700;
}
.chat-lightbox-zoom-button:hover, .chat-lightbox-zoom-button:focus-visible, .chat-lightbox-zoom-level:hover, .chat-lightbox-zoom-level:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    outline: none;
}
.chat-lightbox-zoom-button:disabled {
    opacity: 0.35;
    cursor: default;
}
.chat-index__chat-lightbox-control-style {
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    transition: 0.2s;
    cursor: pointer;
    border-radius: 50%;
    justify-content: center;
    top: 24px;
    width: 44px;
    height: 44px;
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    right: 24px;
}
.chat-index__chat-lightbox-control-style-2 {
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    transition: 0.2s;
    cursor: pointer;
    border-radius: 50%;
    justify-content: center;
    width: 48px;
    height: 48px;
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
}
.chat-index__chat-lightbox-control-style-3 {
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    transition: 0.2s;
    cursor: pointer;
    border-radius: 50%;
    justify-content: center;
    width: 48px;
    height: 48px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    right: 24px;
}
.chat-index__layout-01 {
    position: relative;
    z-index: 1;
    display: grid;
    width: auto;
    height: 85vh;
    height: 85dvh;
    place-items: center;
    overflow: hidden;
    touch-action: none;
}
.chat-index__layout-02 {
    border-radius: 4px;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    touch-action: none;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform, opacity;
}
#lightboxImage.is-zoomed {
    cursor: grab;
}
#lightboxImage.is-zoomed:active {
    cursor: grabbing;
}
.chat-lightbox-image--incoming {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: auto;
    object-fit: contain;
    pointer-events: none;
}
.chat-index__modal-overlay-style-2 {
    align-items: center;
    justify-content: center;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.6);
}
.chat-index__layout-03 {
    display: flex;
    align-items: center;
    border-radius: 16px;
    padding: 24px;
    background: #fff;
    width: 90%;
    max-width: 320px;
    flex-direction: column;
}
.chat-index__layout-04 {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--color-error);
}
.chat-index__recording-dot-style {
    border-radius: 50%;
    background: var(--color-primary);
    width: 10px;
    height: 10px;
}
.chat-index__layout-05 {
    font-weight: 600;
    margin-bottom: 24px;
    font-family: monospace;
    font-size: 33px;
    color: #111827;
}
.chat-index__layout-06 {
    margin-bottom: 24px;
    outline: none;
    width: 100%;
    height: 40px;
}
.chat-index__layout-07 {
    display: flex;
    gap: 12px;
    width: 100%;
}
.chat-index__layout-08 {
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: #fff;
}
.chat-index__layout-09 {
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    background: var(--color-primary);
    padding: 10px;
    border-radius: 24px;
}
.chat-index__layout-10 {
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    padding: 10px;
    border-radius: 24px;
    background: var(--color-primary);
}
.chat-index__modal-overlay-style-3 {
    z-index: 9999;
}
.chat-index__modal-box-style {
    border-radius: 16px;
    width: 400px;
    max-width: 90%;
}
.chat-index__modal-header-style {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
}
.chat-index__modal-title-style {
    font-size: 13px;
    font-weight: 600;
}
.chat-index__modal-close-style {
    cursor: pointer;
    color: #9ca3af;
}
.chat-index__modal-body-style {
    overflow-y: auto;
    padding: 0;
    max-height: 400px;
}
.chat-index__modal-footer-style {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    justify-content: space-between;
    border-top: 1px solid #f3f4f6;
}
.chat-index__layout-11 {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}
.chat-index__btn-primary-style {
    border-radius: 8px;
    padding: 8px 16px;
}
.chat-index__layout-12 {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: flex-start;
}
.chat-index__layout-13 {
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
    height: 50px;
    width: 50px;
    border: 1px dashed #d1d5db;
}
.chat-index__layout-14 {
    flex: 1;
}
.chat-index__layout-15 {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    display: block;
    margin-bottom: 6px;
}
.chat-index__layout-16 {
    gap: 8px;
    flex-direction: column;
}
.chat-index__layout-17 {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
}
.chat-index__layout-18 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    margin-left: 4px;
}
.chat-index__layout-19 {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 30px;
}
.chat-index__member-search-results-style {
    margin-top: 12px;
}
.chat-index__layout-20 {
    font-size: 13px;
    padding: 16px;
    text-align: center;
    color: #9ca3af;
}
.chat-index__layout-21 {
    margin-top: 24px;
}
.chat-index__setting-label-style {
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
    color: #374151;
}
.chat-index__layout-22 {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.chat-index__dm-theme-color-circle-style {
    background: var(--color-primary);
}
.chat-index__dm-theme-color-circle-style-2 {
    background: var(--color-primary);
}
.chat-index__dm-theme-color-circle-style-3 {
    background: var(--color-success);
}
.chat-index__dm-theme-color-circle-style-4 {
    background: var(--color-info);
}
.chat-index__dm-theme-color-circle-style-5 {
    background: #a855f7;
}
.chat-index__dm-theme-color-circle-style-6 {
    background: var(--color-warning);
}
.chat-index__dm-theme-color-circle-style-7 {
    background: var(--color-text-muted);
}
.chat-index__setting-input-style {
    border-radius: 12px;
    cursor: pointer;
    padding: 10px;
}
.chat-index__modal-footer-premium-style {
    gap: 8px;
    flex-direction: column;
    border-top: none;
    padding-top: 8px;
}
.chat-index__btn-save-premium-style {
    width: 100%;
}
.chat-index__btn-cancel-premium-style {
    width: 100%;
}
.chat-index__theme-color-circle-style {
    background: var(--color-primary);
}
.chat-index__theme-color-circle-style-2 {
    background: var(--color-primary);
}
.chat-index__theme-color-circle-style-3 {
    background: var(--color-success);
}
.chat-index__theme-color-circle-style-4 {
    background: var(--color-info);
}
.chat-index__theme-color-circle-style-5 {
    background: #a855f7;
}
.chat-index__theme-color-circle-style-6 {
    background: var(--color-warning);
}
.chat-index__theme-color-circle-style-7 {
    background: var(--color-text-muted);
}
.chat-index__layout-23 {
    margin-top: 28px;
}
.chat-index__setting-label-style-2 {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #374151;
}
.chat-index__layout-24 {
    padding: 2px 8px;
    font-size: 13px;
    border-radius: 12px;
    background: #f3f4f6;
    color: #6b7280;
}
.chat-index__layout-25 {
    display: flex;
    gap: 8px;
    overflow-y: auto;
    flex-direction: column;
    padding-right: 4px;
    max-height: 250px;
}
.chat-index__layout-26 {
    font-size: 13px;
    color: var(--color-error);
    text-align: center;
    padding: 40px 20px;
}
.chat-index__layout-27 {
    font-size: 13px;
    text-align: center;
    color: #9ca3af;
    padding: 40px 20px;
}
.chat-index__chat-item-avatar-style {
    color: var(--color-primary);
}
.chat-index__chat-item-avatar-style-2 {
    width: 36px;
    height: 36px;
    box-shadow: none;
    margin-right: 12px;
}
/* resources/views/company-websites/partials/table.blade.php */
.company-websites-partials-table__kanban-assignees-style {
    justify-content: center;
}
.company-websites-partials-table__layout-01 {
    display: inline-block;
    margin: 0;
}
.company-websites-partials-table__cw-empty-state-style {
    text-align: center;
    padding: 40px 0;
}
.company-websites-partials-table__cw-empty-icon-style {
    margin-bottom: 8px;
    color: #cbd5e1;
}
.company-websites-partials-table__cw-empty-text-style {
    font-size: 13px;
    color: var(--color-text-muted);
}
.company-websites-partials-table__pagination-container-style {
    margin-top: 24px;
}
/* resources/views/company-websites/trash.blade.php */
.company-websites-trash__page-header-style {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    justify-content: space-between;
}
.company-websites-trash__layout-01 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-primary);
    font-size: 20px;
}
.company-websites-trash__layout-02 {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.company-websites-trash__layout-03 {
    display: flex;
    gap: 12px;
}
.company-websites-trash__btn-ghost-style {
    display: flex;
    align-items: center;
    gap: 8px;
}
.company-websites-trash__layout-04 {
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}
.company-websites-trash__app-standard-table-style {
    text-align: left;
    width: 100%;
    border-collapse: collapse;
}
.company-websites-trash__layout-05 {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-error-light);
}
.company-websites-trash__layout-06 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    padding: 16px 20px;
}
.company-websites-trash__layout-07 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    text-align: right;
    padding: 16px 20px;
}
.company-websites-trash__layout-08 {
    border-bottom: 1px solid var(--color-border);
    transition: background 0.2s;
}
.company-websites-trash__layout-09 {
    padding: 16px 20px;
}
.company-websites-trash__layout-10 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.company-websites-trash__layout-11 {
    font-size: 13px;
    color: var(--color-text-muted);
}
.company-websites-trash__layout-12 {
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.company-websites-trash__layout-13 {
    font-size: 13px;
    color: var(--color-text-secondary);
    padding: 16px 20px;
}
.company-websites-trash__layout-14 {
    text-align: right;
    padding: 16px 20px;
}
.company-websites-trash__layout-15 {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.company-websites-trash__layout-16 {
    display: inline-block;
}
.company-websites-trash__btn-restore-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}
.company-websites-trash__btn-delete-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    background: var(--color-primary-subtle);
    border: 1px solid var(--color-primary-border-strong);
    color: var(--color-primary-hover);
}
.company-websites-trash__layout-17 {
    text-align: center;
    padding: 100px;
}
.company-websites-trash__layout-18 {
    display: flex;
    align-items: center;
    border-radius: 50%;
    justify-content: center;
    margin: 0 auto 20px;
    background: #f1f5f9;
    color: #cbd5e1;
    width: 72px;
    height: 72px;
}
.company-websites-trash__layout-19 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted-2);
}
.company-websites-trash__pagination-container-style {
    margin-top: 24px;
}
/* resources/views/company-websites/unlock.blade.php */
.company-websites-unlock__layout-01 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}
.company-websites-unlock__layout-02 {
    border: 1px solid var(--color-border);
    width: 100%;
    border-radius: 24px;
    background: #fff;
    text-align: center;
    padding: 48px;
    max-width: 440px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}
.company-websites-unlock__layout-03 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    color: var(--color-primary);
    border-radius: 20px;
    background: var(--color-primary-subtle);
    margin: 0 auto 24px;
}
.company-websites-unlock__layout-04 {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 12px;
    font-size: 20px;
}
.company-websites-unlock__layout-05 {
    font-size: 13px;
    margin-bottom: 32px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}
.company-websites-unlock__layout-06 {
    margin-bottom: 24px;
    text-align: left;
}
.company-websites-unlock__layout-07 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    display: block;
    margin-bottom: 8px;
}
.company-websites-unlock__layout-08 {
    position: relative;
}
.company-websites-unlock__layout-09 {
    font-size: 13px;
    border-radius: 12px;
    background: var(--color-bg-base);
    outline: none;
    width: 100%;
    transition: all 0.2s;
    border: 2px solid var(--color-border);
    height: 54px;
    padding: 0 46px 0 16px;
}
.company-websites-unlock__layout-10 {
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    justify-content: center;
    color: var(--color-text-muted);
    padding: 4px;
    background: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 16px;
}
.company-websites-unlock__layout-11 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-error);
    margin-top: 8px;
}
.company-websites-unlock__layout-12 {
    font-size: 13px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--color-text-secondary);
    gap: 10px;
    font-weight: 400;
}
.company-websites-unlock__layout-13 {
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--color-primary);
    width: 18px;
    height: 18px;
}
.company-websites-unlock__layout-14 {
    color: #fff;
    font-size: 13px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    border-radius: 14px;
    background: var(--color-primary);
    transition: all 0.2s;
    height: 56px;
    box-shadow: 0 10px 20px rgba(var(--color-primary-rgb), 0.15);
}
.company-websites-unlock__layout-15 {
    font-size: 13px;
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
    text-align: center;
    margin: 24px 0;
}
.company-websites-unlock__layout-16 {
    border: none;
    flex: 1;
    border-top: 1px solid var(--color-border);
}
.company-websites-unlock__layout-17 {
    padding: 0 10px;
}
.company-websites-unlock__layout-18 {
    font-size: 13px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    width: 100%;
    background: #fff;
    padding: 14px;
    transition: all 0.2s;
}
.company-websites-unlock__layout-19 {
    width: 20px;
    height: 20px;
}
.company-websites-unlock__layout-20 {
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    margin-top: 32px;
}
/* resources/views/departments/trash.blade.php */
.departments-trash__page-header-style {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    justify-content: space-between;
}
.departments-trash__layout-01 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-primary);
    font-size: 20px;
}
.departments-trash__layout-02 {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.departments-trash__layout-03 {
    display: flex;
    gap: 12px;
}
.departments-trash__btn-ghost-style {
    display: flex;
    align-items: center;
    gap: 8px;
}
.departments-trash__layout-04 {
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}
.departments-trash__app-standard-table-style {
    width: 100%;
    border-collapse: collapse;
}
.departments-trash__layout-05 {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-error-light);
}
.departments-trash__layout-06 {
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    padding: 16px 20px;
}
.departments-trash__layout-07 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    text-align: right;
    padding: 16px 20px;
}
.departments-trash__layout-08 {
    border-bottom: 1px solid var(--color-border);
    transition: background 0.2s;
}
.departments-trash__layout-09 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 16px 20px;
}
.departments-trash__layout-10 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    padding: 16px 20px;
}
.departments-trash__layout-11 {
    font-size: 13px;
    color: var(--color-text-secondary);
    font-weight: 400;
    padding: 16px 20px;
}
.departments-trash__layout-12 {
    font-size: 13px;
    color: var(--color-text-secondary);
    padding: 16px 20px;
}
.departments-trash__layout-13 {
    text-align: right;
    padding: 16px 20px;
}
.departments-trash__layout-14 {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.departments-trash__layout-15 {
    display: inline-block;
}
.departments-trash__btn-restore-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}
.departments-trash__btn-delete-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    background: var(--color-primary-subtle);
    border: 1px solid var(--color-primary-border-strong);
    color: var(--color-primary-hover);
}
.departments-trash__layout-16 {
    color: var(--color-text-muted);
    text-align: center;
    padding: 60px;
}
.departments-trash__layout-17 {
    margin-bottom: 12px;
    font-size: 37px;
}
.departments-trash__layout-18 {
    margin-top: 20px;
}
/* resources/views/errors/404.blade.php */
.errors-404__layout-01 {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    min-height: calc(100vh - 160px);
    padding-top: 20px;
}
.errors-404__layout-02 {
    font-weight: 600;
    user-select: none;
    position: absolute;
    pointer-events: none;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(200px, 35vw, 320px);
    color: var(--color-bg-base);
    opacity: 0.8;
    z-index: 0;
    filter: contrast(1.1);
}
.errors-404__layout-03 {
    width: 100%;
    position: relative;
    max-width: 500px;
    padding: 40px;
    text-align: center;
    z-index: 2;
    margin-top: -40px;
}
.errors-404__layout-04 {
    margin-bottom: 32px;
    display: inline-block;
    position: relative;
}
.errors-404__layout-05 {
    border-radius: 50%;
    background: var(--color-primary);
    position: absolute;
    width: 100px;
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100px;
    filter: blur(30px);
}
.errors-404__layout-06 {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    position: relative;
    border-radius: 24px;
    background: #fff;
    color: var(--color-primary);
    width: 88px;
    height: 88px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}
.errors-404__layout-07 {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 20px;
    line-height: 1.1;
    margin: 0 0 16px;
}
.errors-404__layout-08 {
    font-size: 13px;
    color: var(--color-text-secondary);
    max-width: 400px;
    margin-bottom: 40px;
    font-weight: 400;
    margin-left: auto;
    line-height: 1.7;
    margin-right: auto;
}
.errors-404__layout-09 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.errors-404__btn-primary-style {
    font-size: 13px;
    text-decoration: none;
    border-radius: 14px;
    height: 48px;
    padding: 0 28px;
    box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), 0.2);
}
.errors-404__btn-outline-style {
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    border-radius: 14px;
    height: 48px;
    padding: 0 28px;
}
.errors-404__layout-10 {
    position: absolute;
    top: 15%;
    left: 15%;
    opacity: 0.1;
    transform: rotate(-15deg);
}
.errors-404__layout-11 {
    position: absolute;
    opacity: 0.1;
    bottom: 25%;
    right: 20%;
    transform: rotate(15deg);
}
/* resources/views/layouts/app.blade.php */
.layouts-app__alert-error-style {
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 16px;
    color: var(--color-error);
    background: rgba(var(--color-primary-rgb), 0.13);
    border-left: 4px solid var(--color-error);
}
.layouts-app__layout-01 {
    color: var(--color-text-muted);
    padding: 40px;
    text-align: center;
}
.layouts-app__layout-02 {
    font-weight: 600;
    margin-top: 16px;
}
.layouts-app__layout-03 {
    display: flex;
    flex: 1;
    flex-direction: column;
}
.layouts-app__layout-04 {
    color: var(--color-error);
}
/* resources/views/leaves/holidays_trash.blade.php */
.leaves-holidays-trash__page-header-style {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    justify-content: space-between;
}
.leaves-holidays-trash__layout-01 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-primary);
    font-size: 20px;
}
.leaves-holidays-trash__layout-02 {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.leaves-holidays-trash__layout-03 {
    display: flex;
    gap: 12px;
}
.leaves-holidays-trash__btn-ghost-style {
    display: flex;
    align-items: center;
    gap: 8px;
}
.leaves-holidays-trash__layout-04 {
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}
.leaves-holidays-trash__app-standard-table-style {
    width: 100%;
    border-collapse: collapse;
}
.leaves-holidays-trash__layout-05 {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-error-light);
}
.leaves-holidays-trash__layout-06 {
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    padding: 16px 20px;
}
.leaves-holidays-trash__layout-07 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    text-align: right;
    padding: 16px 20px;
}
.leaves-holidays-trash__layout-08 {
    border-bottom: 1px solid var(--color-border);
    transition: background 0.2s;
}
.leaves-holidays-trash__layout-09 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    padding: 16px 20px;
}
.leaves-holidays-trash__layout-10 {
    font-size: 13px;
    color: var(--color-text-secondary);
    font-weight: 400;
    padding: 16px 20px;
}
.leaves-holidays-trash__layout-11 {
    font-size: 13px;
    color: var(--color-text-secondary);
    padding: 16px 20px;
}
.leaves-holidays-trash__layout-12 {
    text-align: right;
    padding: 16px 20px;
}
.leaves-holidays-trash__layout-13 {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.leaves-holidays-trash__layout-14 {
    display: inline-block;
}
.leaves-holidays-trash__btn-restore-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}
.leaves-holidays-trash__btn-delete-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    background: var(--color-primary-subtle);
    border: 1px solid var(--color-primary-border-strong);
    color: var(--color-primary-hover);
}
.leaves-holidays-trash__layout-15 {
    color: var(--color-text-muted);
    text-align: center;
    padding: 60px;
}
.leaves-holidays-trash__layout-16 {
    margin-bottom: 12px;
    font-size: 37px;
}
.leaves-holidays-trash__layout-17 {
    margin-top: 20px;
}
/* resources/views/maintenances/trash.blade.php */
.maintenances-trash__page-header-style {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    justify-content: space-between;
}
.maintenances-trash__layout-01 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-primary);
    font-size: 20px;
}
.maintenances-trash__layout-02 {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.maintenances-trash__layout-03 {
    display: flex;
    gap: 12px;
}
.maintenances-trash__btn-ghost-style {
    display: flex;
    align-items: center;
    gap: 8px;
}
.maintenances-trash__layout-04 {
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}
.maintenances-trash__app-standard-table-style {
    text-align: left;
    width: 100%;
    border-collapse: collapse;
}
.maintenances-trash__layout-05 {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-error-light);
}
.maintenances-trash__layout-06 {
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    padding: 16px 20px;
}
.maintenances-trash__layout-07 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    text-align: right;
    padding: 16px 20px;
}
.maintenances-trash__maintenance-trash-row-style {
    transition: 0.2s;
    border-bottom: 1px solid var(--color-border);
}
.maintenances-trash__layout-08 {
    padding: 20px 24px;
}
.maintenances-trash__layout-09 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.maintenances-trash__layout-10 {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 400;
}
.maintenances-trash__layout-11 {
    font-size: 13px;
    color: var(--color-text-muted);
}
.maintenances-trash__layout-12 {
    text-align: right;
    padding: 20px 24px;
}
.maintenances-trash__layout-13 {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.maintenances-trash__layout-14 {
    display: inline-block;
}
.maintenances-trash__btn-restore-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}
.maintenances-trash__btn-delete-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    background: var(--color-primary-subtle);
    border: 1px solid var(--color-primary-border-strong);
    color: var(--color-primary-hover);
}
.maintenances-trash__layout-15 {
    text-align: center;
    padding: 100px 40px;
}
.maintenances-trash__layout-16 {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 19px;
}
.maintenances-trash__layout-17 {
    color: var(--color-text-muted);
    margin-top: 8px;
}
/* resources/views/members/change_password.blade.php */
.members-change-password__layout-01 {
    max-width: 500px;
    margin: 0 auto;
}
.members-change-password__layout-02 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.members-change-password__layout-03 {
    display: flex;
    align-items: center;
    gap: 12px;
}
.members-change-password__btn-back-style {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    border-radius: 50%;
    color: var(--color-text-muted);
    padding: 8px;
}
.members-change-password__layout-04 {
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
    font-size: 20px;
}
.members-change-password__layout-05 {
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    background: var(--color-primary-light);
    width: 40px;
    height: 40px;
}
.members-change-password__layout-06 {
    border-radius: 12px;
    margin-bottom: 24px;
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    padding: 20px;
}
.members-change-password__layout-07 {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}
.members-change-password__layout-08 {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin: 0;
    padding-left: 24px;
    line-height: 1.8;
}
.members-change-password__layout-09 {
    color: var(--color-text-primary);
}
.members-change-password__layout-10 {
    margin-bottom: 20px;
}
.members-change-password__layout-11 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    display: block;
    margin-bottom: 8px;
}
.members-change-password__layout-12 {
    position: relative;
}
.members-change-password__layout-13 {
    font-size: 13px;
    transition: all 0.2s;
    background: var(--color-bg-base);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
    width: 100%;
    padding: 12px 40px 12px 16px;
}
.members-change-password__layout-14 {
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    justify-content: center;
    color: var(--color-text-muted);
    padding: 4px;
    background: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
}
.members-change-password__layout-15 {
    font-size: 13px;
    color: var(--color-error);
    font-weight: 400;
    margin-top: 6px;
}
.members-change-password__layout-16 {
    background: var(--color-bg-elevated);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 12px;
}
.members-change-password__layout-17 {
    border-radius: 3px;
    height: 100%;
    width: 0%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.members-change-password__layout-18 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-top: 6px;
    text-align: right;
}
.members-change-password__layout-19 {
    margin-bottom: 32px;
}
.members-change-password__layout-20 {
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
}
.members-change-password__layout-21 {
    display: flex;
    gap: 12px;
}
.members-change-password__btn-primary-style {
    color: #fff;
    font-size: 13px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    border-radius: 10px;
    background: var(--color-primary);
    box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.2);
    padding: 14px;
}
.members-change-password__btn-outline-style {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text-secondary);
    background: transparent;
    padding: 14px 24px;
}
/* resources/views/members/trash.blade.php */
.members-trash__page-header-style {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    justify-content: space-between;
}
.members-trash__layout-01 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-primary);
    font-size: 20px;
}
.members-trash__layout-02 {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.members-trash__layout-03 {
    display: flex;
    gap: 12px;
}
.members-trash__btn-ghost-style {
    display: flex;
    align-items: center;
    gap: 8px;
}
.members-trash__layout-04 {
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}
.members-trash__app-standard-table-style {
    width: 100%;
    border-collapse: collapse;
}
.members-trash__layout-05 {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-error-light);
}
.members-trash__layout-06 {
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    padding: 16px 20px;
}
.members-trash__layout-07 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    text-align: right;
    padding: 16px 20px;
}
.members-trash__layout-08 {
    border-bottom: 1px solid var(--color-border);
    transition: background 0.2s;
}
.members-trash__layout-09 {
    padding: 16px 20px;
}
.members-trash__layout-10 {
    display: flex;
    align-items: center;
    gap: 12px;
}
.members-trash__layout-11 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.members-trash__layout-12 {
    font-size: 13px;
    color: var(--color-text-muted);
}
.members-trash__layout-13 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
}
.members-trash__layout-14 {
    font-size: 13px;
    color: var(--color-text-secondary);
    padding: 16px 20px;
}
.members-trash__layout-15 {
    text-align: right;
    padding: 16px 20px;
}
.members-trash__layout-16 {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.members-trash__layout-17 {
    display: inline-block;
}
.members-trash__btn-restore-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}
.members-trash__btn-delete-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    background: var(--color-primary-subtle);
    border: 1px solid var(--color-primary-border-strong);
    color: var(--color-primary-hover);
}
.members-trash__layout-18 {
    color: var(--color-text-muted);
    text-align: center;
    padding: 60px;
}
.members-trash__layout-19 {
    margin-bottom: 12px;
    font-size: 37px;
}
.members-trash__layout-20 {
    margin-top: 20px;
}
/* resources/views/pinterest_publishings/trash.blade.php */
.pinterest-publishings-trash__page-header-style {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    justify-content: space-between;
}
.pinterest-publishings-trash__layout-01 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-primary);
    font-size: 20px;
}
.pinterest-publishings-trash__layout-02 {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.pinterest-publishings-trash__layout-03 {
    display: flex;
    gap: 12px;
}
.pinterest-publishings-trash__btn-ghost-style {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pinterest-publishings-trash__layout-04 {
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}
.pinterest-publishings-trash__app-standard-table-style {
    text-align: left;
    width: 100%;
    border-collapse: collapse;
}
.pinterest-publishings-trash__layout-05 {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-error-light);
}
.pinterest-publishings-trash__layout-06 {
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    padding: 16px 20px;
}
.pinterest-publishings-trash__layout-07 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    text-align: right;
    padding: 16px 20px;
}
.pinterest-publishings-trash__layout-08 {
    transition: 0.2s;
    border-bottom: 1px solid var(--color-border);
}
.pinterest-publishings-trash__layout-09 {
    padding: 20px 24px;
}
.pinterest-publishings-trash__layout-10 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.pinterest-publishings-trash__layout-11 {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 400;
}
.pinterest-publishings-trash__layout-12 {
    font-size: 13px;
    color: var(--color-text-muted);
}
.pinterest-publishings-trash__layout-13 {
    text-align: right;
    padding: 20px 24px;
}
.pinterest-publishings-trash__layout-14 {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.pinterest-publishings-trash__layout-15 {
    display: inline-block;
}
.pinterest-publishings-trash__btn-restore-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}
.pinterest-publishings-trash__btn-delete-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    background: var(--color-primary-subtle);
    border: 1px solid var(--color-primary-border-strong);
    color: var(--color-primary-hover);
}
.pinterest-publishings-trash__layout-16 {
    text-align: center;
    padding: 100px 40px;
}
.pinterest-publishings-trash__layout-17 {
    display: flex;
    align-items: center;
    border-radius: 50%;
    justify-content: center;
    background: #f8fafc;
    height: 64px;
    width: 64px;
    margin: 0 auto 16px;
}
.pinterest-publishings-trash__layout-18 {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 19px;
}
.pinterest-publishings-trash__layout-19 {
    color: var(--color-text-muted);
    margin-top: 8px;
}
.pinterest-publishings-trash__layout-20 {
    padding: 24px;
    border-top: 1px solid var(--color-border);
}
/* resources/views/portfolio_publishings/trash.blade.php */
.portfolio-publishings-trash__page-header-style {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    justify-content: space-between;
}
.portfolio-publishings-trash__layout-01 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-primary);
    font-size: 20px;
}
.portfolio-publishings-trash__layout-02 {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.portfolio-publishings-trash__layout-03 {
    display: flex;
    gap: 12px;
}
.portfolio-publishings-trash__btn-ghost-style {
    display: flex;
    align-items: center;
    gap: 8px;
}
.portfolio-publishings-trash__layout-04 {
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}
.portfolio-publishings-trash__app-standard-table-style {
    text-align: left;
    width: 100%;
    border-collapse: collapse;
}
.portfolio-publishings-trash__layout-05 {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-error-light);
}
.portfolio-publishings-trash__layout-06 {
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    padding: 16px 20px;
}
.portfolio-publishings-trash__layout-07 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    text-align: right;
    padding: 16px 20px;
}
.portfolio-publishings-trash__layout-08 {
    transition: 0.2s;
    border-bottom: 1px solid var(--color-border);
}
.portfolio-publishings-trash__layout-09 {
    padding: 20px 24px;
}
.portfolio-publishings-trash__layout-10 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.portfolio-publishings-trash__layout-11 {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 400;
}
.portfolio-publishings-trash__layout-12 {
    font-size: 13px;
    color: var(--color-text-muted);
}
.portfolio-publishings-trash__layout-13 {
    text-align: right;
    padding: 20px 24px;
}
.portfolio-publishings-trash__layout-14 {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.portfolio-publishings-trash__layout-15 {
    display: inline-block;
}
.portfolio-publishings-trash__btn-restore-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}
.portfolio-publishings-trash__btn-delete-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    background: var(--color-primary-subtle);
    border: 1px solid var(--color-primary-border-strong);
    color: var(--color-primary-hover);
}
.portfolio-publishings-trash__layout-16 {
    text-align: center;
    padding: 100px 40px;
}
.portfolio-publishings-trash__layout-17 {
    display: flex;
    align-items: center;
    border-radius: 50%;
    justify-content: center;
    background: #f8fafc;
    height: 64px;
    width: 64px;
    margin: 0 auto 16px;
}
.portfolio-publishings-trash__layout-18 {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 19px;
}
.portfolio-publishings-trash__layout-19 {
    color: var(--color-text-muted);
    margin-top: 8px;
}
.portfolio-publishings-trash__layout-20 {
    padding: 24px;
    border-top: 1px solid var(--color-border);
}
/* resources/views/secure_vault/setup.blade.php */
.secure-vault-setup__layout-01 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}
.secure-vault-setup__layout-02 {
    width: 100%;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    padding: 40px;
    max-width: 480px;
    text-align: center;
}
.secure-vault-setup__layout-03 {
    display: flex;
    align-items: center;
    border-radius: 50%;
    justify-content: center;
    width: 80px;
    height: 80px;
    color: var(--color-primary);
    margin: 0 auto 24px;
    background: rgba(79, 70, 229, 0.1);
}
.secure-vault-setup__layout-04 {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 12px;
    font-size: 20px;
}
.secure-vault-setup__layout-05 {
    font-size: 13px;
    margin-bottom: 32px;
    color: var(--color-text-muted);
    font-weight: 400;
}
.secure-vault-setup__layout-07 {
    font-size: 13px;
    border-radius: 12px;
    font-weight: 600;
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-error);
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}
.secure-vault-setup__layout-08 {
    margin: 0;
    padding-left: 20px;
}
.secure-vault-setup__layout-09 {
    margin-bottom: 24px;
    text-align: left;
}
.secure-vault-setup__layout-10 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    display: block;
    margin-bottom: 8px;
}
.secure-vault-setup__layout-11 {
    margin-bottom: 32px;
    text-align: left;
}
.secure-vault-setup__btn-primary-style {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    width: 100%;
    height: 56px;
}
.secure-vault-setup__layout-12 {
    margin-top: 20px;
}
.secure-vault-setup__layout-13 {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text-muted);
}
/* resources/views/seo_contents/show.blade.php */
.seo-contents-show__timeline-container-style {
    display: flex;
    position: relative;
    justify-content: space-between;
    margin-bottom: 10px;
}
.seo-contents-show__layout-01 {
    background: var(--color-bg-elevated);
    position: absolute;
    top: 12px;
    height: 2px;
    z-index: 1;
    left: calc(100% / 14);
    right: calc(100% / 14);
}
.seo-contents-show__layout-02 {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--color-error-light);
    border-radius: 20px;
    border: 2px solid var(--color-primary-subtle);
}
.seo-contents-show__layout-03 {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--color-error);
    text-transform: uppercase;
}
.seo-contents-show__layout-04 {
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    justify-content: center;
    background: var(--color-primary);
}
.seo-contents-show__layout-05 {
    margin-bottom: 20px;
}
.seo-contents-show__layout-06 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
    margin-left: 34px;
}
.seo-contents-show__layout-07 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.seo-contents-show__layout-08 {
    display: flex;
    gap: 8px;
    flex: 1;
}
.seo-contents-show__topic-input-style {
    font-size: 13px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.2s;
    flex: 1;
    background: #fff;
    border: 1.5px solid var(--color-border);
    padding: 0 16px;
    height: 48px;
}
.seo-contents-show__action-btn-style {
    border-radius: 12px;
    width: 48px;
    height: 48px;
}
.seo-contents-show__layout-09 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.seo-contents-show__layout-10 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-left: 34px;
}
.seo-contents-show__layout-11 {
    border-radius: 8px;
    font-size: 13px;
    border: none;
    font-weight: 600;
    transition: 0.2s;
    cursor: pointer;
    padding: 4px 12px;
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.seo-contents-show__layout-12 {
    display: flex;
    gap: 8px;
    flex-direction: column;
}
.seo-contents-show__layout-13 {
    margin-bottom: 24px;
}
.seo-contents-show__layout-14 {
    display: flex;
    gap: 10px;
    align-items: start;
}
.seo-contents-show__review-actions-style {
    margin-top: 12px;
}
.seo-contents-show__layout-15 {
    flex: 1;
}
.seo-contents-show__layout-16 {
    background: #fff;
    height: 260px;
}
.seo-contents-show__layout-17 {
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 20px;
    background: #fffbeb;
    border: 2px solid #fef3c7;
}
.seo-contents-show__layout-18 {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    text-transform: uppercase;
    color: #d97706;
    justify-content: space-between;
}
.seo-contents-show__layout-19 {
    display: flex;
    align-items: center;
    gap: 8px;
}
.seo-contents-show__layout-20 {
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    justify-content: center;
    background: #d97706;
}
.seo-contents-show__layout-21 {
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fcd34d;
}
.seo-contents-show__writer-assignment-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 14px;
}
.seo-contents-show__writer-field {
    min-width: 0;
}
.seo-contents-show__writer-field .seo-contents-show__layout-06 {
    margin-bottom: 7px;
    margin-left: 2px;
    color: #92400e;
    font-size: 12px;
}
.seo-contents-show__writer-field .task-enhanced-select__trigger {
    min-height: 48px;
    padding: 6px 12px;
    border: 1.5px solid color-mix(in srgb, var(--color-warning) 35%, var(--color-border));
    border-radius: 12px;
    font-size: 13px;
}
.seo-contents-show__writer-field .task-enhanced-select__trigger:hover,
.seo-contents-show__writer-field .task-enhanced-select.is-open .task-enhanced-select__trigger {
    border-color: var(--color-warning);
}
.seo-contents-show__writer-field .task-enhanced-select.is-disabled .task-enhanced-select__trigger {
    background: var(--color-white);
    opacity: 1;
}
.seo-contents-show__writer-date-control {
    min-width: 0;
}
.seo-contents-show__writer-date-control input {
    width: 100%;
    min-width: 0;
    height: 48px;
    font-size: 13px;
    cursor: pointer;
}
.seo-contents-show__writer-date-control .thai-date-field {
    height: 48px;
    border: 1.5px solid color-mix(in srgb, var(--color-warning) 35%, var(--color-border));
    border-radius: 12px;
    background: var(--color-white);
    font-size: 13px;
}
.seo-contents-show__writer-date-control .thai-date-field:hover:not(:disabled):not(.is-readonly),
.seo-contents-show__writer-date-control .thai-date-field:focus-visible,
.seo-contents-show__writer-date-control .thai-date-field[aria-expanded="true"] {
    border-color: var(--color-warning);
}
.seo-contents-show__writer-date-control .thai-date-field:focus-visible,
.seo-contents-show__writer-date-control .thai-date-field[aria-expanded="true"] {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-warning) 10%, transparent);
}
.seo-contents-show__writer-assignment-hint {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 7px;
    margin: -2px 2px 0;
    color: #a16207;
    font-size: 12px;
    line-height: 1.5;
}
.seo-writer-review {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--color-info) 25%, var(--color-line-strong));
    border-radius: 12px;
    background: var(--color-bg-surface);
}
.seo-writer-review[hidden] {
    display: none;
}
.seo-writer-review__header,
.seo-writer-review__meta,
.seo-writer-review__actions,
.seo-writer-review__history-item {
    display: flex;
    align-items: center;
}
.seo-writer-review__header {
    justify-content: space-between;
    gap: 14px;
}
.seo-writer-review__eyebrow {
    color: var(--color-info);
    font-size: 11px;
    text-transform: uppercase;
}
.seo-writer-review__header h3 {
    margin: 2px 0 0;
    color: var(--color-text-primary);
    font-size: 17px;
}
.seo-writer-review__result {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 4px 9px;
    border-radius: var(--radius-full);
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 11px;
}
.seo-writer-review__result--approved {
    background: var(--color-success-light);
    color: var(--color-success);
}
.seo-writer-review__result--revision_requested {
    background: var(--color-error-light);
    color: var(--color-error);
}
.seo-writer-review__meta {
    flex-wrap: wrap;
    gap: 7px 14px;
    margin-top: 12px;
    color: var(--color-text-muted);
    font-size: 12px;
}
.seo-writer-review__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.seo-writer-review__attention {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 9px 11px;
    border-radius: 8px;
    background: var(--color-error-light);
    color: var(--color-error);
    font-size: 12px;
}
.seo-writer-review__note {
    margin-top: 12px;
    padding: 11px 12px;
    border-radius: 8px;
    background: var(--color-bg-subtle);
}
.seo-writer-review__note strong {
    color: var(--color-text-primary);
    font-size: 12px;
}
.seo-writer-review__note p {
    margin: 4px 0 0;
    color: var(--color-text-secondary);
    font-size: 13px;
    line-height: 1.6;
}
.seo-writer-review__actions {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.seo-writer-review__preview {
    height: 460px;
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid var(--color-line-strong);
    border-radius: 10px;
    background: var(--color-bg-subtle);
}
.seo-writer-review__preview[hidden] {
    display: none;
}
.seo-writer-review__preview iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.seo-writer-review__history {
    margin-top: 14px;
    border-top: 1px solid var(--color-line);
}
.seo-writer-review__history[hidden] {
    display: none;
}
.seo-writer-review__history summary {
    padding: 12px 0 4px;
    color: var(--color-text-secondary);
    font-size: 12px;
    cursor: pointer;
}
.seo-writer-review__history-list {
    display: grid;
    gap: 7px;
    margin-top: 7px;
}
.seo-writer-review__history-item {
    flex-wrap: wrap;
    gap: 7px 12px;
    padding: 9px 10px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
}
.seo-writer-review__history-item > div {
    display: grid;
    flex: 1;
    min-width: 130px;
}
.seo-writer-review__history-item > div span,
.seo-writer-review__history-item small {
    color: var(--color-text-muted);
    font-size: 11px;
}
.seo-writer-review__history-item a {
    color: var(--color-primary);
    font-size: 12px;
    text-decoration: none;
}
.seo-comment-revision,
.seo-comment-resolution {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-size: 10px;
}
.seo-comment-revision {
    background: var(--color-bg-subtle);
    color: var(--color-text-muted);
}
.seo-comment-resolution--open {
    background: var(--color-error-light);
    color: var(--color-error);
}
.seo-comment-resolution--resolved {
    background: var(--color-success-light);
    color: var(--color-success);
}
.seo-comment-row.is-revision-request {
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--color-error) 28%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--color-error) 4%, transparent);
}
.seo-comment-row.is-revision-request.is-resolved {
    border-color: color-mix(in srgb, var(--color-success) 28%, transparent);
    background: color-mix(in srgb, var(--color-success) 4%, transparent);
}
.seo-contents-show__layout-22 {
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 20px;
    border: 2px solid #e0f2fe;
    background: #f0f9ff;
}
.seo-contents-show__layout-23 {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #0284c7;
    text-transform: uppercase;
    justify-content: space-between;
}
.seo-contents-show__layout-24 {
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    justify-content: center;
    background: #0284c7;
}
.seo-contents-show__layout-25 {
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}
.seo-contents-show__layout-26 {
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 20px;
    border: 2px solid #f3e8ff;
    background: #faf5ff;
}
.seo-contents-show__layout-27 {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    text-transform: uppercase;
    color: #9333ea;
    justify-content: space-between;
}
.seo-contents-show__layout-28 {
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    justify-content: center;
    background: #9333ea;
}
.seo-contents-show__layout-29 {
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    background: #f3e8ff;
    color: #9333ea;
    border: 1px solid #d8b4fe;
}
.seo-workflow-section {
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}
.seo-workflow-section.is-complete {
    border-color: color-mix(in srgb, var(--color-success) 28%, var(--color-border));
    background: var(--color-success-light);
}
.seo-workflow-section.is-complete :is(.seo-contents-show__layout-03, .seo-contents-show__layout-18, .seo-contents-show__layout-23, .seo-contents-show__layout-27) {
    color: var(--color-success);
}
.seo-workflow-section.is-complete :is(.seo-contents-show__layout-04, .seo-contents-show__layout-20, .seo-contents-show__layout-24, .seo-contents-show__layout-28) {
    background: var(--color-success);
}
.seo-workflow-section.is-disabled {
    border-color: var(--color-border);
    background: var(--color-bg-subtle);
    opacity: 0.58;
    cursor: not-allowed;
}
.seo-workflow-section.is-disabled :is(input, button, select, textarea, .ql-editor) {
    cursor: not-allowed;
}
.seo-workflow-section__state {
    display: none;
    flex-shrink: 0;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding: 3px 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: var(--color-white);
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
}
.seo-workflow-section.is-current .seo-workflow-section__state,
.seo-workflow-section.is-complete .seo-workflow-section__state,
.seo-workflow-section.is-disabled .seo-workflow-section__state {
    display: inline-flex;
}
.seo-workflow-section.is-complete .seo-workflow-section__state {
    border-color: color-mix(in srgb, var(--color-success) 28%, var(--color-border));
    color: var(--color-success);
}
.seo-contents-show__comment-panel-item-style {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 4px;
}
.seo-contents-show__layout-30 {
    flex-shrink: 0;
}
.seo-contents-show__layout-31 {
    border-radius: 50%;
    border: 1px solid var(--color-border);
    width: 28px;
    height: 28px;
    object-fit: cover;
}
.seo-contents-show__comment-single-line-style {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.seo-contents-show__comment-text-wrap-style {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1;
    overflow: hidden;
    gap: 4px;
    min-width: 0;
}
.seo-contents-show__layout-32 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    flex-shrink: 0;
}
.seo-contents-show__layout-33 {
    color: var(--color-text-muted);
    flex-shrink: 0;
}
.seo-contents-show__inline-quill-style {
    font-size: 13px;
    flex: 1;
    color: var(--color-text-secondary);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
}
.seo-contents-show__comment-time-style {
    font-size: 13px;
    color: var(--color-text-muted);
    flex-shrink: 0;
    white-space: nowrap;
}
.seo-contents-show__layout-34 {
    flex-shrink: 0;
    position: relative;
}
.seo-contents-show__seo-comment-edit-area-style {
    flex: 1;
    min-width: 0;
}
.seo-contents-show__view-edit-quill-style {
    font-size: 13px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    outline: none;
    width: 100%;
    background: #fff;
    font-family: inherit;
    min-height: 40px;
}
.seo-contents-show__layout-35 {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: flex-end;
}
.seo-contents-show__layout-36 {
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    padding: 4px 12px;
    background: transparent;
}
.seo-contents-show__layout-37 {
    color: #fff;
    font-size: 13px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    padding: 4px 12px;
    background: var(--color-primary);
}
.seo-contents-show__seo-workflow-save-button-style {
    color: #fff;
    background: #334155;
}
.seo-contents-show__seo-workflow-save-button-style-2 {
    color: #fff;
    background: var(--color-primary);
}
.seo-contents-show__wf-btn-style {
    color: #fff;
    background: #334155;
}
.seo-contents-show__wf-btn-style-2 {
    color: var(--color-text-primary);
    background: var(--color-bg-elevated);
}
.seo-contents-show__wf-btn-style-3 {
    color: #fff;
    font-size: 13px;
    background: var(--color-success);
}
.seo-contents-show__wf-btn-style-4 {
    color: #fff;
    background: var(--color-text-muted-2);
    cursor: not-allowed;
}
.seo-contents-show__wf-btn-style-5 {
    color: #fff;
    font-size: 13px;
    background: var(--color-error);
    margin-top: 4px;
}
.seo-contents-show__wf-btn-style-6 {
    background: #fde68a;
    color: #b45309;
    border: 1px solid var(--color-warning);
    cursor: default;
}
.seo-contents-show__wf-btn-style-7 {
    color: #fff;
    font-size: 13px;
    background: var(--color-success);
}
.seo-contents-show__layout-38 {
    border-radius: 12px;
    font-weight: 600;
    color: var(--color-success);
    padding: 10px;
    text-align: center;
    font-family: inherit;
    margin-bottom: 12px;
    border: 2px solid var(--color-success);
}
.seo-contents-show__layout-39 {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    animation: spin 0.8s linear infinite;
}
.seo-contents-show__field-rejected-bg-style {
    font-size: 13px;
    border-radius: 12px;
    font-weight: 600;
    flex: 1;
    background: #fff;
    border: 1.5px solid var(--color-border);
    padding: 0 16px;
    height: 48px;
}
.seo-contents-show__rk-del-btn-style {
    border-radius: 12px;
    color: var(--color-error);
    width: 48px;
    height: 48px;
}
.seo-contents-show__topic-input-style-2 {
    font-size: 13px;
    border-radius: 12px;
    font-weight: 600;
    flex: 1;
    background: #fff;
    border: 1.5px solid var(--color-border);
    padding: 0 16px;
    height: 48px;
}
.seo-contents-show__wn-del-btn-style {
    border-radius: 12px;
    color: var(--color-error);
    width: 48px;
    height: 48px;
}
.seo-contents-show__al-del-btn-style {
    border-radius: 12px;
    color: var(--color-error);
    width: 48px;
    height: 48px;
}
.seo-contents-show__pl-del-btn-style {
    border-radius: 12px;
    color: var(--color-error);
    width: 48px;
    height: 48px;
}
/* resources/views/seo_contents/trash.blade.php */
.seo-contents-trash__page-header-style {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    justify-content: space-between;
}
.seo-contents-trash__layout-01 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-primary);
    font-size: 20px;
}
.seo-contents-trash__layout-02 {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.seo-contents-trash__layout-03 {
    display: flex;
    gap: 12px;
}
.seo-contents-trash__btn-ghost-style {
    display: flex;
    align-items: center;
    gap: 8px;
}
.seo-contents-trash__layout-04 {
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}
.seo-contents-trash__app-standard-table-style {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.seo-contents-trash__layout-05 {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-error-light);
}
.seo-contents-trash__layout-06 {
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    padding: 16px 20px;
}
.seo-contents-trash__layout-07 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    text-align: right;
    padding: 16px 20px;
}
.seo-contents-trash__layout-08 {
    border-bottom: 1px solid var(--color-border);
    padding: 20px 16px;
}
.seo-contents-trash__layout-09 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.seo-contents-trash__layout-10 {
    font-size: 13px;
    color: var(--color-text-muted);
}
.seo-contents-trash__layout-11 {
    font-size: 13px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 20px 16px;
}
.seo-contents-trash__layout-12 {
    border-bottom: 1px solid var(--color-border);
    text-align: right;
    padding: 20px 16px;
}
.seo-contents-trash__layout-13 {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.seo-contents-trash__layout-14 {
    display: inline-block;
}
.seo-contents-trash__btn-restore-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}
.seo-contents-trash__btn-delete-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    background: var(--color-primary-subtle);
    border: 1px solid var(--color-primary-border-strong);
    color: var(--color-primary-hover);
}
.seo-contents-trash__layout-15 {
    color: var(--color-text-muted);
    text-align: center;
    padding: 60px;
}
/* resources/views/seo_monthlies/trash.blade.php */
.seo-monthlies-trash__page-header-style {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    justify-content: space-between;
}
.seo-monthlies-trash__layout-01 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-primary);
    font-size: 20px;
}
.seo-monthlies-trash__layout-02 {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.seo-monthlies-trash__layout-03 {
    display: flex;
    gap: 12px;
}
.seo-monthlies-trash__btn-ghost-style {
    display: flex;
    align-items: center;
    gap: 8px;
}
.seo-monthlies-trash__layout-04 {
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}
.seo-monthlies-trash__app-standard-table-style {
    text-align: left;
    width: 100%;
    border-collapse: collapse;
}
.seo-monthlies-trash__layout-05 {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-error-light);
}
.seo-monthlies-trash__layout-06 {
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    padding: 16px 20px;
}
.seo-monthlies-trash__layout-07 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    text-align: right;
    padding: 16px 20px;
}
.seo-monthlies-trash__maintenance-trash-row-style {
    transition: 0.2s;
    border-bottom: 1px solid var(--color-border);
}
.seo-monthlies-trash__layout-08 {
    padding: 20px 24px;
}
.seo-monthlies-trash__layout-09 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.seo-monthlies-trash__layout-10 {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 400;
}
.seo-monthlies-trash__layout-11 {
    font-size: 13px;
    color: var(--color-text-muted);
}
.seo-monthlies-trash__layout-12 {
    text-align: right;
    padding: 20px 24px;
}
.seo-monthlies-trash__layout-13 {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.seo-monthlies-trash__layout-14 {
    display: inline-block;
}
.seo-monthlies-trash__btn-restore-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}
.seo-monthlies-trash__btn-delete-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    background: var(--color-primary-subtle);
    border: 1px solid var(--color-primary-border-strong);
    color: var(--color-primary-hover);
}
.seo-monthlies-trash__layout-15 {
    text-align: center;
    padding: 100px 40px;
}
.seo-monthlies-trash__layout-16 {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 19px;
}
.seo-monthlies-trash__layout-17 {
    color: var(--color-text-muted);
    margin-top: 8px;
}
/* resources/views/tasks/create.blade.php */
.tasks-create__layout-01 {
    transition: all 0.2s;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
}
.tasks-create__layout-02 {
    font-size: 13px;
    border: none;
    color: var(--color-text-primary);
    height: auto;
    min-height: 200px;
}
.tasks-create__form-group-compact-style {
    margin-bottom: 24px;
}
.tasks-create__layout-03 {
    border-radius: 12px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border: 2px dashed var(--color-border);
    min-height: 120px;
    background: rgba(249, 250, 251, 0.5);
    transition: all 0.3s ease;
}
.tasks-create__layout-04 {
    display: flex;
    align-items: center;
    cursor: pointer;
    justify-content: center;
    width: 100%;
    padding: 20px;
    flex-direction: column;
    text-align: center;
    height: 100%;
}
.tasks-create__layout-05 {
    display: flex;
    align-items: center;
    border-radius: 50%;
    justify-content: center;
    width: 48px;
    background: #fff;
    color: var(--color-primary);
    height: 48px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 0 auto 12px auto;
}
.tasks-create__layout-06 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}
.tasks-create__layout-07 {
    font-size: 13px;
    color: var(--color-text-muted);
}
.tasks-create__layout-08 {
    gap: 8px;
    padding: 16px;
    width: 100%;
    flex-wrap: wrap;
}
.tasks-create__layout-09 {
    padding: 4px;
    gap: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.tasks-create__layout-10 {
    border-radius: 50%;
    width: 24px;
    height: 24px;
    object-fit: cover;
}
.tasks-create__layout-11 {
    font-size: 13px;
    font-weight: 600;
}
.tasks-create__layout-12 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tasks-create__btn-ghost-style {
    margin-top: 10px;
}
.tasks-create__layout-13 {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}
.tasks-create__tips-content-style {
    font-size: 13px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.tasks-create__layout-14 {
    display: flex;
    gap: 16px;
    flex-direction: column;
}
.tasks-create__layout-15 {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tasks-create__layout-16 {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    object-fit: cover;
}
.tasks-create__layout-17 {
    flex: 1;
}
.tasks-create__layout-18 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.tasks-create__layout-19 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.tasks-create__layout-20 {
    background: var(--color-bg-base);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}
.tasks-create__form-control-compact-style {
    flex: 1;
}
/* resources/views/tasks/projects_trash.blade.php */
.tasks-projects-trash__page-header-style {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    justify-content: space-between;
}
.tasks-projects-trash__layout-01 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-primary);
    font-size: 20px;
}
.tasks-projects-trash__layout-02 {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.tasks-projects-trash__layout-03 {
    display: flex;
    gap: 12px;
}
.tasks-projects-trash__btn-ghost-style {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tasks-projects-trash__layout-04 {
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}
.tasks-projects-trash__app-standard-table-style {
    width: 100%;
    border-collapse: collapse;
}
.tasks-projects-trash__layout-05 {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-error-light);
}
.tasks-projects-trash__layout-06 {
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    padding: 16px 20px;
}
.tasks-projects-trash__layout-07 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    text-align: center;
    padding: 16px 20px;
}
.tasks-projects-trash__layout-08 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    text-align: right;
    padding: 16px 20px;
}
.tasks-projects-trash__layout-09 {
    border-bottom: 1px solid var(--color-border);
    transition: background 0.2s;
}
.tasks-projects-trash__layout-10 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 16px 20px;
}
.tasks-projects-trash__layout-11 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    padding: 16px 20px;
}
.tasks-projects-trash__layout-12 {
    text-align: center;
    padding: 16px 20px;
}
.tasks-projects-trash__layout-13 {
    font-size: 13px;
    color: var(--color-text-secondary);
    padding: 16px 20px;
}
.tasks-projects-trash__layout-14 {
    text-align: right;
    padding: 16px 20px;
}
.tasks-projects-trash__layout-15 {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.tasks-projects-trash__layout-16 {
    display: inline-block;
}
.tasks-projects-trash__btn-restore-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}
.tasks-projects-trash__btn-delete-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    background: var(--color-primary-subtle);
    border: 1px solid var(--color-primary-border-strong);
    color: var(--color-primary-hover);
}
.tasks-projects-trash__layout-17 {
    color: var(--color-text-muted);
    text-align: center;
    padding: 60px;
}
.tasks-projects-trash__layout-18 {
    margin-bottom: 12px;
    font-size: 37px;
}
/* resources/views/tasks/statuses_trash.blade.php */
.tasks-statuses-trash__page-header-style {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    justify-content: space-between;
}
.tasks-statuses-trash__layout-01 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-primary);
    font-size: 20px;
}
.tasks-statuses-trash__layout-02 {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.tasks-statuses-trash__layout-03 {
    display: flex;
    gap: 12px;
}
.tasks-statuses-trash__btn-ghost-style {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tasks-statuses-trash__layout-04 {
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}
.tasks-statuses-trash__app-standard-table-style {
    width: 100%;
    border-collapse: collapse;
}
.tasks-statuses-trash__layout-05 {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-error-light);
}
.tasks-statuses-trash__layout-06 {
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    padding: 16px 20px;
}
.tasks-statuses-trash__layout-07 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    text-align: center;
    padding: 16px 20px;
}
.tasks-statuses-trash__layout-08 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    text-align: right;
    padding: 16px 20px;
}
.tasks-statuses-trash__layout-09 {
    border-bottom: 1px solid var(--color-border);
    transition: background 0.2s;
}
.tasks-statuses-trash__layout-10 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 16px 20px;
}
.tasks-statuses-trash__layout-11 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    padding: 16px 20px;
}
.tasks-statuses-trash__layout-12 {
    text-align: center;
    padding: 16px 20px;
}
.tasks-statuses-trash__layout-13 {
    font-size: 13px;
    color: var(--color-text-secondary);
    padding: 16px 20px;
}
.tasks-statuses-trash__layout-14 {
    text-align: right;
    padding: 16px 20px;
}
.tasks-statuses-trash__layout-15 {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.tasks-statuses-trash__layout-16 {
    display: inline-block;
}
.tasks-statuses-trash__btn-restore-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}
.tasks-statuses-trash__btn-delete-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    background: var(--color-primary-subtle);
    border: 1px solid var(--color-primary-border-strong);
    color: var(--color-primary-hover);
}
.tasks-statuses-trash__layout-17 {
    color: var(--color-text-muted);
    text-align: center;
    padding: 60px;
}
.tasks-statuses-trash__layout-18 {
    margin-bottom: 12px;
    font-size: 37px;
}
/* resources/views/tasks/trash.blade.php */
.tasks-trash__page-header-style {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    justify-content: space-between;
}
.tasks-trash__layout-01 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-primary);
    font-size: 20px;
}
.tasks-trash__layout-02 {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.tasks-trash__layout-03 {
    display: flex;
    gap: 12px;
}
.tasks-trash__btn-ghost-style {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tasks-trash__layout-04 {
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}
.tasks-trash__app-standard-table-style {
    width: 100%;
    border-collapse: collapse;
}
.tasks-trash__layout-05 {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-error-light);
}
.tasks-trash__layout-06 {
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    padding: 16px 20px;
}
.tasks-trash__layout-07 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    text-align: right;
    padding: 16px 20px;
}
.tasks-trash__layout-08 {
    border-bottom: 1px solid var(--color-border);
    transition: background 0.2s;
}
.tasks-trash__layout-09 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 16px 20px;
}
.tasks-trash__layout-10 {
    padding: 16px 20px;
}
.tasks-trash__layout-11 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.tasks-trash__layout-12 {
    font-size: 13px;
    color: var(--color-text-secondary);
    font-weight: 400;
}
.tasks-trash__layout-13 {
    font-size: 13px;
    color: var(--color-text-secondary);
    padding: 16px 20px;
}
.tasks-trash__layout-14 {
    text-align: right;
    padding: 16px 20px;
}
.tasks-trash__layout-15 {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.tasks-trash__layout-16 {
    display: inline-block;
}
.tasks-trash__btn-restore-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}
.tasks-trash__btn-delete-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    background: var(--color-primary-subtle);
    border: 1px solid var(--color-primary-border-strong);
    color: var(--color-primary-hover);
}
.tasks-trash__layout-17 {
    color: var(--color-text-muted);
    text-align: center;
    padding: 60px;
}
.tasks-trash__layout-18 {
    margin-bottom: 12px;
    font-size: 37px;
}
.tasks-trash__layout-19 {
    margin-top: 20px;
}
/* resources/views/tasks/view.blade.php */
.tasks-view__task-single-page-style {
    width: 100%;
    margin: 0 auto;
    max-width: 1400px;
}
.tasks-view__task-single-header-style {
    margin-bottom: 24px;
}
.tasks-view__task-single-toolbar-style {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.tasks-view__btn-back-style {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    padding: 6px 12px;
    transition: all 0.2s;
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}
.tasks-view__task-single-toolbar-separator-style {
    color: var(--color-border);
}
.tasks-view__task-single-project-style {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
}
.tasks-view__task-single-toolbar-actions-style {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.tasks-view__task-single-copy-style {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border-radius: 6px;
    padding: 6px 12px;
    transition: all 0.2s;
    background: var(--color-bg-base);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    margin-left: 0;
}
.tasks-view__task-single-copy-style:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.tasks-view__task-single-layout-style {
    gap: 16px;
    align-items: start;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
}
.tasks-view__task-single-main-style {
    display: flex;
    gap: 16px;
    flex-direction: column;
}
.tasks-view__layout-01 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.tasks-view__layout-02 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-primary);
    margin: 0;
    font-size: 19px;
}
.tasks-view__layout-03 {
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--color-success);
    padding: 5px 14px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
}
.tasks-view__layout-04 {
    position: relative;
    margin-right: 4px;
    vertical-align: middle;
    top: -1px;
}
.tasks-view__layout-05 {
    font-size: 13px;
    color: var(--color-text-primary);
    min-height: 80px;
}
.tasks-view__layout-06 {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    justify-content: space-between;
}
.tasks-view__layout-07 {
    border-radius: 8px;
    font-size: 13px;
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 12px;
    color: var(--color-primary);
    gap: 4px;
    background: var(--color-primary-light);
    transition: all 0.2s;
}
.tasks-view__layout-08 {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.tasks-view__layout-09 {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 8px 12px;
    justify-content: space-between;
    transition: all 0.2s;
}
.tasks-view__layout-10 {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    color: var(--color-text-primary);
    max-width: 200px;
}
.tasks-view__layout-11 {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.tasks-view__layout-12 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.tasks-view__layout-13 {
    display: flex;
    align-items: center;
    gap: 4px;
}
.tasks-view__layout-14 {
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all 0.2s;
    background: transparent;
    padding: 6px;
}
.tasks-view__layout-15 {
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all 0.2s;
    background: transparent;
    padding: 6px;
}
.tasks-view__layout-16 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
}
.tasks-view__layout-17 {
    margin-bottom: 16px;
    background: var(--color-bg-elevated);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}
.tasks-view__layout-18 {
    display: flex;
    gap: 8px;
    flex-direction: column;
}
.tasks-view__subtask-input-style {
    font-size: 13px;
    border: none;
    flex: 1;
    outline: none;
    font-weight: 400;
    padding: 0;
    margin: 0;
    background: transparent;
}
.tasks-view__comment-panel-item-style {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 2px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.03);
    animation: fadeIn 0.4s ease;
}
.tasks-view__layout-19 {
    flex-shrink: 0;
}
.tasks-view__layout-20 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    flex-shrink: 0;
}
.tasks-view__layout-21 {
    color: var(--color-text-muted);
    flex-shrink: 0;
}
.tasks-view__inline-quill-style {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.tasks-view__layout-22 {
    flex-shrink: 0;
    position: relative;
}
.tasks-view__task-single-sidebar-style {
    display: flex;
    gap: 16px;
    flex-direction: column;
}
.tasks-view__comment-panel-item-style-2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 4px;
}
.tasks-view__comment-text-wrap-style {
    display: flex;
    align-items: center;
}
/* resources/views/tricks/create.blade.php */
.tricks-create__icon-style {
    color: var(--color-success);
}
/* resources/views/tricks/edit.blade.php */
.tricks-edit__icon-style {
    color: var(--color-success);
}
/* resources/views/vendor/pagination/website-jobs.blade.php */
.vendor-pagination-website-jobs__wj-pagination-style {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    flex-wrap: wrap;
}
.vendor-pagination-website-jobs__layout-01 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
}
.vendor-pagination-website-jobs__layout-02 {
    color: var(--color-text-primary);
}
.vendor-pagination-website-jobs__layout-03 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.vendor-pagination-website-jobs__layout-04 {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    align-items: center;
    padding: 6px 12px;
    cursor: not-allowed;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    display: inline-flex;
    background: #fff;
    gap: 4px;
    opacity: 0.45;
    user-select: none;
}
.vendor-pagination-website-jobs__layout-05 {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    display: inline-flex;
    background: #fff;
    gap: 4px;
    transition: all 0.15s;
}
.vendor-pagination-website-jobs__layout-06 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 6px 4px;
}
.vendor-pagination-website-jobs__layout-07 {
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    height: 36px;
    cursor: default;
    display: inline-flex;
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    min-width: 36px;
}
.vendor-pagination-website-jobs__layout-08 {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    height: 36px;
    display: inline-flex;
    background: #fff;
    transition: all 0.15s;
    min-width: 36px;
}
/* resources/views/website-credentials/create.blade.php */
.website-credentials-create__layout-01 {
    margin-bottom: 32px;
}
.website-credentials-create__layout-02 {
    color: var(--color-error);
}
.website-credentials-create__layout-03 {
    margin-top: 16px;
}
.website-credentials-create__layout-04 {
    margin-bottom: 16px;
    gap: 16px;
    display: grid;
    grid-template-columns: 3fr 1fr;
}
.website-credentials-create__form-row-single-line-style {
    margin-top: 16px;
}
.website-credentials-create__layout-05 {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}
.website-credentials-create__btn-secondary-style {
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    align-items: center;
    display: inline-flex;
    height: 44px;
    padding: 0 24px;
}
.website-credentials-create__btn-primary-style {
    border-radius: 12px;
    font-weight: 600;
    height: 44px;
    padding: 0 32px;
}
.website-credentials-create__layout-06 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-primary);
    font-size: 17px;
    margin: 0 0 12px;
}
.website-credentials-create__layout-07 {
    font-size: 13px;
    display: flex;
    gap: 8px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    flex-direction: column;
    margin: 0;
    padding-left: 20px;
}
.website-credentials-create__credential-item-style {
    position: relative;
    margin-top: 16px;
    border-top: 1px dashed var(--color-border);
    padding-top: 16px;
}
.website-credentials-create__layout-08 {
    margin-bottom: 16px;
    gap: 16px;
    padding-right: 24px;
    display: grid;
    grid-template-columns: 3fr 1fr;
}
.website-credentials-create__form-row-single-line-style-2 {
    padding-right: 24px;
}
.website-credentials-create__form-group-mb-style {
    padding-right: 24px;
}
/* resources/views/website-credentials/edit.blade.php */
.website-credentials-edit__layout-01 {
    margin-bottom: 32px;
}
.website-credentials-edit__layout-02 {
    color: var(--color-error);
}
.website-credentials-edit__layout-03 {
    border-radius: 8px;
    padding: 12px 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}
.website-credentials-edit__layout-04 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.website-credentials-edit__layout-05 {
    margin-top: 16px;
}
.website-credentials-edit__layout-06 {
    margin-bottom: 16px;
    gap: 16px;
    display: grid;
    grid-template-columns: 3fr 1fr;
}
.website-credentials-edit__form-row-single-line-style {
    margin-top: 16px;
}
.website-credentials-edit__layout-07 {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}
.website-credentials-edit__btn-secondary-style {
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    align-items: center;
    display: inline-flex;
    height: 44px;
    padding: 0 24px;
}
.website-credentials-edit__btn-primary-style {
    border-radius: 12px;
    font-weight: 600;
    height: 44px;
    padding: 0 32px;
}
.website-credentials-edit__layout-08 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-primary);
    font-size: 17px;
    margin: 0 0 12px;
}
.website-credentials-edit__layout-09 {
    font-size: 13px;
    display: flex;
    gap: 8px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    flex-direction: column;
    margin: 0;
    padding-left: 20px;
}
.website-credentials-edit__credential-item-style {
    position: relative;
    margin-top: 16px;
    border-top: 1px dashed var(--color-border);
    padding-top: 16px;
}
.website-credentials-edit__layout-10 {
    margin-bottom: 16px;
    gap: 16px;
    padding-right: 24px;
    display: grid;
    grid-template-columns: 3fr 1fr;
}
.website-credentials-edit__form-row-single-line-style-2 {
    padding-right: 24px;
}
.website-credentials-edit__form-group-mb-style {
    padding-right: 24px;
}
/* resources/views/website-credentials/trashed.blade.php */
.website-credentials-trashed__page-header-style {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    justify-content: space-between;
}
.website-credentials-trashed__layout-01 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-primary);
    font-size: 20px;
}
.website-credentials-trashed__layout-02 {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.website-credentials-trashed__layout-03 {
    display: flex;
    gap: 12px;
}
.website-credentials-trashed__btn-ghost-style {
    display: flex;
    align-items: center;
    gap: 8px;
}
.website-credentials-trashed__layout-04 {
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}
.website-credentials-trashed__layout-05 {
    margin-bottom: 24px;
}
.website-credentials-trashed__layout-06 {
    display: flex;
    gap: 16px;
}
.website-credentials-trashed__layout-07 {
    flex: 1;
    position: relative;
}
.website-credentials-trashed__layout-08 {
    font-size: 13px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    outline: none;
    width: 100%;
    height: 40px;
    padding: 0 16px 0 40px;
}
.website-credentials-trashed__layout-09 {
    color: var(--color-text-muted);
    position: absolute;
    left: 12px;
    top: 10px;
}
.website-credentials-trashed__app-standard-table-style {
    width: 100%;
    border-collapse: collapse;
}
.website-credentials-trashed__layout-10 {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-error-light);
}
.website-credentials-trashed__layout-11 {
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    padding: 16px 20px;
}
.website-credentials-trashed__layout-12 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    text-align: right;
    padding: 16px 20px;
}
.website-credentials-trashed__layout-13 {
    border-bottom: 1px solid var(--color-border);
}
.website-credentials-trashed__layout-14 {
    padding: 16px;
    vertical-align: middle;
}
.website-credentials-trashed__layout-15 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.website-credentials-trashed__layout-16 {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.website-credentials-trashed__layout-17 {
    display: flex;
    align-items: center;
    gap: 8px;
}
.website-credentials-trashed__layout-18 {
    align-items: center;
    border-radius: 6px;
    justify-content: center;
    color: var(--color-error);
    background: var(--color-primary-subtle);
    display: inline-flex;
    width: 24px;
    height: 24px;
}
.website-credentials-trashed__layout-19 {
    font-size: 13px;
    color: var(--color-text-secondary);
    font-weight: 400;
}
.website-credentials-trashed__layout-20 {
    color: var(--color-text-muted);
}
.website-credentials-trashed__layout-21 {
    align-items: center;
    border-radius: 6px;
    justify-content: center;
    display: inline-flex;
    width: 24px;
    height: 24px;
    background: #ffedd5;
    color: #f97316;
}
.website-credentials-trashed__layout-22 {
    align-items: center;
    border-radius: 6px;
    justify-content: center;
    display: inline-flex;
    width: 24px;
    height: 24px;
    background: #ede9fe;
    color: #8b5cf6;
}
.website-credentials-trashed__layout-23 {
    align-items: center;
    border-radius: 6px;
    justify-content: center;
    background: #e0f2fe;
    display: inline-flex;
    width: 24px;
    height: 24px;
    color: #0ea5e9;
}
.website-credentials-trashed__layout-24 {
    align-items: center;
    border-radius: 6px;
    justify-content: center;
    background: #dcfce7;
    color: var(--color-success);
    display: inline-flex;
    width: 24px;
    height: 24px;
}
.website-credentials-trashed__layout-25 {
    font-size: 13px;
    color: var(--color-text-muted);
    font-style: italic;
}
.website-credentials-trashed__layout-26 {
    padding: 16px;
    text-align: right;
    vertical-align: middle;
}
.website-credentials-trashed__layout-27 {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.website-credentials-trashed__layout-28 {
    display: inline-block;
}
.website-credentials-trashed__btn-restore-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}
.website-credentials-trashed__btn-delete-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    background: var(--color-primary-subtle);
    border: 1px solid var(--color-primary-border-strong);
    color: var(--color-primary-hover);
}
.website-credentials-trashed__layout-29 {
    color: var(--color-text-muted);
    text-align: center;
    padding: 60px 16px;
}
.website-credentials-trashed__layout-30 {
    margin-bottom: 16px;
    opacity: 0.5;
    font-size: 41px;
}
.website-credentials-trashed__layout-31 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}
.website-credentials-trashed__layout-32 {
    font-size: 13px;
    margin: 0 0 24px;
}
.website-credentials-trashed__layout-33 {
    padding: 16px;
    border-top: 1px solid var(--color-border);
}
/* resources/views/website-job-categories/create.blade.php */
.website-job-categories-create__page-container-style {
    max-width: 600px;
    margin: 0 auto;
}
.website-job-categories-create__layout-01 {
    margin-bottom: 24px;
}
.website-job-categories-create__layout-02 {
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
}
.website-job-categories-create__layout-03 {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-top: 12px;
    font-size: 20px;
}
.website-job-categories-create__layout-04 {
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--color-border);
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}
.website-job-categories-create__form-group-style {
    margin-bottom: 20px;
}
.website-job-categories-create__layout-05 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}
.website-job-categories-create__layout-06 {
    border-radius: 8px;
    font-size: 13px;
    padding: 12px;
    border: 1px solid var(--color-border);
    width: 100%;
}
.website-job-categories-create__layout-06:focus {
    outline: none;
    border-color: var(--color-primary);
}
.website-job-categories-create__layout-07 {
    font-size: 13px;
    color: var(--color-error);
    margin-top: 4px;
}
.website-job-categories-create__layout-08 {
    display: flex;
    justify-content: flex-end;
}
.website-job-categories-create__btn-primary-style {
    color: #fff;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 24px;
    background: var(--color-primary);
}
/* resources/views/website-job-categories/edit.blade.php */
.website-job-categories-edit__page-container-style {
    max-width: 600px;
    margin: 0 auto;
}
.website-job-categories-edit__layout-01 {
    margin-bottom: 24px;
}
.website-job-categories-edit__layout-02 {
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
}
.website-job-categories-edit__layout-03 {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-top: 12px;
    font-size: 20px;
}
.website-job-categories-edit__layout-04 {
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--color-border);
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}
.website-job-categories-edit__form-group-style {
    margin-bottom: 20px;
}
.website-job-categories-edit__layout-05 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}
.website-job-categories-edit__layout-06 {
    border-radius: 8px;
    font-size: 13px;
    padding: 12px;
    border: 1px solid var(--color-border);
    width: 100%;
}
.website-job-categories-edit__layout-06:focus {
    outline: none;
    border-color: var(--color-primary);
}
.website-job-categories-edit__layout-07 {
    font-size: 13px;
    color: var(--color-error);
    margin-top: 4px;
}
.website-job-categories-edit__layout-08 {
    display: flex;
    justify-content: flex-end;
}
.website-job-categories-edit__btn-primary-style {
    color: #fff;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 24px;
    background: var(--color-primary);
}
/* resources/views/website-jobs/index.blade.php */
.website-jobs-index__layout-01 {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 20px;
}
.website-jobs-index__layout-02 {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.website-jobs-index__text-danger-style {
    display: flex;
    align-items: center;
    gap: 8px;
}
.website-jobs-index__layout-03 {
    border-radius: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    justify-content: center;
    border: 1px solid var(--color-border);
    flex-shrink: 0;
    width: 48px;
    background: #fff;
    transition: all 0.2s;
    height: 48px;
}
.website-jobs-index__layout-04 {
    font-weight: 600;
    display: flex;
    align-items: center;
    color: var(--color-text-primary);
    gap: 10px;
    margin: 0;
    font-size: 20px;
}
.website-jobs-index__layout-05 {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    background: #e6f4ea;
    color: #137333;
}
.website-jobs-index__layout-06 {
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    background: none;
    font-size: 29px;
    line-height: 1;
    font-weight: 400;
    padding: 0;
    margin: 0;
}
.website-jobs-index__layout-07 {
    margin-bottom: 16px;
}
.website-jobs-index__layout-08 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 6px 0;
}
.website-jobs-index__layout-09 {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin: 0;
}
.website-jobs-index__layout-10 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-primary);
    font-size: 19px;
    margin: 0 0 16px 0;
}
.website-jobs-index__layout-11 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    display: block;
    margin-bottom: 8px;
}
.website-jobs-index__layout-12 {
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid var(--color-border);
    outline: none;
    width: 100%;
    background: #fff;
    height: 40px;
    padding: 0 12px;
}
.website-jobs-index__layout-13 {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    cursor: pointer;
    line-height: 1.5;
    color: var(--color-text-primary);
    gap: 10px;
    align-items: flex-start;
}
.website-jobs-index__layout-14 {
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 3px;
}
.website-jobs-index__layout-15 {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    color: var(--color-text-primary);
    margin-top: 4px;
}
.website-jobs-index__layout-16 {
    cursor: pointer;
    width: 16px;
    height: 16px;
}
.website-jobs-index__layout-17 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
}
.website-jobs-index__layout-18 {
    font-size: 13px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-primary);
    background: none;
    text-decoration: underline;
    font-family: inherit;
}
.website-jobs-index__app-standard-table-style {
    font-size: 13px;
    text-align: left;
    width: 100%;
    border-collapse: collapse;
}
.website-jobs-index__layout-19 {
    font-weight: 600;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-base);
    color: var(--color-text-primary);
    position: sticky;
    top: 0;
    z-index: 10;
}
.website-jobs-index__layout-20 {
    padding: 12px;
    text-align: center;
    width: 45px;
}
.website-jobs-index__layout-21 {
    padding: 12px;
    width: 180px;
}
.website-jobs-index__layout-22 {
    padding: 12px;
    width: 120px;
}
.website-jobs-index__layout-23 {
    padding: 12px;
    width: 100px;
}
.website-jobs-index__layout-24 {
    padding: 12px;
    width: 140px;
}
.website-jobs-index__layout-25 {
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 20px;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    background: #fff;
}
.website-jobs-index__layout-26 {
    color: #fff;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    background: var(--color-primary);
    padding: 10px 24px;
}
.website-jobs-index__spinner-style {
    margin: 0;
    width: 14px;
    height: 14px;
    border-width: 2px;
}
.website-jobs-index__layout-27 {
    font-weight: 600;
    color: #16a34a;
}
.website-jobs-index__layout-28 {
    font-weight: 600;
    color: #e28743;
}
.website-jobs-index__layout-29 {
    font-weight: 600;
    color: var(--color-error);
}
.website-jobs-index__layout-30 {
    padding: 12px;
    color: var(--color-text-secondary);
    text-align: center;
}
.website-jobs-index__layout-31 {
    font-weight: 600;
    padding: 12px;
    color: var(--color-text-primary);
}
.website-jobs-index__layout-32 {
    padding: 12px;
    color: var(--color-text-secondary);
}
.website-jobs-index__layout-33 {
    color: var(--color-text-muted);
    font-style: italic;
}
.website-jobs-index__layout-34 {
    padding: 12px;
    overflow: hidden;
    white-space: nowrap;
    color: var(--color-primary);
    text-overflow: ellipsis;
    max-width: 180px;
}
.website-jobs-index__layout-35 {
    font-family: monospace;
}
.website-jobs-index__layout-36 {
    padding: 12px;
}
/* resources/views/website-jobs/partials/table.blade.php */
.website-jobs-partials-table__kanban-assignees-style {
    justify-content: center;
}
.website-jobs-partials-table__layout-01 {
    display: inline-block;
    margin: 0;
}
.website-jobs-partials-table__cw-empty-state-style {
    text-align: center;
    padding: 40px 0;
}
.website-jobs-partials-table__cw-empty-icon-style {
    margin-bottom: 8px;
    color: #cbd5e1;
}
.website-jobs-partials-table__layout-02 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted-2);
}
.website-jobs-partials-table__pagination-container-style {
    margin-top: 24px;
}
/* resources/views/website-jobs/trash.blade.php */
.website-jobs-trash__page-header-style {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    justify-content: space-between;
}
.website-jobs-trash__layout-01 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-primary);
    font-size: 20px;
}
.website-jobs-trash__layout-02 {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.website-jobs-trash__layout-03 {
    display: flex;
    gap: 12px;
}
.website-jobs-trash__btn-ghost-style {
    display: flex;
    align-items: center;
    gap: 8px;
}
.website-jobs-trash__layout-04 {
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}
.website-jobs-trash__app-standard-table-style {
    text-align: left;
    width: 100%;
    border-collapse: collapse;
}
.website-jobs-trash__layout-05 {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-error-light);
}
.website-jobs-trash__layout-06 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    padding: 16px 20px;
}
.website-jobs-trash__layout-07 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    text-align: right;
    padding: 16px 20px;
}
.website-jobs-trash__layout-08 {
    border-bottom: 1px solid var(--color-border);
    transition: background 0.2s;
}
.website-jobs-trash__layout-09 {
    padding: 16px 20px;
}
.website-jobs-trash__layout-10 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.website-jobs-trash__layout-11 {
    font-size: 13px;
    color: var(--color-text-muted);
}
.website-jobs-trash__layout-12 {
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.website-jobs-trash__layout-13 {
    font-size: 13px;
    color: var(--color-text-secondary);
    padding: 16px 20px;
}
.website-jobs-trash__layout-14 {
    text-align: right;
    padding: 16px 20px;
}
.website-jobs-trash__layout-15 {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.website-jobs-trash__layout-16 {
    display: inline-block;
}
.website-jobs-trash__btn-restore-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}
.website-jobs-trash__btn-delete-style {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    background: var(--color-primary-subtle);
    border: 1px solid var(--color-primary-border-strong);
    color: var(--color-primary-hover);
}
.website-jobs-trash__layout-17 {
    text-align: center;
    padding: 100px;
}
.website-jobs-trash__layout-18 {
    display: flex;
    align-items: center;
    border-radius: 50%;
    justify-content: center;
    margin: 0 auto 20px;
    background: #f1f5f9;
    color: #cbd5e1;
    width: 72px;
    height: 72px;
}
.website-jobs-trash__layout-19 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted-2);
}
.website-jobs-trash__pagination-container-style {
    margin-top: 24px;
}
/* resources/views/website-jobs/unlock.blade.php */
.website-jobs-unlock__layout-01 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}
.website-jobs-unlock__layout-02 {
    border-radius: 16px;
    border: 1px solid var(--color-border);
    width: 100%;
    background: #fff;
    padding: 40px;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}
.website-jobs-unlock__layout-03 {
    margin-bottom: 32px;
    text-align: center;
}
.website-jobs-unlock__layout-04 {
    display: flex;
    align-items: center;
    border-radius: 50%;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-primary);
    background: var(--color-primary-light);
    height: 64px;
    width: 64px;
}
.website-jobs-unlock__layout-05 {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    font-size: 20px;
}
.website-jobs-unlock__layout-06 {
    font-size: 13px;
    color: var(--color-text-muted);
}
.website-jobs-unlock__layout-07 {
    margin-bottom: 24px;
}
.website-jobs-unlock__layout-08 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    display: block;
    margin-bottom: 8px;
}
.website-jobs-unlock__layout-09 {
    position: relative;
}
.website-jobs-unlock__website-jobs-unlock-input-style {
    font-size: 13px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    outline: none;
    width: 100%;
    padding: 12px 40px 12px 16px;
    transition: border-color 0.2s;
}
.website-jobs-unlock__layout-10 {
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    justify-content: center;
    color: var(--color-text-muted);
    padding: 4px;
    background: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
}
.website-jobs-unlock__layout-11 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-error);
    margin-top: 8px;
}
.website-jobs-unlock__layout-12 {
    margin-bottom: 24px;
    text-align: left;
}
.website-jobs-unlock__layout-13 {
    font-size: 13px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--color-text-secondary);
    gap: 10px;
    font-weight: 400;
}
.website-jobs-unlock__layout-14 {
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--color-primary);
    width: 18px;
    height: 18px;
}
.website-jobs-unlock__website-jobs-unlock-submit-style {
    color: #fff;
    font-size: 13px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    width: 100%;
    background: var(--color-primary);
    padding: 14px;
    transition:
        transform 0.2s,
        background 0.2s;
}
.website-jobs-unlock__layout-15 {
    font-size: 13px;
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
    text-align: center;
    margin: 24px 0;
}
.website-jobs-unlock__layout-16 {
    border: none;
    flex: 1;
    border-top: 1px solid var(--color-border);
}
.website-jobs-unlock__layout-17 {
    padding: 0 10px;
}
.website-jobs-unlock__layout-18 {
    font-size: 13px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    width: 100%;
    background: #fff;
    padding: 14px;
    transition: all 0.2s;
}
.website-jobs-unlock__layout-19 {
    width: 20px;
    height: 20px;
}
.website-jobs-unlock__layout-20 {
    text-align: center;
    padding-top: 24px;
    margin-top: 32px;
    border-top: 1px dashed var(--color-border);
}
.website-jobs-unlock__layout-21 {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    color: var(--color-text-muted);
}
/* === SEMANTIC COMPONENT STYLES: END === */
/* ============================================
   Unified application UI
   ============================================ */
.main-content table {
    font-size: 13px;
}
.main-content table th, .main-content table td {
    vertical-align: middle;
    white-space: nowrap;
}
.main-content :is(.table-responsive, .table-container, .table-wrapper, .table-scroll-wrapper, .table-scroll-container, .list-table-container, .website-records-table-container, .publishing-table-scroll, .tricks-table-scroll, .leave-table-wrap, .holiday-table-wrap, .roles-table-wrap, .members-table-wrap, .task-configuration-table-wrap, .app-horizontal-scroll, .departments-table-scroll, .line-member-table-wrap, .trash-management-table-wrap, .card:has(> table.app-standard-table)) {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.main-content :is(.table-responsive, .table-container, .table-wrapper, .table-scroll-container, .list-table-container, .publishing-table-scroll, .tricks-table-scroll, .leave-table-wrap, .holiday-table-wrap, .roles-table-wrap, .members-table-wrap, .task-configuration-table-wrap, .app-horizontal-scroll, .departments-table-scroll, .line-member-table-wrap, .trash-management-table-wrap, .card):has(> table) {
    box-sizing: border-box;
    padding-inline: 10px;
}
/* Match the mobile table-card inset at every size: the scrolling surface,
   including its scrollbar, sits inside the outer card instead of touching it. */
.main-content :is(.list-group-content-box.ungrouped, .publishing-table-card, .tricks-table-card, .departments-table-card) > :is(.list-table-container, .publishing-table-scroll, .tricks-table-scroll, .departments-table-scroll):has(> table) {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    margin: 0 10px;
    padding-inline: 0;
}
.main-content .list-group-content-box.grouped > .list-table-container:has(> table) {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    margin: 0 10px 10px;
    padding-inline: 0;
}
.main-content :is(.table-responsive, .table-container, .table-wrapper, .table-scroll-container, .list-table-container, .publishing-table-scroll, .tricks-table-scroll, .leave-table-wrap, .holiday-table-wrap, .roles-table-wrap, .members-table-wrap, .task-configuration-table-wrap, .app-horizontal-scroll, .departments-table-scroll, .line-member-table-wrap, .trash-management-table-wrap, .card):has(> table)::-webkit-scrollbar {
    height: 8px;
}
.main-content :is(.table-responsive, .table-container, .table-wrapper, .table-scroll-container, .list-table-container, .publishing-table-scroll, .tricks-table-scroll, .leave-table-wrap, .holiday-table-wrap, .roles-table-wrap, .members-table-wrap, .task-configuration-table-wrap, .app-horizontal-scroll, .departments-table-scroll, .line-member-table-wrap, .trash-management-table-wrap, .card):has(> table)::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: #cbd5e1;
    background-clip: padding-box;
}
.main-content table :is(a, span, p) {
    max-width: 320px;
}
.main-content table :is(.actions, .action-buttons, .table-actions, .cw-actions) {
    white-space: nowrap;
}
.sidebar-notification-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
    text-decoration: none;
    transition: background-color 0.2s;
}
.notification-menu,
.writer-notification-menu {
    position: relative;
}
.notification-menu__unread-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--color-primary);
}
.notification-dropdown {
    position: absolute;
    z-index: 9999;
    top: 100%;
    right: 0;
    width: 360px;
    margin-top: 12px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.notification-dropdown__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-base);
}
.notification-dropdown__title {
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
}
.notification-dropdown__read-all-form {
    margin: 0;
}
.notification-read-all {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.notification-read-all:hover {
    color: var(--color-primary);
}
.notification-dropdown__list {
    max-height: 360px;
    padding: 0;
    overflow-y: auto;
}
.sidebar-notification-item__icon {
    display: flex;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.sidebar-notification-item__content {
    min-width: 0;
    flex: 1;
}
.sidebar-notification-item__time {
    color: var(--color-text-muted);
    font-size: 11px;
    line-height: 1.4;
}
.notification-dropdown__empty {
    padding: 32px 16px;
    color: var(--color-text-muted);
    font-size: 13px;
    text-align: center;
}
.sidebar-notification-item.is-unread {
    background: rgba(79, 70, 229, 0.05);
}
.sidebar-notification-item:hover {
    background: var(--color-bg-base);
}
.notification-toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
}
.notification-toast-container {
    position: fixed;
    z-index: 999999;
    right: 32px;
    bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.toast-premium {
    position: relative;
    z-index: 10000;
    display: flex;
    width: min(340px, calc(100vw - 32px));
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    animation: toastSlideIn 0.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.toast-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.toast-premium.hide {
    animation: toastSlideOut 0.4s forwards;
}
.pulse-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--color-primary);
    animation: dotPulse 2s infinite;
}
@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes toastSlideOut {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}
@keyframes dotPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    70%, 100% {
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    }
}
.notification-toast__content {
    min-width: 0;
    flex: 1;
}
.notification-toast__title {
    margin-bottom: 2px;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
}
.notification-toast__message {
    color: var(--color-text-secondary);
    font-size: 13px;
    line-height: 1.4;
}
.notification-toast-close {
    display: flex;
    width: 24px;
    height: 24px;
    margin-top: -4px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-muted);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.notification-dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 10px 14px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-soft);
}
.notification-dropdown-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s ease;
}
.notification-dropdown-footer__link:hover {
    color: var(--color-primary);
}
.notification-dropdown-footer__link--all {
    margin-left: auto;
}
.sidebar-notification-title {
    margin-bottom: 4px;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}
.sidebar-notification-title.is-unread {
    font-weight: 600;
}
.notification-list-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
    background: #fff;
    text-decoration: none;
    transition: background-color 0.2s;
}
.notification-list-item.is-unread {
    background: #eff6ff;
}
.notification-list-item:hover {
    background: var(--color-bg-base);
}
.notification-list-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--color-bg-elevated);
    color: var(--color-text-muted);
}
.notification-list-icon.is-unread {
    background: #dbeafe;
    color: var(--color-info);
}
/* Notifications Page */
.notifications-page__header {
    gap: 16px;
}
.notifications-page__breadcrumb {
    margin-bottom: 14px;
}
.notifications-page__breadcrumb a {
    color: var(--color-text-secondary);
}
.notifications-page__heading-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
}
.notifications-page__heading h1 {
    color: var(--color-text-primary);
}
.notifications-page__heading p {
    margin: 4px 0 0;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}
.notifications-page__action-form {
    margin: 0;
}
.notifications-page__mark-read-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-base);
    color: var(--color-text-primary);
    font: 600 13px var(--font-body);
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.notifications-page__mark-read-button:hover {
    border-color: color-mix(in srgb, var(--color-primary) 35%, transparent);
    color: var(--color-primary);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.notifications-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.notifications-summary-card {
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}
.notifications-summary-card__icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}
.notifications-summary-card__icon--total {
    background: rgba(59, 130, 246, 0.1);
}
.notifications-summary-card__icon--unread {
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
}
.notifications-summary-card__icon--page {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}
.notifications-summary-card strong {
    color: var(--color-text-primary);
    line-height: 1.25;
}
.notifications-list-card {
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}
.notifications-list-card__header {
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.notifications-list-card__header h2 {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}
.notifications-list-card__header p {
    margin: 4px 0 0;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
}
.notifications-list-card__page-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 90px;
    background: var(--color-bg-elevated);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.notifications-list__item {
    grid-template-columns: 40px minmax(0, 1fr) 28px;
    gap: 14px;
    padding: 14px 20px;
    background: var(--color-bg-base);
    color: inherit;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}
.notifications-list__item.is-unread {
    background: linear-gradient(90deg, color-mix(in srgb, var(--color-primary) 8%, transparent) 0%, #fff 48%);
}
.notifications-list__item:hover {
    background: var(--color-bg-subtle);
}
.notifications-list__item.is-disabled {
    cursor: default;
}
.notifications-list__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--color-bg-elevated);
    color: var(--color-text-muted);
    font-size: 15px;
}
.notifications-list__icon.is-unread {
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
}
.notifications-list__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}
.notifications-list__topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
}
.notifications-list__title {
    color: var(--color-text-primary);
    font-weight: 600;
    line-height: 1.5;
}
.notifications-list__time {
    gap: 5px;
    color: var(--color-text-secondary);
}
.notifications-list__body {
    display: -webkit-box;
    overflow: hidden;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.notifications-list__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.notifications-list__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 90px;
    background: var(--color-bg-elevated);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
}
.notifications-list__meta span + span {
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
    color: var(--color-primary);
    font-weight: 600;
}
.notifications-list__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 13px;
}
.notifications-empty-state {
    padding: 64px 24px;
}
.notifications-empty-state__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-elevated);
    color: var(--color-text-muted);
}
.notifications-empty-state strong {
    color: var(--color-text-primary);
    font-size: 15px;
}
.notifications-empty-state p {
    color: var(--color-text-secondary);
}
.notifications-page__pagination .pagination-container {
    margin-top: 20px;
}
.btn-favorite-trick {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    background: #f3f4f6;
    color: #4b5563;
    font: 600 13px var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-favorite-trick.active {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.trick-card.is-disabled {
    cursor: default;
    opacity: 0.8;
    border-style: dashed;
}
.member-avatar-placeholder, .member-avatar-image {
    width: 100%;
    height: 100%;
}
.member-avatar-placeholder {
    background: #f1f5f9;
}
.member-avatar-image {
    object-fit: cover;
}
.form-checkbox-lg {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.year-filter-link {
    padding: 6px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg-base);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.year-filter-link:hover {
    background: var(--color-bg-elevated);
    color: var(--color-text-primary);
}
.year-filter-link.is-active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.2);
}
.ui-progress {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 3px;
    appearance: none;
}
.ui-progress::-webkit-progress-bar {
    background: transparent;
}
.ui-progress.is-info::-webkit-progress-value {
    background: var(--color-info);
}
.ui-progress.is-danger::-webkit-progress-value {
    background: var(--color-error);
}
.ui-progress.is-info::-moz-progress-bar {
    background: var(--color-info);
}
.ui-progress.is-danger::-moz-progress-bar {
    background: var(--color-error);
}
.makeup-deadline {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.makeup-deadline.is-overdue {
    color: var(--color-error);
}
.cw-progress-col-bg {
    overflow: hidden;
}
progress.cw-progress-col-fill {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
    appearance: none;
}
progress.cw-progress-col-fill::-webkit-progress-bar {
    background: transparent;
}
progress.cw-progress-col-fill::-webkit-progress-value {
    background: var(--progress-scale-color, var(--color-text-muted-2));
}
progress.cw-progress-col-fill::-moz-progress-bar {
    background: var(--progress-scale-color, var(--color-text-muted-2));
}
.kanban-assignees .kanban-avatar-wrap:nth-child(1) {
    z-index: 10;
}
.kanban-assignees .kanban-avatar-wrap:nth-child(2) {
    z-index: 9;
}
.kanban-assignees .kanban-avatar-wrap:nth-child(3) {
    z-index: 8;
}
.kanban-assignees .kanban-avatar-wrap:nth-child(4) {
    z-index: 7;
}
.kanban-assignees .kanban-avatar-wrap:nth-child(5) {
    z-index: 6;
}
.kanban-assignees .kanban-avatar-wrap:nth-child(6) {
    z-index: 5;
}
.kanban-assignees .kanban-avatar-wrap:nth-child(7) {
    z-index: 4;
}
.kanban-assignees .kanban-avatar-wrap:nth-child(8) {
    z-index: 3;
}
.kanban-assignees .kanban-avatar-wrap:nth-child(9) {
    z-index: 2;
}
.kanban-assignees .kanban-avatar-wrap:nth-child(n + 10) {
    z-index: 1;
}
.app-table-row {
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.2s;
}
.app-table-row:hover {
    background: var(--color-bg-surface-soft);
}
.app-table-row.is-expired {
    background: var(--color-primary-subtle);
    opacity: 0.8;
}
.app-table-row.is-expired:hover {
    background: var(--color-primary-subtle);
}
.table-report-date {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
}
.table-report-date.is-set {
    color: var(--color-primary);
}
.schedule-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--color-border);
}
.schedule-status-dot.is-done {
    background: var(--color-success);
}
.seo-status-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 6px 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.seo-status-summary:hover {
    opacity: 0.8;
}
.seo-status-summary-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 12px;
    color: #fff;
}
.seo-status-draft {
    background: #f3f4f6;
    color: #4b5563;
}
.seo-status-review_b, .seo-status-writer_review {
    background: #fef3c7;
    color: #d97706;
}
.seo-status-writer_c {
    background: #e0e7ff;
    color: #4338ca;
}
.seo-status-coordinated_c, .seo-status-writing {
    background: #ede9fe;
    color: #7c3aed;
}
.seo-status-posting_a {
    background: #dbeafe;
    color: #2563eb;
}
.seo-status-final_review_c, .seo-status-writer_revision {
    background: #ffedd5;
    color: #ea580c;
}
.seo-status-completed {
    background: #d1fae5;
    color: #059669;
}
.seo-status-draft .seo-status-summary-count {
    background: #4b5563;
}
.seo-status-review_b .seo-status-summary-count, .seo-status-writer_review .seo-status-summary-count {
    background: #d97706;
}
.seo-status-writer_c .seo-status-summary-count {
    background: #4338ca;
}
.seo-status-coordinated_c .seo-status-summary-count, .seo-status-writing .seo-status-summary-count {
    background: #7c3aed;
}
.seo-status-posting_a .seo-status-summary-count {
    background: #2563eb;
}
.seo-status-final_review_c .seo-status-summary-count, .seo-status-writer_revision .seo-status-summary-count {
    background: #ea580c;
}
.seo-status-completed .seo-status-summary-count {
    background: #059669;
}
.publishing-website-type, .publishing-status, .publishing-manage-button {
    font-size: 13px;
    font-weight: 600;
}
.publishing-website-type.is-slatan {
    color: var(--color-primary);
}
.publishing-website-type.is-teeneeweb {
    color: var(--color-info);
}
.publishing-status {
    padding: 2px 8px;
    border-radius: 6px;
}
.publishing-status-writer {
    background: #fef3c7;
    color: var(--color-warning);
}
.publishing-status-reviewer {
    background: #dbeafe;
    color: var(--color-info);
}
.publishing-status-publisher {
    background: #ede9fe;
    color: #8b5cf6;
}
.publishing-status-completed {
    background: #d1fae5;
    color: var(--color-success);
}
.publishing-manage-button {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border: 0;
    border-radius: 12px;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s;
}
.publishing-manage-button.is-complete {
    background: var(--color-success);
}
.publishing-manage-button:hover {
    opacity: 0.9;
}
.app-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    background: var(--color-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.app-toast.is-error {
    background: var(--color-error);
}
.app-toast.is-success {
    background: var(--color-success);
}
.detail-check-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--color-text-muted-2);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}
.detail-check-item.is-done {
    color: #166534;
}
.detail-check-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    border-radius: 5px;
    background: #f1f5f9;
    color: #cbd5e1;
}
.detail-check-item.is-done .detail-check-icon {
    background: #22c55e;
    color: #fff;
}
.project-type-other {
    margin-bottom: 24px;
}
.project-type-other.is-compact {
    margin-bottom: 16px;
}
.setup-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--color-bg-elevated);
    color: var(--color-text-muted);
}
.setup-status-icon.is-done {
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-success);
}
.setup-status-text {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
}
.setup-status-text.is-done {
    color: var(--color-success);
}
.schedule-completion {
    display: flex;
    margin-top: 4px;
    font-weight: 600;
}
.schedule-completion.is-complete {
    color: var(--color-success);
}
.schedule-progress {
    height: 10px;
    overflow: hidden;
    background: var(--color-bg-surface-soft);
}
.schedule-progress::-webkit-progress-bar {
    background: var(--color-bg-surface-soft);
}
.schedule-task {
    justify-content: space-between;
    margin-bottom: 5px;
    padding: 16px 20px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: all 0.2s;
}
.schedule-task:not(.is-done):hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.schedule-task.is-done {
    border-color: var(--color-success);
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.05);
}
.schedule-task-check {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2.5px solid #cbd5e1;
    border-radius: 8px;
    transition: all 0.2s;
}
.schedule-task-check.is-done {
    border-color: var(--color-success);
    background: var(--color-success);
}
.schedule-task-checkmark {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s;
}
.schedule-task-check.is-done .schedule-task-checkmark {
    opacity: 1;
    transform: scale(1);
}
.schedule-task-name {
    color: var(--color-text-primary);
    font-size: 13px;
    transition: color 0.2s;
}
.duration-date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.seo-metric {
    color: var(--color-text-muted);
}
.seo-metric.is-warning {
    color: var(--color-warning);
}
.seo-metric.is-complete {
    color: var(--color-success);
}
.seo-metric.is-reviewed {
    color: #4632da;
}
/* Review completion has its own semantic color; do not let the global
   percentage scale turn every completed sidebar metric green. */
.seo-round-metrics .seo-metric.is-reviewed {
    color: #4632da !important;
}
.rk-row-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ui-dynamic-color {
    --ui-color: var(--color-primary);
}
.task-color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--ui-color);
}
.task-color-dot--sm {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.task-color-dot--lg {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}
.project-status-badge {
    padding: 4px 12px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-bg-base);
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}
.project-status-badge.is-active {
    border-color: rgba(34, 197, 94, 0.2);
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}
.task-status-icon, .task-notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--ui-color) 10%, transparent);
    color: var(--ui-color);
}
.task-status-icon {
    width: 36px;
    height: 36px;
    border: 1px solid color-mix(in srgb, var(--ui-color) 16%, transparent);
    border-radius: 10px;
    font-size: 19px;
}
.task-notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 17px;
}
.task-color-code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 100px;
    background: var(--ui-color);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.notification-member-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.notification-member-option:hover {
    background: var(--color-bg-base);
}
.notification-member-option.is-checked {
    border-color: var(--color-primary-light);
    background: color-mix(in srgb, var(--color-primary-light) 35%, transparent);
}
.member-task-count {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
}
.member-task-count.is-overloaded {
    color: var(--color-error);
}
.member-workload, .task-progress, progress.list-progress-bar-fill {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 3px;
    appearance: none;
}
.member-workload::-webkit-progress-bar, .task-progress::-webkit-progress-bar, progress.list-progress-bar-fill::-webkit-progress-bar {
    background: transparent;
}
.member-workload.is-low::-webkit-progress-value {
    background: var(--color-success);
}
.member-workload.is-low::-moz-progress-bar {
    background: var(--color-success);
}
.member-workload.is-medium::-webkit-progress-value {
    background: var(--color-warning);
}
.member-workload.is-medium::-moz-progress-bar {
    background: var(--color-warning);
}
.member-workload.is-high::-webkit-progress-value {
    background: var(--color-error);
}
.member-workload.is-high::-moz-progress-bar {
    background: var(--color-error);
}
.task-progress-danger::-webkit-progress-value {
    background: var(--color-primary);
}
.task-progress-danger::-moz-progress-bar {
    background: var(--color-primary);
}
.task-progress-orange::-webkit-progress-value {
    background: #f97316;
}
.task-progress-orange::-moz-progress-bar {
    background: #f97316;
}
.task-progress-warning::-webkit-progress-value {
    background: #eab308;
}
.task-progress-warning::-moz-progress-bar {
    background: #eab308;
}
.task-progress-success::-webkit-progress-value {
    background: #22c55e;
}
.task-progress-success::-moz-progress-bar {
    background: #22c55e;
}
progress.list-progress-bar-fill::-webkit-progress-value {
    background: var(--progress-scale-color, var(--color-text-muted-2));
}
progress.list-progress-bar-fill::-moz-progress-bar {
    background: var(--progress-scale-color, var(--color-text-muted-2));
}
progress.list-progress-bar-fill.is-complete::-webkit-progress-value {
    background: var(--color-success);
}
progress.list-progress-bar-fill.is-complete::-moz-progress-bar {
    background: var(--color-success);
}
progress.list-progress-bar-fill.progress-level-empty::-webkit-progress-value {
    background: var(--color-text-muted-2);
}
progress.list-progress-bar-fill.progress-level-empty::-moz-progress-bar {
    background: var(--color-text-muted-2);
}
progress.list-progress-bar-fill.progress-level-starting::-webkit-progress-value {
    background: var(--color-error);
}
progress.list-progress-bar-fill.progress-level-starting::-moz-progress-bar {
    background: var(--color-error);
}
progress.list-progress-bar-fill.progress-level-early::-webkit-progress-value {
    background: #f97316;
}
progress.list-progress-bar-fill.progress-level-early::-moz-progress-bar {
    background: #f97316;
}
progress.list-progress-bar-fill.progress-level-middle::-webkit-progress-value {
    background: #eab308;
}
progress.list-progress-bar-fill.progress-level-middle::-moz-progress-bar {
    background: #eab308;
}
progress.list-progress-bar-fill.progress-level-advanced::-webkit-progress-value {
    background: #84cc16;
}
progress.list-progress-bar-fill.progress-level-advanced::-moz-progress-bar {
    background: #84cc16;
}
progress.list-progress-bar-fill.progress-level-near-complete::-webkit-progress-value {
    background: #14b8a6;
}
progress.list-progress-bar-fill.progress-level-near-complete::-moz-progress-bar {
    background: #14b8a6;
}
progress.list-progress-bar-fill.progress-level-complete::-webkit-progress-value {
    background: var(--color-success);
}
progress.list-progress-bar-fill.progress-level-complete::-moz-progress-bar {
    background: var(--color-success);
}
.task-order-toast, .system-compact-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 100000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: min(300px, calc(100vw - 36px));
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}
.task-order-toast.is-visible, .system-compact-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.task-order-toast i, .system-compact-toast i {
    flex: 0 0 auto;
    font-size: 16px;
}
.task-order-toast.is-success i, .system-compact-toast.is-success i {
    color: var(--color-success);
}
.task-order-toast.is-error i, .system-compact-toast.is-error i {
    color: var(--color-error);
}
.task-due-alert {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 90px;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.task-due-alert.is-danger {
    background: var(--color-error-light);
    color: var(--color-primary-hover);
}
.task-due-alert.is-warning {
    background: #fffbeb;
    color: #d97706;
}
.task-editor-wrapper {
    overflow: visible;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: all 0.2s;
}
.task-editor-wrapper.is-done {
    border-color: var(--color-success);
}
.task-comment-wrapper {
    flex: 1;
}
.kanban-status-dot, .offcanvas-progress-bar {
    background: var(--ui-color);
}
.task-project-label {
    padding-right: 24px;
    color: var(--ui-color);
}
.kanban-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.kanban-card-meta.has-details {
    padding-top: 6px;
    border-top: 1px dashed var(--color-border);
}
.task-due-date {
    border-radius: 4px;
    color: var(--color-text-muted);
}
.task-due-date.has-background {
    margin-left: -6px;
    padding: 2px 6px;
}
.task-due-date.is-danger {
    background: var(--color-error-light);
    color: var(--color-primary-hover);
}
.task-due-date.is-warning {
    background: #fffbeb;
    color: #d97706;
}
.task-list-due {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.task-list-due.is-danger {
    color: var(--color-primary-hover);
}
.task-list-due.is-warning {
    color: #d97706;
}
.priority-low {
    background: rgba(59, 130, 246, 0.08);
    color: var(--color-info);
}
.priority-medium {
    background: rgba(245, 158, 11, 0.08);
    color: var(--color-warning);
}
.priority-high {
    background: rgba(var(--color-primary-rgb), 0.08);
    color: var(--color-primary);
}
.project-badge-tag {
    --project-color: var(--ui-color);
    --project-bg: color-mix(in srgb, var(--ui-color) 9%, transparent);
}
.subtask-title-input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
}
.subtask-title-input.is-complete {
    color: var(--color-text-muted);
    text-decoration: line-through;
}
/* Chat dynamic content */
.chat-item-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 4px;
    margin-left: 6px;
}
.pin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    font: inherit;
}
.pin-btn.is-active {
    background: var(--color-primary-border-strong);
    color: var(--color-primary-hover);
    opacity: 1;
}
.chat-member-meta {
    display: flex;
    flex: 1;
    flex-direction: column;
}
.chat-member-name {
    color: #111827;
    font-size: 13px;
    font-weight: 600;
}
.chat-member-role {
    align-self: flex-start;
    margin-top: 2px;
    padding: 2px 8px;
    border-radius: 90px;
    font-size: 10px;
    font-weight: 500;
}
.chat-member-role.is-owner {
    background: var(--color-primary-border-strong);
    color: var(--color-primary-hover);
}
.chat-member-role.is-admin {
    background: #bfdbfe;
    color: #2563eb;
}
.chat-deleted-message, .chat-message-cancelled {
    color: var(--color-primary);
    font-size: 13px;
    font-style: italic;
}
.chat-message-cancelled {
    color: #9ca3af;
}
.chat-deleted-icon {
    margin-right: 4px;
    vertical-align: -2px;
}
.chat-read-avatar {
    width: 14px;
    height: 14px;
    margin-left: 2px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px #fff;
}
.chat-loading-state, .chat-error-state, .chat-member-loading, .chat-member-empty {
    padding: 20px;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}
.chat-loading-state {
    padding: 40px;
}
.chat-error-state {
    color: var(--color-error);
}
.chat-member-loading, .chat-member-empty {
    padding: 16px;
}
.chat-spinner {
    animation: spin 1s linear infinite;
}
.chat-empty-icon {
    margin-bottom: 12px;
    opacity: 0.5;
}
.chat-media-empty {
    padding: 20px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}
.chat-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.chat-media-item {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    aspect-ratio: 1;
    cursor: pointer;
}
.chat-media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}
.chat-media-image:hover {
    transform: scale(1.05);
}
.chat-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #111827;
    text-decoration: none;
}
.chat-file-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--color-primary);
    color: #fff;
}
.chat-file-meta {
    flex: 1;
    overflow: hidden;
}
.chat-file-name {
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-file-hint {
    margin-top: 2px;
    color: #9ca3af;
    font-size: 13px;
}
.chat-date-divider {
    margin: 24px 0 16px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}
.chat-system-history-message {
    width: 100%;
    margin: 8px 0 12px;
    padding: 0 32px;
    align-items: center;
    justify-content: flex-end;
}
.chat-system-history-message__text {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
}
/* Keep every rendered @mention visually consistent across comments and chats. */
body .mention, body .chat-mention {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--color-primary) !important;
    font-weight: 700 !important;
    line-height: inherit !important;
    text-decoration: none !important;
    transform: none !important;
}
body .mention .ql-mention-denotation-char, body .chat-mention .ql-mention-denotation-char {
    margin: 0 !important;
    color: inherit !important;
    font-weight: inherit !important;
    opacity: 1 !important;
}
body .chat-mention.is-mine, body .message-bubble-wrapper.me .mention, body .mini-chat-message.is-mine .mention {
    color: var(--color-white) !important;
}
body .mention.mention-profile-trigger, body .chat-mention.mention-profile-trigger {
    cursor: pointer !important;
}
body .mention.chat-mention--everyone, body .chat-mention.chat-mention--everyone {
    cursor: default !important;
}
.mention-profile-trigger, .comment-body-content .mention, .message-bubble .mention {
    cursor: pointer !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px !important;
    transition:
        background-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}
.mention-profile-trigger:hover, .comment-body-content .mention:hover, .message-bubble .mention:hover, .mention-profile-trigger:focus-visible, .comment-body-content .mention:focus-visible, .message-bubble .mention:focus-visible {
    box-shadow: none;
    outline: none;
}
.mention-profile-trigger:active, .comment-body-content .mention:active, .message-bubble .mention:active {
    transform: none;
}
.mention-profile-card {
    position: fixed;
    z-index: 100050;
    width: min(354px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    background: #fff;
    color: #111827;
    box-shadow:
        0 24px 64px rgba(15, 23, 42, 0.2),
        0 4px 14px rgba(15, 23, 42, 0.08);
    font-family: inherit;
    opacity: 0;
    transform: translateY(4px) scale(0.985);
    transform-origin: center top;
    transition:
        opacity 150ms ease,
        transform 150ms ease;
}
.mention-profile-card[hidden] {
    display: none !important;
}
.mention-profile-card.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.mention-profile-card__close {
    position: absolute;
    z-index: 1;
    top: 10px;
    right: 10px;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.92);
    color: var(--color-text-muted);
    cursor: pointer;
}
.mention-profile-card__close:hover, .mention-profile-card__close:focus-visible {
    background: #eef2f7;
    color: #111827;
    outline: none;
}
.mention-profile-card__identity {
    display: flex;
    gap: 14px;
    min-height: 128px;
    padding: 24px 46px 20px 22px;
    align-items: center;
    background: radial-gradient(circle at 90% -20%, rgba(99, 102, 241, 0.18), transparent 52%), linear-gradient(145deg, #fff 28%, #f8fafc 100%);
}
.mention-profile-card__avatar-wrap {
    position: relative;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
}
.mention-profile-card__avatar, .mention-profile-card__avatar-fallback {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary, var(--color-primary)), #6366f1);
    color: #fff;
    box-shadow: 0 7px 20px rgba(15, 23, 42, 0.16);
    font-size: 25px;
    font-weight: 700;
    object-fit: cover;
}
.mention-profile-card__avatar-fallback.is-hidden {
    display: none;
}
.mention-profile-card__presence {
    position: absolute;
    right: 2px;
    bottom: 3px;
    width: 15px;
    height: 15px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--color-text-muted-2);
}
.mention-profile-card__presence.is-online {
    background: var(--color-success);
}
.mention-profile-card__identity-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}
.mention-profile-card__name {
    max-width: 100%;
    overflow: hidden;
    color: #111827;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mention-profile-card__full-name, .mention-profile-card__meta {
    max-width: 100%;
    margin-top: 2px;
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mention-profile-card__status {
    display: inline-flex;
    margin-top: 7px;
    align-items: center;
    gap: 5px;
    color: var(--color-text-muted-2);
    font-size: 12px;
    font-weight: 600;
}
.mention-profile-card__status::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}
.mention-profile-card__status.is-online {
    color: var(--color-success);
}
.mention-profile-card__actions {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 8px;
    padding: 14px;
    border-top: 1px solid #eef2f7;
}
.mention-profile-card__action {
    display: flex;
    min-width: 0;
    height: 58px;
    padding: 7px 8px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border: 0;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 150ms ease,
        color 150ms ease,
        transform 150ms ease;
}
.mention-profile-card__action i {
    font-size: 16px;
}
.mention-profile-card__action:hover, .mention-profile-card__action:focus-visible {
    background: color-mix(in srgb, var(--color-primary, var(--color-primary)) 9%, white);
    color: var(--color-primary, var(--color-primary));
    outline: none;
}
.mention-profile-card__action:disabled {
    cursor: wait;
    opacity: 0.58;
    transform: none;
}
.mention-profile-card__action.is-loading i {
    animation: mention-profile-pulse 800ms ease-in-out infinite alternate;
}
.mention-profile-card__error {
    margin: -4px 14px 14px;
    padding: 8px 10px;
    border-radius: 9px;
    background: var(--color-error-light);
    color: var(--color-primary-hover);
    font-size: 12px;
    text-align: center;
}
.mention-profile-card__loading, .mention-profile-card__empty {
    display: flex;
    min-height: 150px;
    padding: 30px 24px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 13px;
    text-align: center;
}
.mention-profile-card__empty i {
    color: var(--color-text-muted-2);
    font-size: 28px;
}
.mention-profile-card__empty strong {
    color: #334155;
    font-size: 15px;
}
.mention-profile-card__spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--color-primary, var(--color-primary));
    border-radius: 50%;
    animation: mention-profile-spin 700ms linear infinite;
}
@keyframes mention-profile-spin {
    to {
        transform: rotate(360deg);
    }
}
@keyframes mention-profile-pulse {
    to {
        opacity: 0.35;
    }
}
.chat-message-caption {
    margin-top: 8px;
}
.chat-audio-wrap {
    display: flex;
    align-items: center;
    margin: 0 !important;
}
.chat-audio {
    max-width: 250px;
    height: 40px;
    border-radius: 30px;
    outline: 0;
}
.chat-attachment-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: underline;
}
.chat-attachment-gap {
    height: 6px;
}
.chat-file-caption {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.chat-sticker {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 0;
    object-fit: contain;
}
.read-status-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 18px;
}
.read-fallback {
    margin-right: 4px;
    color: #9ca3af;
    font-size: 11px;
}
.chat-reply-preview {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    overflow: hidden;
    margin-bottom: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.04);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: opacity 0.2s;
}
.chat-reply-preview:hover {
    opacity: 0.8;
}
.chat-reply-preview.is-mine {
    background: rgba(255, 255, 255, 0.15);
}
.chat-reply-icon {
    margin-top: 2px;
    color: var(--color-primary);
}
.chat-reply-content {
    flex: 1;
}
.chat-reply-name {
    margin-bottom: 2px;
    color: var(--color-primary);
}
.chat-reply-text {
    color: #4b5563;
}
.chat-reply-preview.is-mine .chat-reply-icon, .chat-reply-preview.is-mine .chat-reply-name {
    color: #fff;
}
.chat-reply-preview.is-mine .chat-reply-text {
    color: rgba(255, 255, 255, 0.85);
}
.chat-forward-label {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    color: #9ca3af;
    font-size: 13px;
    font-style: italic;
    text-align: left;
}
.chat-forward-label.is-mine {
    color: rgba(255, 255, 255, 0.7);
}
.message-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 8px;
    opacity: 0;
    transition: opacity 0.2s;
}
.msg-dropdown-menu {
    position: absolute;
    top: 100%;
    z-index: 50;
    min-width: 140px;
    padding: 6px 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}
.msg-dropdown-menu.is-right {
    right: 0;
}
.msg-dropdown-menu.is-left {
    left: 0;
}
.chat-message-stack {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}
.chat-message-stack.is-mine {
    align-items: flex-end;
}
.chat-message-row {
    display: flex;
    align-items: center;
    flex-direction: row;
}
.chat-message-stack .message-time {
    align-self: flex-start;
}
.chat-message-stack.is-mine .message-time {
    align-self: flex-end;
}
.chat-older-loader {
    padding: 10px;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}
.chat-file-preview {
    position: relative;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    margin-top: 6px;
    margin-right: 6px;
}
.chat-file-preview.is-document {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #e0e7ff;
    color: #4338ca;
}
.chat-file-preview-image {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    object-fit: cover;
}
.chat-file-preview-name {
    overflow: hidden;
    max-width: 90%;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-file-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
    color: #4b5563;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}
.chat-file-add {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-top: 6px;
    margin-right: 6px;
    border-radius: 12px;
    background: #e5e7eb;
    color: #4b5563;
    cursor: pointer;
    transition: background-color 0.2s;
}
.chat-file-add:hover {
    background: #d1d5db;
}
.chat-group-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chat-member-search-avatar {
    width: 36px;
    height: 36px;
    margin-right: 12px;
    box-shadow: none;
}
.chat-member-search-name {
    flex: 1;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
}
.chat-member-select {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: transparent;
}
.chat-member-select.is-selected {
    border-color: var(--color-primary);
    background: var(--color-primary);
}
.chat-member-help {
    margin-top: 4px;
    color: #9ca3af;
    font-size: 13px;
}
.chat-edit-member-main {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-edit-member-avatar {
    width: 36px;
    height: 36px;
    border: 1px solid #f3f4f6;
    border-radius: 50%;
    object-fit: cover;
}
.chat-edit-member-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.chat-edit-member-name {
    color: #1f2937;
    font-size: 13px;
    font-weight: 600;
}
.chat-edit-member-role {
    display: flex;
    align-items: center;
    gap: 6px;
}
.chat-button-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: text-bottom;
}
.member-search-item.is-clickable {
    cursor: pointer;
}
.chat-forward-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.chat-forward-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.chat-forward-name {
    font-size: 13px;
    font-weight: 600;
}
.fallback-logo-text {
    color: var(--color-primary);
    font-size: 20px;
    font-weight: 600;
}
.import-page-btn {
    padding: 4px 10px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
    color: var(--color-text-secondary);
    font: 600 13px var(--font-body);
    cursor: pointer;
}
.import-page-btn.is-active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}
.import-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
h1, h1[class] {
    font-size: 20px;
}
h2, h2[class] {
    font-size: 16px;
}
h3, h3[class] {
    font-size: 14px;
}
h4, h4[class] {
    font-size: 13px;
}
h5, h5[class] {
    font-size: 12px;
}
h6, h6[class] {
    font-size: 11px;
}
/* ================================================================
   Application UI components
   Shared, semantic building blocks for list and detail pages
   ================================================================ */
.app-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.app-page-heading {
    min-width: 0;
}
.app-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: var(--color-text-muted);
    font-size: 13px;
    white-space: nowrap;
}
.app-breadcrumb a:hover {
    color: var(--color-primary);
}
.app-breadcrumb [aria-current="page"] {
    overflow: hidden;
    color: var(--color-text-primary);
    font-weight: 600;
    text-overflow: ellipsis;
}
.app-page-title {
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}
.app-page-description {
    margin-top: 3px;
    color: var(--color-text-secondary);
    font-size: 13px;
}
.app-page-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.app-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}
.app-button svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
}
.app-button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    transform: none;
}
.app-button--primary, .app-button--danger-solid {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 5px 14px color-mix(in srgb, var(--color-primary) 16%, transparent);
}
.app-button--primary:hover:not(:disabled), .app-button--danger-solid:hover:not(:disabled) {
    border-color: var(--color-primary-hover);
    background: var(--color-primary-hover);
    box-shadow: 0 7px 18px color-mix(in srgb, var(--color-primary) 22%, transparent);
}
.app-button--outline {
    border-color: var(--color-line-strong);
    background: #fff;
    color: var(--color-text-secondary);
}
.app-button--outline:hover:not(:disabled) {
    border-color: #bcc9d6;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-primary);
}
.app-button--danger {
    color: var(--color-error);
}
.app-button--danger:hover:not(:disabled) {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.app-button--success {
    color: #059669;
}
.app-button--success:hover:not(:disabled) {
    border-color: #a7f3d0;
    background: #f0fdf9;
    color: #047857;
}
.app-button--success-solid {
    border-color: var(--color-success);
    background: var(--color-success);
    color: #fff;
    box-shadow: 0 5px 14px rgba(16, 185, 129, 0.16);
}
.app-button--success-solid:hover:not(:disabled) {
    border-color: #059669;
    background: #059669;
    box-shadow: 0 7px 18px rgba(16, 185, 129, 0.2);
}
.app-button--soft {
    border-color: var(--color-primary-subtle);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.app-button--danger-soft {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.app-button--danger-soft:hover:not(:disabled) {
    background: var(--color-primary-subtle);
}
.app-button--small {
    min-height: 32px;
    padding: 0 10px;
}
.app-button--full {
    width: 100%;
}
.app-button.is-loading {
    opacity: 0.7;
    cursor: wait;
}
.app-filter-card {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card);
}
.app-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.app-search-field {
    position: relative;
    flex: 1 1 auto;
    min-width: 220px;
}
.app-search-field__icon {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 1;
    color: var(--color-text-muted);
    pointer-events: none;
    transform: translateY(-50%);
}
.app-search-field .app-search-field__input {
    height: var(--filter-control-height);
    min-height: var(--filter-control-height);
    padding: 0 14px 0 42px;
    border-color: var(--color-line-strong);
    border-radius: var(--filter-control-radius);
}
.app-filter-field {
    flex: 0 0 auto;
}
.app-filter-field--status {
    width: 150px;
}
.app-filter-field--assignee {
    width: 190px;
}
.app-filter-field select {
    height: var(--filter-control-height);
    min-height: var(--filter-control-height);
    border-color: var(--color-line-strong);
    border-radius: var(--filter-control-radius);
}
.app-table-card {
    overflow-x: auto;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card);
}
.app-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--color-text-primary);
    font-size: 13px;
    text-align: left;
}
.app-data-table th, .app-data-table td {
    height: 52px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--color-line);
    vertical-align: middle;
    white-space: nowrap;
}
.app-data-table th {
    height: 44px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-secondary);
    font-weight: 600;
}
.app-data-table tbody tr:last-child td {
    border-bottom: 0;
}
.app-data-table tbody tr {
    transition: background-color 0.15s ease;
}
.app-data-table tbody tr:hover {
    background: #fafbfc;
}
.app-data-table tbody tr.is-expired {
    background: var(--color-primary-subtle);
}
/* Shared compact data-table treatment for legacy list pages. */
.app-standard-table {
    width: 100%;
    color: var(--color-text-primary);
    font-size: 13px;
    text-align: left;
}
.app-standard-table th, .app-standard-table td {
    height: 46px;
    padding: 6px 15px;
    vertical-align: middle;
    white-space: nowrap;
}
.app-standard-table th {
    color: var(--color-text-secondary);
    font-weight: 600;
}
.app-standard-table td {
    font-weight: 400;
}
.app-standard-table tbody tr {
    transition: background-color 0.15s ease;
}
.app-standard-table tbody tr:hover {
    background: #fafbfc;
}
.table-checkbox-cell {
    width: 48px;
    padding-right: 8px !important;
    padding-left: 16px !important;
    text-align: center;
}
.table-actions-heading, .table-actions-cell {
    text-align: right;
}
.table-action-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}
.table-action-form {
    display: inline-flex;
    margin: 0;
}
.table-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}
.table-action-button:hover {
}
.table-action-button--view:hover, .table-action-button--edit:hover {
    border-color: #dbe5ef;
    background: #f4f7fa;
    color: #334155;
}
.table-action-button--delete:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.table-muted-value {
    color: var(--color-text-muted);
}
.app-table-empty {
    height: auto !important;
    padding: 56px 24px !important;
    text-align: center;
}
.app-empty-state {
    display: flex;
    align-items: center;
    flex-direction: column;
    color: var(--color-text-muted);
    text-align: center;
}
.app-empty-state__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted-2);
}
.app-empty-state h3 {
    color: var(--color-text-primary);
    font-size: 17px !important;
}
.app-empty-state p {
    margin: 5px 0 16px;
}
.app-pagination-region {
    padding: 0 16px 16px;
}
.app-pagination-region .pagination-container {
    margin-top: 16px;
}
.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid transparent;
    border-radius: 90px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}
.app-badge--neutral {
    border-color: #e2e8f0;
    background: #f1f5f9;
    color: #475569;
}
.app-badge--success {
    border-color: #a7f3d0;
    background: var(--color-success-light);
    color: #047857;
}
.app-badge--danger {
    border-color: var(--color-primary-border-strong);
    background: var(--color-error-light);
    color: var(--color-primary-hover);
}
.app-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.app-modal.is-open {
    display: flex;
}
.app-modal__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(5px);
    cursor: default;
}
.app-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
    animation: app-modal-enter 0.2s ease-out;
}
.app-modal__dialog--compact {
    width: min(380px, 100%);
}
@keyframes app-modal-enter {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.app-modal__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 13px;
    border-radius: 13px;
}
.app-modal__icon--success {
    background: var(--color-success-light);
    color: #059669;
}
.app-modal__icon--danger {
    background: var(--color-error-light);
    color: var(--color-primary-hover);
}
.app-modal__title {
    color: var(--color-text-primary);
    font-size: 19px !important;
    text-align: center;
}
.app-modal__description {
    margin-top: 6px;
    color: var(--color-text-muted);
    text-align: center;
}
.app-modal__description strong {
    color: var(--color-primary);
}
.app-modal__body {
    margin-top: 20px;
}
.app-modal__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 20px;
}
.app-form-heading {
    margin-bottom: 10px;
    color: var(--color-text-secondary);
    font-weight: 600;
}
.app-form-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}
.app-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.app-form-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.app-form-field input, .app-form-field select, .app-form-field textarea {
    font-weight: 400;
}
.export-latest-summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid #d1fae5;
    border-radius: 10px;
    background: #f0fdf9;
    color: #047857;
    font-size: 13px;
    font-weight: 400;
}
.export-latest-summary svg {
    flex: 0 0 auto;
}
.export-range-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
}
.export-range-fields.is-hidden {
    display: none;
}
body.modal-open {
    overflow: hidden;
}
.is-hidden {
    display: none;
}
/* Maintenance form components: semantic controls without utility-class collisions. */
.maintenance-form-page, .maintenance-detail-page, .maintenance-trash-page {
    font-size: 13px;
    font-weight: 400;
}
.maintenance-detail-page {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}
.maintenance-form-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: 0;
    color: var(--color-text-primary);
}
.maintenance-form-page *, .maintenance-form-page *::before, .maintenance-form-page *::after {
    box-sizing: border-box;
    font-weight: 400 !important;
}
.maintenance-form-page h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600 !important;
    line-height: 1.35;
}
.maintenance-form-page .maintenance-form-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.4;
}
.maintenance-form-page .maintenance-form-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}
.maintenance-form-page .maintenance-form-breadcrumb a:hover, .maintenance-form-page .maintenance-form-breadcrumb span {
    color: var(--color-text-primary);
}
.maintenance-form-page .maintenance-form-card {
    width: 100%;
    padding: 30px;
    border: 1px solid #e5eaf0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.04);
}
.maintenance-form-page .maintenance-form-header {
    margin: 0 0 18px;
    padding: 0 0 16px;
    border-bottom: 1px solid #eef1f5;
}
.maintenance-form-page .maintenance-form-header h1 {
    color: var(--color-text-primary);
}
.maintenance-form-page .maintenance-form-header p {
    margin: 3px 0 0;
    color: var(--color-text-muted);
}
.maintenance-form-page .maintenance-form-main-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    margin: 0 0 18px;
}
.maintenance-form-page .maintenance-field {
    min-width: 0;
}
.maintenance-form-page .maintenance-field--full {
    grid-column: 1 / -1;
}
.maintenance-form-page .maintenance-field-label {
    display: block;
    margin: 0 0 6px;
    color: #334155;
    font-size: 13px;
    line-height: 1.4;
}
.maintenance-form-page .maintenance-required {
    color: var(--color-primary);
}
.maintenance-form-page .maintenance-control, .maintenance-form-page select.maintenance-select {
    display: block;
    width: 100%;
    height: 42px;
    min-height: 42px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #172033;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}
.maintenance-form-page .maintenance-control::placeholder {
    color: var(--color-text-muted-2);
    opacity: 1;
}
.maintenance-form-page .maintenance-control:hover, .maintenance-form-page select.maintenance-select:hover {
    border-color: #c5d0dc;
}
.maintenance-form-page .maintenance-control:focus, .maintenance-form-page select.maintenance-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.08);
}
.maintenance-form-page textarea.maintenance-control {
    height: 82px;
    min-height: 82px;
    padding: 10px 12px;
    resize: vertical;
}
.maintenance-form-page .maintenance-control.is-readonly, .maintenance-form-page .maintenance-control:read-only:not([type="text"]):not(textarea) {
    background: #f8fafc;
    color: var(--color-text-muted);
}
/* Tom Select copies the select class to its wrapper. Keep the wrapper neutral. */
.maintenance-form-page .ts-wrapper.maintenance-select {
    display: block;
    width: 100%;
    height: 42px;
    min-height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
}
.maintenance-form-page .ts-wrapper.maintenance-select.single .ts-control {
    width: 100%;
    height: 42px;
    min-height: 42px;
    padding: 0 38px 0 12px;
    border: 1px solid #dbe3ec !important;
    border-radius: 10px;
    background: #fff !important;
    color: #172033;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02) !important;
}
.maintenance-form-page .ts-wrapper.maintenance-select.single .ts-control:hover {
    border-color: #c5d0dc !important;
}
.maintenance-form-page .ts-wrapper.maintenance-select.single.focus .ts-control {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.08) !important;
}
.maintenance-form-page .ts-wrapper.maintenance-select.single .ts-control::after {
    right: 14px;
}
.ts-dropdown.maintenance-select {
    margin-top: 5px;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}
.ts-dropdown.maintenance-select .option {
    padding: 9px 12px;
}
.ts-dropdown.maintenance-select .active {
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.maintenance-form-page .maintenance-assignee-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.maintenance-form-page .assignee-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid #e1e7ee;
    border-radius: 11px;
    background: #fff;
    color: #172033;
    cursor: pointer;
    user-select: none;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}
.maintenance-form-page .assignee-card > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.maintenance-form-page .assignee-card .avatar--40 {
    width: 32px;
    height: 32px;
    font-size: 13px;
}
.maintenance-form-page .assignee-card:hover {
    border-color: var(--color-primary-border-strong) !important;
    background: var(--color-primary-subtle) !important;
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.06);
}
.maintenance-form-page .assignee-card.active {
    border-color: var(--color-primary) !important;
    background: var(--color-primary-subtle) !important;
    box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.08);
}
.maintenance-form-page .maintenance-duration-section {
    margin: 0;
    padding: 17px 0 0;
    border-top: 1px solid #eef1f5;
}
.maintenance-form-page .maintenance-duration-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 12px;
}
.maintenance-form-page .duration-card {
    position: relative;
    display: block;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}
.maintenance-form-page .duration-card > input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}
.maintenance-form-page .duration-card > input[type="radio"]:focus-visible + .card-inner {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}
.maintenance-form-page .card-inner {
    min-height: 62px;
    padding: 12px 20px;
    border: 1px solid #e1e7ee;
    border-radius: 11px;
    background: #fff;
}
.maintenance-form-page .duration-card:hover .card-inner {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
}
.maintenance-form-page .duration-card input:checked + .card-inner {
    border-color: var(--color-primary);
    background: var(--color-primary-subtle);
    box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.06);
}
.maintenance-form-page .card-title {
    margin: 0 0 2px;
    color: #172033;
}
.maintenance-form-page .card-desc {
    color: var(--color-text-muted);
}
.maintenance-form-page .maintenance-date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px 12px;
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    background: #f8fafc;
}
.maintenance-form-page .maintenance-input-suffix {
    position: relative;
}
.maintenance-form-page .maintenance-input-suffix .maintenance-control {
    padding-right: 96px;
}
.maintenance-form-page .maintenance-input-suffix > span {
    position: absolute;
    top: 50%;
    right: 12px;
    color: var(--color-text-muted-2);
    transform: translateY(-50%);
    pointer-events: none;
}
.maintenance-form-page .maintenance-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 9px;
}
.maintenance-form-page .maintenance-section-heading label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #334155;
}
.maintenance-form-page .maintenance-section-heading label svg {
    color: var(--color-primary);
}
.maintenance-form-page .maintenance-add-task-button, .maintenance-form-page .maintenance-add-checklist-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid var(--color-primary-border-strong);
    border-radius: 9px;
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        transform 0.18s ease;
}
.maintenance-form-page .maintenance-add-task-button:hover, .maintenance-form-page .maintenance-add-checklist-button:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-border-strong) !important;
    color: var(--color-primary-hover) !important;
}
.maintenance-form-page .maintenance-checklist-section {
    margin: 16px 0 0;
    padding: 13px 14px;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    background: #f8fafc;
}
.maintenance-form-page .maintenance-checklist-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.maintenance-form-page .maintenance-checklist-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    border-radius: 10px;
    transition:
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}
.maintenance-form-page .maintenance-drag-handle {
    display: inline-flex;
    width: 28px;
    height: 34px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-muted-2);
    cursor: grab;
    touch-action: none;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease;
}
.maintenance-form-page .maintenance-drag-handle::before {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    box-shadow:
        0 -5px 0 currentColor,
        0 5px 0 currentColor,
        5px -5px 0 currentColor,
        5px 0 0 currentColor,
        5px 5px 0 currentColor;
    content: "";
    transform: translateX(-2.5px);
}
.maintenance-form-page .maintenance-drag-handle > i {
    display: none;
}
.maintenance-form-page .maintenance-drag-handle:hover, .maintenance-form-page .maintenance-drag-handle:focus-visible {
    border-color: #e2e8f0;
    outline: none;
    background: #fff;
    color: #475569;
}
.maintenance-form-page .maintenance-drag-handle:active {
    cursor: grabbing;
}
.maintenance-form-page .maintenance-checklist-row.is-sortable-ghost {
    opacity: 0.4;
    background: var(--color-primary-subtle);
}
.maintenance-form-page .maintenance-checklist-row.is-sortable-chosen {
    background: #fff;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.08);
}
.maintenance-form-page .maintenance-checklist-row.is-sortable-dragging {
    opacity: 0.95;
}
.maintenance-form-page .maintenance-checklist-index {
    width: 26px;
    flex: 0 0 26px;
    color: var(--color-text-muted);
    text-align: center;
}
.maintenance-form-page .maintenance-checklist-row .maintenance-control {
    min-width: 0;
    flex: 1 1 auto;
}
.maintenance-form-page .maintenance-checklist-remove {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-muted-2);
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease;
}
.maintenance-form-page .maintenance-checklist-remove:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle) !important;
    color: var(--color-primary-hover) !important;
}
.maintenance-form-page .maintenance-checklist-note {
    margin: 8px 0 0;
    color: var(--color-text-muted);
    line-height: 1.5;
}
.maintenance-form-page .maintenance-notes-section {
    margin: 16px 0 0;
}
.maintenance-form-page .maintenance-form-alert {
    margin: 16px 0 0;
    padding: 11px 13px;
    border: 1px solid var(--color-primary-border-strong);
    border-radius: 10px;
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
    line-height: 1.5;
}
.maintenance-form-page .maintenance-form-alert-title {
    display: flex;
    align-items: center;
    gap: 7px;
}
.maintenance-form-page .maintenance-form-alert ul {
    margin: 6px 0 0;
    padding-left: 24px;
}
.maintenance-form-page .maintenance-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 18px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid #eef1f5;
}
.maintenance-form-page .maintenance-cancel-link, .maintenance-form-page .maintenance-submit-button {
    display: inline-flex;
    width: auto;
    min-width: 132px;
    height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}
.maintenance-form-page .maintenance-cancel-link {
    border: 1px solid #dbe3ec;
    background: #fff;
    color: #475569;
}
.maintenance-form-page .maintenance-cancel-link:hover {
    border-color: #c5d0dc;
    background: #f8fafc;
}
.maintenance-form-page .maintenance-submit-button {
    min-width: 230px;
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 7px 16px rgba(var(--color-primary-rgb), 0.18);
}
.maintenance-form-page .maintenance-submit-button:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 9px 20px rgba(var(--color-primary-rgb), 0.24);
}
/* SEO Content create/edit: shared form built on the maintenance form system. */
.seo-content-form-page .seo-content-workflow-section {
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    background: #f8fafc;
}
.seo-content-form-page .seo-content-section-heading {
    margin-bottom: 11px;
}
.seo-content-form-page .seo-content-section-helper {
    color: var(--color-text-muted-2);
    font-size: 12px;
}
.seo-content-form-page .seo-content-workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.seo-content-form-page .seo-content-workflow-role {
    min-width: 0;
    padding: 10px;
    border: 1px solid #e1e7ee;
    border-radius: 11px;
    background: #fff;
}
.seo-content-form-page .seo-content-workflow-label {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: #334155;
}
.seo-content-form-page .seo-content-workflow-label > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
}
.seo-content-form-page .seo-content-workflow-step {
    display: inline-grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border: 1px solid var(--color-primary-border-strong);
    border-radius: 8px;
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
    font-size: 12px;
}
.seo-content-form-page .seo-content-workflow-name {
    overflow: hidden;
    color: #172033;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.seo-content-form-page .seo-content-workflow-label small {
    overflow: hidden;
    color: var(--color-text-muted-2);
    font-size: 11px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.seo-content-form-page .seo-content-member-select {
    position: relative;
    min-width: 0;
}
.seo-content-form-page .seo-content-member-trigger {
    display: flex;
    width: 100%;
    height: 42px;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #172033;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}
.seo-content-form-page .seo-content-member-trigger:hover, .seo-content-form-page .seo-content-member-select.is-open .seo-content-member-trigger, .seo-content-form-page .seo-content-member-trigger:focus-visible {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.08);
}
.seo-content-form-page .seo-content-member-selected {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}
.seo-content-form-page .seo-content-member-avatar, .seo-content-form-page .seo-content-member-option-avatar {
    display: inline-flex;
    flex: 0 0 auto;
}
.seo-content-form-page .seo-content-member-selected-name, .seo-content-form-page .seo-content-member-placeholder {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.seo-content-form-page .seo-content-member-placeholder {
    color: var(--color-text-muted-2);
}
.seo-content-form-page .seo-content-member-chevron {
    flex: 0 0 auto;
    color: var(--color-text-muted-2);
    transition: transform 0.18s ease;
}
.seo-content-form-page .seo-content-member-select.is-open .seo-content-member-chevron {
    transform: rotate(180deg);
}
.seo-content-form-page .seo-content-member-options {
    position: absolute;
    z-index: 120;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    display: none;
    max-height: 246px;
    padding: 5px;
    overflow-y: auto;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.13);
}
.seo-content-form-page .seo-content-member-select.is-open .seo-content-member-options {
    display: block;
}
.seo-content-form-page .seo-content-member-option {
    display: flex;
    width: 100%;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    padding: 5px 7px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition:
        background-color 0.16s ease,
        color 0.16s ease;
}
.seo-content-form-page .seo-content-member-option:hover, .seo-content-form-page .seo-content-member-option:focus-visible {
    outline: none;
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.seo-content-form-page .seo-content-member-option--clear {
    min-height: 34px;
    margin-bottom: 4px;
    border-bottom: 1px solid #eef1f5;
    border-radius: 7px 7px 0 0;
    color: var(--color-text-muted);
}
.seo-content-form-page .seo-content-member-option-empty {
    padding-left: 2px;
}
.seo-content-form-page .seo-content-duration-fields {
    display: contents;
}
.seo-content-form-page .seo-content-duration-fields.is-hidden {
    display: none;
}
.seo-content-form-page .seo-content-settings-grid {
    margin-bottom: 0;
}
.seo-content-form-page .seo-content-article-input .maintenance-control {
    padding-right: 118px;
}
.maintenance-trash-row:hover {
    background: var(--color-bg-subtle);
}
/* Maintenance list */
.maintenance-list-page {
    font-size: 13px;
    font-weight: 400;
}
.maintenance-page-header {
    margin-bottom: 24px;
}
.maintenance-page-subtitle {
    margin-top: 2px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
}
.maintenance-page-actions {
    align-items: center;
    gap: 12px;
}
.maintenance-add-button {
    min-height: 40px;
    font-size: 13px;
    white-space: nowrap;
}
.maintenance-add-button {
    padding: 10px 20px;
    font-weight: 600;
}
.maintenance-action-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.maintenance-toolbar-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}
.maintenance-toolbar-button svg {
    flex: 0 0 auto;
}
.maintenance-toolbar-button--export {
    border-color: #d1fae5;
    background: #f0fdf9;
    color: #047857;
}
.maintenance-toolbar-button--export:hover:not(:disabled) {
    border-color: #a7f3d0;
    background: var(--color-success-light);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.1);
}
.maintenance-toolbar-button--move {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.maintenance-toolbar-button--move:hover:not(:disabled) {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.1);
}
.maintenance-toolbar-button--archive {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #475569;
}
.maintenance-toolbar-button--archive:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #0f172a;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}
.maintenance-toolbar-button:disabled {
    border-color: transparent;
    background: transparent;
    color: #a8b2bf;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
}
.maintenance-selection-count {
    display: none;
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 90px;
    background: var(--color-primary-hover);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.maintenance-selection-count.is-visible {
    display: inline-flex;
}
.maintenance-filter-card {
    margin-bottom: 24px;
}
.maintenance-filter-wrap {
    gap: 16px;
}
.maintenance-filter-select-wrap--status {
    width: 160px;
}
.maintenance-filter-select-wrap--month {
    width: 240px;
}
.maintenance-filter-select-wrap--assignee {
    width: 220px;
}
.maintenance-filter-select {
    width: 100%;
    height: var(--filter-control-height);
    min-height: var(--filter-control-height);
    border-radius: var(--filter-control-radius);
    background-color: #fff;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}
.maintenance-filter-wrap .ts-wrapper {
    height: var(--filter-control-height);
}
.maintenance-filter-wrap .ts-control {
    height: var(--filter-control-height);
    min-height: var(--filter-control-height);
    border-radius: var(--filter-control-radius);
}
.maintenance-table-region {
    transition: opacity 0.18s ease;
}
.maintenance-table-region.is-loading {
    opacity: 0.48;
    pointer-events: none;
}
.maintenance-data-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}
.maintenance-column--select {
    width: 4%;
}
.maintenance-column--website {
    width: 22%;
}
.maintenance-column--status {
    width: 9%;
}
.maintenance-column--period {
    width: 18%;
}
.maintenance-column--report {
    width: 10%;
}
.maintenance-column--assignee {
    width: 7%;
}
.maintenance-column--progress {
    width: 22%;
}
.maintenance-column--actions {
    width: 8%;
}
.main-content .maintenance-list-table-container {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}
.maintenance-data-table th, .maintenance-data-table td {
    overflow: hidden;
    height: 40px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.maintenance-data-table th {
    height: 48px;
    padding: 12px;
    font-weight: 600;
}
.maintenance-data-table td.maintenance-status-cell {
    overflow: visible;
    text-overflow: clip;
}
.maintenance-status-cell .app-badge {
    max-width: none;
    white-space: nowrap;
}
.maintenance-table-row {
    height: 40px;
}
.maintenance-table-row.is-expired {
    background: var(--color-primary-subtle);
}
.maintenance-data-table .table-checkbox-cell {
    width: auto;
    padding-right: 8px !important;
    padding-left: 12px !important;
}
.maintenance-checkbox {
    width: 18px;
    height: 18px;
    min-height: 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.maintenance-checkbox::before {
    width: 9px;
    height: 9px;
}
.maintenance-checkbox:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.tricks-grid-bulk-control {
    display: none;
    margin-bottom: 10px;
}
.tricks-grid-bulk-control label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.tricks-table-region[data-view="grid"] .tricks-grid-bulk-control {
    display: flex;
}
.tricks-grid-card__select {
    display: inline-flex;
    align-items: center;
    margin-right: 2px;
    cursor: pointer;
}
.tricks-grid-card__select:has(input:disabled) {
    cursor: not-allowed;
    opacity: 0.45;
}
.maintenance-checkbox:checked, .maintenance-checkbox:indeterminate {
    border-color: var(--color-primary);
    background: var(--color-primary);
}
.maintenance-checkbox:indeterminate::before {
    width: 9px;
    height: 2px;
    clip-path: none;
    background: #fff;
    transform: scale(1);
}
.maintenance-data-table .maintenance-inline-cell {
    display: inline-flex !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-items: center;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    vertical-align: middle;
    white-space: nowrap !important;
}
.maintenance-website-link {
    display: inline-flex;
    width: 100%;
    max-width: 100%;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    color: var(--color-text-secondary);
    white-space: nowrap;
}
.maintenance-website-access {
    display: inline-flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-items: center;
    gap: 6px;
}
.maintenance-website-access .maintenance-website-link {
    width: fit-content;
    min-width: 0;
    text-decoration: none;
}
.maintenance-website-copy {
    flex: 0 0 28px;
}
.maintenance-website-link svg {
    flex: 0 0 auto;
}
.maintenance-website-link span {
    overflow: hidden;
    text-overflow: ellipsis;
}
.maintenance-website-link:hover {
    color: var(--color-primary);
}
.maintenance-website-link.is-disabled {
    color: var(--color-text-muted);
    cursor: default;
}
.maintenance-data-table .app-badge {
    min-height: 22px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 500;
}
.maintenance-period-line {
    gap: 6px;
    overflow: hidden;
}
.maintenance-period-date {
    color: var(--color-text-primary);
    font-weight: 400;
    font-size: 12px;
}
.maintenance-cell-separator {
    color: #cbd5e1;
}
.table-report-date {
    overflow: hidden;
    margin-top: 0;
    color: var(--color-text-muted);
    font-weight: 400;
    text-overflow: ellipsis;
}
.table-report-date.is-set {
    color: #047857;
}
.maintenance-days-left {
    padding: 2px 6px;
    border-radius: 90px;
    background: #fffbeb;
    color: #b45309;
    font-weight: 400;
}
.maintenance-assignee {
    gap: 7px;
    overflow: hidden;
    font-weight: 400;
}
.maintenance-assignee > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}
.maintenance-month-progress {
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
}
.maintenance-month-marker {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    flex-direction: row !important;
    gap: 3px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}
.schedule-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
}
.maintenance-manage-wrap {
    gap: 10px;
}
.maintenance-manage-button {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    padding: 1px;
    color: var(--color-text-muted);
}
.maintenance-manage-button:hover {
    background: transparent;
    color: var(--color-primary);
}
.maintenance-pagination {
    margin-top: 24px;
}
.schedule-status-dot.is-done {
    border-color: var(--color-success);
    background: var(--color-success);
}
.schedule-status-dot.is-current {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 14%, transparent);
}
.maintenance-assignee-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.maintenance-data-table .maintenance-month-progress {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}
.maintenance-data-table .maintenance-month-progress::-webkit-scrollbar {
    display: none;
}
.maintenance-data-table .maintenance-month-marker {
    display: inline-flex !important;
    flex: 0 0 auto;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    flex-direction: column !important;
    gap: 3px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}
.maintenance-data-table .maintenance-month-marker.is-done {
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
}
.maintenance-data-table .maintenance-month-marker.is-current {
    border: 0;
    box-shadow: none;
}
.maintenance-data-table .maintenance-month-marker .schedule-status-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 3px;
    background: #e8edf2;
    box-shadow: none;
}
.maintenance-data-table .maintenance-month-marker .schedule-status-dot.is-done {
    background: var(--color-success);
}
.maintenance-data-table .maintenance-month-marker > span:last-child {
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
}
/* SEO Content list: maintenance UI with content workflow columns. */
.seo-content-filter-wrap .cw-search-wrap {
    flex: 1 1 auto;
}
.seo-content-data-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}
.seo-content-column--select {
    width: 4%;
}
.seo-content-column--website {
    width: 14%;
}
.seo-content-column--status {
    width: 7%;
}
.seo-content-column--target {
    width: 7%;
}
.seo-content-column--period {
    width: 12%;
}
.seo-content-column--report {
    width: 8%;
}
.seo-content-column--summary {
    width: 11%;
}
.seo-content-column--progress {
    width: 18%;
}
.seo-content-column--team {
    width: 9%;
}
.seo-content-column--actions {
    width: 10%;
}
.seo-content-data-table th, .seo-content-data-table td {
    padding: 7px 9px;
}
.seo-content-data-table td {
    height: auto;
}
.seo-content-data-table th {
    height: 48px;
    padding: 11px 9px;
}
.seo-content-table-row {
    height: auto;
    min-height: 52px;
}
.seo-content-data-table td.seo-content-summary-cell, .seo-content-data-table td.seo-content-progress-cell {
    overflow: visible;
    padding-top: 6px;
    padding-bottom: 6px;
    white-space: normal;
}
.seo-content-data-table td.seo-content-summary-cell {
    white-space: nowrap;
}
.seo-content-target {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    color: #475569;
    white-space: nowrap;
}
.seo-content-target strong {
    color: var(--color-primary-hover);
    font-size: 14px;
    font-weight: 600;
}
.seo-content-target span {
    font-size: 12px;
}
.seo-content-latest-summary {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.seo-content-summary-meta {
    display: flex;
    align-items: center;
    gap: 4px;
}
.seo-content-summary-month, .seo-content-summary-progress {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    height: 19px;
    padding: 0 6px;
    border-radius: 7px;
    font-size: 11px;
    line-height: 1;
}
.seo-content-summary-month {
    background: #f1f5f9;
    color: var(--color-text-muted);
}
.seo-content-summary-progress {
    background: var(--color-success-light);
    color: #047857;
}
.seo-content-status-list {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 4px;
}
.seo-content-status-chip, .seo-content-summary-modal-badge {
    --seo-status-bg: #f1f5f9;
    --seo-status-color: #475569;
    --seo-status-border: #e2e8f0;
}
.seo-content-status-chip.seo-status-draft, .seo-content-summary-modal-badge.seo-status-draft {
    --seo-status-bg: #f1f5f9;
    --seo-status-color: #475569;
    --seo-status-border: #e2e8f0;
}
.seo-content-status-chip.seo-status-review_b, .seo-content-summary-modal-badge.seo-status-review_b,
.seo-content-status-chip.seo-status-writer_review, .seo-content-summary-modal-badge.seo-status-writer_review {
    --seo-status-bg: #fffbeb;
    --seo-status-color: #b45309;
    --seo-status-border: #fde68a;
}
.seo-content-status-chip.seo-status-writer_c, .seo-content-summary-modal-badge.seo-status-writer_c {
    --seo-status-bg: #eef2ff;
    --seo-status-color: #4338ca;
    --seo-status-border: #c7d2fe;
}
.seo-content-status-chip.seo-status-coordinated_c, .seo-content-summary-modal-badge.seo-status-coordinated_c,
.seo-content-status-chip.seo-status-writing, .seo-content-summary-modal-badge.seo-status-writing {
    --seo-status-bg: #f5f3ff;
    --seo-status-color: #7c3aed;
    --seo-status-border: #ddd6fe;
}
.seo-content-status-chip.seo-status-posting_a, .seo-content-summary-modal-badge.seo-status-posting_a {
    --seo-status-bg: #eff6ff;
    --seo-status-color: #2563eb;
    --seo-status-border: #bfdbfe;
}
.seo-content-status-chip.seo-status-final_review_c, .seo-content-summary-modal-badge.seo-status-final_review_c,
.seo-content-status-chip.seo-status-writer_revision, .seo-content-summary-modal-badge.seo-status-writer_revision {
    --seo-status-bg: #fff7ed;
    --seo-status-color: #c2410c;
    --seo-status-border: #fed7aa;
}
.seo-content-status-chip.seo-status-completed, .seo-content-summary-modal-badge.seo-status-completed {
    --seo-status-bg: var(--color-success-light);
    --seo-status-color: #047857;
    --seo-status-border: #a7f3d0;
}
.seo-content-status-chip {
    display: inline-flex;
    min-width: 0;
    min-height: 22px;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border: 1px solid var(--seo-status-border);
    border-radius: 90px;
    background: var(--seo-status-bg);
    color: var(--seo-status-color);
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition:
        filter 0.16s ease,
        transform 0.16s ease;
}
.seo-content-status-chip > span:first-child {
    min-width: 0;
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.seo-content-status-chip:hover {
    filter: saturate(1.12);
}
.seo-content-status-chip strong {
    display: inline-grid;
    min-width: 14px;
    height: 14px;
    place-items: center;
    padding: 0 3px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 600;
}
.seo-content-team {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
}
.seo-content-team-member {
    display: inline-flex;
    flex: 0 0 auto;
    border: 2px solid #fff;
    border-radius: 50%;
}
.seo-content-team-member + .seo-content-team-member {
    margin-left: -8px;
}
.seo-content-team-member:hover {
    position: relative;
    z-index: 2;
}
.seo-content-data-table .maintenance-manage-wrap {
    gap: 8px;
}
.seo-content-summary-offcanvas {
    position: fixed;
    inset: 0;
    z-index: 10030;
    visibility: hidden;
    pointer-events: none;
}
.seo-content-summary-offcanvas__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.48);
    opacity: 0;
    cursor: default;
    backdrop-filter: blur(4px);
    transition: opacity 0.24s ease;
}
.seo-content-summary-offcanvas__panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: min(520px, 100vw);
    height: 100dvh;
    flex-direction: column;
    border-top: 3px solid var(--color-primary);
    border-left: 1px solid var(--color-border);
    background: #fff;
    box-shadow: -18px 0 45px rgba(15, 23, 42, 0.18);
    outline: none;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.seo-content-summary-offcanvas.is-open {
    visibility: visible;
    pointer-events: auto;
}
.seo-content-summary-offcanvas.is-open .seo-content-summary-offcanvas__overlay {
    opacity: 1;
}
.seo-content-summary-offcanvas.is-open .seo-content-summary-offcanvas__panel {
    transform: translateX(0);
}
.seo-content-summary-offcanvas__header {
    display: flex;
    min-height: 72px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px 14px 22px;
    border-bottom: 1px solid var(--color-border);
    background: #fff;
}
.seo-content-summary-offcanvas__heading {
    min-width: 0;
}
.seo-content-summary-offcanvas__eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.seo-content-summary-offcanvas__title {
    overflow: hidden;
    margin: 0;
    color: var(--color-text-primary);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.seo-content-summary-offcanvas__body {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 22px;
    background: var(--color-bg-base);
}
.seo-content-summary-offcanvas__status {
    display: flex;
    margin-bottom: 16px;
}
.seo-content-summary-offcanvas__footer {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    padding: 14px 18px;
    border-top: 1px solid var(--color-border);
    background: #fff;
}
.seo-content-summary-offcanvas__panel .seo-content-summary-list {
    max-height: none;
    overflow: visible;
}
body.has-seo-summary-offcanvas-open {
    overflow: hidden;
}
.seo-content-summary-modal-badge {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 7px;
    padding: 4px 6px 4px 10px;
    border: 1px solid var(--seo-status-border);
    border-radius: 9px;
    background: var(--seo-status-bg);
    color: var(--seo-status-color);
}
.seo-content-summary-modal-badge > span:last-child {
    display: inline-grid;
    min-width: 21px;
    height: 21px;
    place-items: center;
    padding: 0 5px;
    border-radius: 6px;
    background: var(--seo-status-color);
    color: #fff;
    font-size: 11px;
}
.seo-content-summary-close {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: var(--color-text-muted);
    cursor: pointer;
}
.seo-content-summary-close:hover {
    background: #f8fafc;
    color: #0f172a;
}
.seo-content-summary-title {
    margin-bottom: 12px;
    text-align: left;
}
.seo-content-summary-list {
    display: flex;
    max-height: min(50vh, 360px);
    flex-direction: column;
    gap: 7px;
    overflow-y: auto;
}
.seo-content-summary-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #e5eaf0;
    border-radius: 9px;
    background: #fff;
    color: #172033;
    text-decoration: none;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease;
}
.seo-content-summary-item:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
}
.seo-content-summary-item__index {
    flex: 0 0 auto;
    color: var(--color-text-muted-2);
}
.seo-content-summary-item__name {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.seo-content-summary-item__arrow {
    color: var(--color-text-muted-2);
    font-size: 20px;
    line-height: 1;
}
.seo-content-summary-empty {
    margin: 0;
    padding: 24px 12px;
    color: var(--color-text-muted-2);
    text-align: center;
}
/* SEO Content detail */
.seo-content-detail-page {
    font-size: 13px;
    font-weight: 400;
}
.seo-content-detail-team {
    display: inline-flex;
    align-items: center;
}
.seo-content-detail-team > span {
    display: inline-flex;
    flex: 0 0 auto;
    border: 2px solid #fff;
    border-radius: 50%;
}
.seo-content-detail-team > span + span {
    margin-left: -10px;
}
.seo-content-task-panel {
    min-width: 0;
}
.seo-round-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 8px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 400;
}
.seo-topic-card__main {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 10px;
}
.seo-content-detail-page .seo-topic-card {
    display: block;
}
.seo-topic-card__icon {
    display: inline-grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 10px;
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.seo-topic-card__content {
    min-width: 0;
    flex: 1 1 auto;
}
.seo-topic-card__title {
    overflow: hidden;
    color: #172033;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.seo-topic-card__meta {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 10px;
    margin-top: 3px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.seo-topic-review-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 90px;
    background: #f5f3ff;
    color: #6d28d9;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
}
.seo-topic-review-badge.is-complete {
    background: var(--color-success-light);
    color: #047857;
}
.seo-topic-delete-button, .seo-comment-menu-trigger {
    display: inline-grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-muted-2);
    cursor: pointer;
}
.seo-topic-delete-button:hover {
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.seo-topic-card__chevron {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--color-text-muted-2);
}
.seo-topic-card--trashed {
    margin-bottom: 6px !important;
    background: #f8fafc !important;
    cursor: default !important;
    opacity: 0.82;
}
.seo-topic-card--trashed:hover {
    border-color: #e5eaf0 !important;
    box-shadow: none !important;
    transform: none !important;
}
.seo-topic-empty {
    margin-top: 4px;
}
.seo-topic-trash {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e5eaf0;
}
.seo-topic-trash__heading {
    margin-bottom: 8px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
}
.seo-topic-trash__list {
    display: grid;
    gap: 6px;
}
.seo-topic-trash__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
}
.seo-topic-offcanvas {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: block;
    visibility: hidden;
    overflow: hidden;
    font-weight: 400;
    pointer-events: none;
    transition: visibility 0s linear 0.3s;
}
.seo-topic-offcanvas *:not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.fas):not(.far):not(.fab) {
    font-weight: 400 !important;
}
.seo-topic-offcanvas.is-open {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}
.seo-topic-offcanvas__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    backdrop-filter: blur(2px);
    cursor: pointer;
    transition: opacity 0.24s ease;
}
.seo-topic-offcanvas.is-open .seo-topic-offcanvas__overlay {
    opacity: 1;
}
.seo-topic-offcanvas__panel {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: min(950px, 100vw);
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-top: 3px solid var(--color-primary);
    border-left: 1px solid #e5eaf0;
    border-radius: 0;
    background: #fff;
    box-shadow: -24px 0 60px rgba(15, 23, 42, 0.24);
    outline: none;
    transform: translateX(100%);
    transition: all 0.3s;
}
.seo-topic-offcanvas.is-open .seo-topic-offcanvas__panel {
    transform: translateX(0);
}
.seo-topic-offcanvas__header {
    position: sticky;
    z-index: 4;
    top: 0;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid #eef1f5;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
}
.seo-topic-offcanvas__header h2 {
    margin: 0;
    color: #172033;
    font-size: 19px;
    font-weight: 400;
}
.seo-topic-offcanvas__close {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: var(--color-text-muted);
    font-family: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.seo-topic-offcanvas__close:hover {
    background: #f8fafc;
    color: #172033;
}
.seo-topic-offcanvas__timeline {
    padding: 18px 22px 4px;
    background: #fff;
}
.seo-topic-timeline-progress {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 2px;
    appearance: none;
}
.seo-topic-timeline-progress::-webkit-progress-bar {
    background: transparent;
}
.seo-topic-timeline-progress::-webkit-progress-value {
    background: var(--progress-scale-color, var(--color-text-muted-2));
    transition: width 0.25s ease;
}
.seo-topic-timeline-progress::-moz-progress-bar {
    background: var(--progress-scale-color, var(--color-text-muted-2));
}
.seo-topic-offcanvas__body {
    padding: 20px 22px 24px;
}
.seo-content-detail-page .swal2-container {
    z-index: 99999 !important;
}
.seo-content-detail-page .topic-card {
    position: relative;
    display: block;
    margin-bottom: 10px;
    padding: 14px;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}
.seo-content-detail-page .topic-card:hover {
    border-color: var(--color-primary-border-strong);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}
.seo-content-detail-page .status-badge {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 90px;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
}
.seo-content-detail-page .status-draft {
    background: #f1f5f9;
    color: var(--color-text-muted);
}
.seo-content-detail-page .status-review_b, .seo-content-detail-page .status-writer_review {
    background: #fffbeb;
    color: #b45309;
}
.seo-content-detail-page .status-writer_c {
    background: #eef2ff;
    color: #4338ca;
}
.seo-content-detail-page .status-coordinated_c, .seo-content-detail-page .status-writing {
    background: #f5f3ff;
    color: #7c3aed;
}
.seo-content-detail-page .status-posting_a {
    background: #eff6ff;
    color: #2563eb;
}
.seo-content-detail-page .status-final_review_c, .seo-content-detail-page .status-writer_revision {
    background: #fff7ed;
    color: #c2410c;
}
.seo-content-detail-page .status-completed {
    background: var(--color-success-light);
    color: #047857;
}
.seo-content-detail-page .wf-btn {
    display: flex;
    width: 100%;
    height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        filter 0.18s ease,
        transform 0.18s ease;
}
.seo-content-detail-page .wf-btn:hover {
    filter: brightness(0.96);
}
.seo-workflow-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid #e5eaf0;
}
.seo-workflow-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
}
.seo-workflow-toolbar--completed {
    grid-template-columns: minmax(0, 1fr) auto;
}
.seo-workflow-edit-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.seo-workflow-edit-actions.is-hidden, .seo-completed-view-actions.is-hidden {
    display: none !important;
}
.seo-workflow-actions .wf-btn {
    width: 100% !important;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    border-radius: 9px;
}
.seo-workflow-actions .seo-workflow-tool-button {
    width: auto !important;
    min-width: 88px;
    border: 1px solid #dbe3ec;
    background: #fff;
    color: #475569;
}
.seo-workflow-actions .seo-workflow-tool-button--export:hover {
    border-color: #99f6e4;
    background: #f0fdfa;
    color: #047857;
}
.seo-workflow-actions .seo-workflow-tool-button--danger {
    border-color: var(--color-primary-border-strong);
    color: var(--color-primary-hover);
}
.seo-workflow-actions .seo-workflow-tool-button--danger:hover {
    background: var(--color-primary-subtle);
}
.seo-topic-comments-section {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e5eaf0;
}
.seo-topic-comments-heading {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.seo-topic-comments-list {
    display: flex;
    max-height: 220px;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
    padding-right: 4px;
    overflow-y: auto;
}
.seo-topic-comments-list > .comment-panel__empty {
    padding: 14px 0 !important;
}
.seo-topic-comment-composer {
    position: relative;
    overflow: hidden;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}
.seo-topic-comment-composer:focus-within {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.08);
}
.seo-topic-comment-editor.ql-container.ql-snow {
    min-height: 68px;
    max-height: 96px;
    border: 0 !important;
    background: transparent;
}
.seo-topic-comment-editor .ql-editor {
    min-height: 68px !important;
    max-height: 96px;
    padding: 12px 54px 12px 14px !important;
    overflow-y: auto;
    line-height: 1.55;
}
.seo-topic-comment-submit {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        transform 0.18s ease;
}
.seo-topic-comment-submit:hover {
    background: var(--color-primary-hover);
}
.seo-topic-comment-submit:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}
.seo-topic-comment-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 6px 0 14px;
    color: var(--color-text-muted-2);
    font-size: 11px;
}
.seo-content-detail-page .tm-step {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.seo-content-detail-page .tm-dot {
    display: flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    color: var(--color-text-muted-2);
    font-size: 11px;
    font-weight: 600;
    transition: 0.2s ease;
}
.seo-content-detail-page .tm-label {
    color: var(--color-text-muted-2);
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}
.seo-content-detail-page .tm-step.active .tm-dot, .seo-content-detail-page .tm-step.completed .tm-dot {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}
.seo-content-detail-page .tm-step.active .tm-dot {
    box-shadow: 0 0 0 4px var(--color-primary-subtle);
}
.seo-content-detail-page .tm-step.active .tm-label, .seo-content-detail-page .tm-step.completed .tm-label {
    color: var(--color-primary-hover);
}
.seo-content-detail-page .card-timeline {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 14px 34px 2px 58px;
}
.seo-content-detail-page .card-tm-line {
    position: absolute;
    z-index: 1;
    top: 9px;
    right: calc(100% / 14);
    left: calc(100% / 14);
    height: 2px;
    background: #e2e8f0;
}
.seo-content-detail-page .card-tm-progress {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 2px;
    appearance: none;
}
.seo-content-detail-page .card-tm-progress::-webkit-progress-bar {
    background: transparent;
}
.seo-content-detail-page .card-tm-progress::-webkit-progress-value {
    background: var(--progress-scale-color, var(--color-text-muted-2));
}
.seo-content-detail-page .card-tm-progress::-moz-progress-bar {
    background: var(--progress-scale-color, var(--color-text-muted-2));
}
.seo-content-detail-page .card-tm-step {
    position: relative;
    z-index: 3;
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.seo-content-detail-page .card-tm-dot {
    display: flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    color: var(--color-text-muted-2);
    font-size: 10px;
    font-weight: 600;
}
.seo-content-detail-page .card-tm-label {
    color: var(--color-text-muted-2);
    font-size: 11px;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
}
.seo-content-detail-page .card-tm-step.active .card-tm-dot, .seo-content-detail-page .card-tm-step.completed .card-tm-dot {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}
.seo-content-detail-page .card-tm-step.active .card-tm-dot {
    box-shadow: 0 0 0 3px var(--color-primary-subtle);
    transform: scale(1.06);
}
.seo-content-detail-page .card-tm-step.active .card-tm-label, .seo-content-detail-page .card-tm-step.completed .card-tm-label {
    color: var(--color-primary-hover);
}
.seo-content-detail-page .action-btn {
    display: flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--color-text-muted);
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}
.seo-content-detail-page .action-btn:hover {
    border-color: var(--color-primary-border-strong);
    color: var(--color-primary-hover);
}
.seo-content-detail-page .action-btn.success {
    border-color: #86efac !important;
    background: var(--color-success-light) !important;
    color: #059669 !important;
}
.seo-content-detail-page .field-checker {
    position: relative;
    display: flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    border: 2px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    transition: 0.18s ease;
}
.seo-content-detail-page .field-checker.checked {
    border-color: var(--color-primary);
    background: var(--color-primary);
}
.seo-content-detail-page .field-checker.checked::after {
    width: 11px;
    height: 6px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    content: "";
    transform: rotate(-45deg) translateY(-1px);
}
.seo-content-detail-page .review-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
}
.seo-content-detail-page .rev-btn {
    display: flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #fff;
    color: var(--color-text-muted-2);
    cursor: default;
    opacity: 0.55;
}
.seo-content-detail-page .rev-btn.editable {
    cursor: pointer;
    opacity: 1;
}
.seo-content-detail-page .review-actions[data-state="approved"] .rev-approve {
    border-color: var(--color-success);
    background: var(--color-success);
    color: #fff;
}
.seo-content-detail-page .review-actions[data-state="rejected"] .rev-reject {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}
.seo-content-detail-page input.field-checked-bg, .seo-content-detail-page .ql-container.field-checked-bg {
    border-color: #bbf7d0 !important;
    background-color: #f0fdf4 !important;
}
.seo-content-detail-page input.field-rejected-bg, .seo-content-detail-page .ql-container.field-rejected-bg {
    border-color: var(--color-primary-border-strong) !important;
    background-color: var(--color-error-light) !important;
}
.seo-content-detail-page input, .seo-content-detail-page textarea, .seo-content-detail-page select, .seo-content-detail-page button {
    font-family: inherit;
}
.seo-content-saving-overlay {
    position: absolute;
    z-index: 100;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(2px);
}
.seo-content-saving-overlay.is-visible {
    display: flex;
}
.seo-alert-modal.is-success .app-modal__icon {
    background: var(--color-success-light);
    color: var(--color-success);
}
.seo-alert-modal {
    z-index: 10080;
}
.seo-alert-modal .app-modal__actions {
    grid-template-columns: 1fr;
}
.seo-alert-modal.is-error .app-modal__icon {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.seo-alert-modal.is-warning .app-modal__icon {
    background: #fef3c7;
    color: #d97706;
}
.seo-alert-modal.is-success #alert-ok-btn {
    background: var(--color-success);
    border-color: var(--color-success);
}
.seo-alert-modal.is-error #alert-ok-btn {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.seo-alert-modal.is-warning #alert-ok-btn {
    background: #d97706;
    border-color: #d97706;
}
.seo-comment-menu-trigger:hover {
    background: #f1f5f9;
    color: #334155;
}
.seo-comment-menu {
    display: none;
}
.seo-comment-menu.is-open {
    display: block;
}
.seo-comment-menu-action {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #475569;
    font: inherit;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
}
.seo-comment-menu-action:hover {
    background: #f8fafc;
}
.seo-comment-menu-action.is-danger, .seo-comment-menu-action--danger {
    color: var(--color-primary-hover);
}
.comment-panel__item.is-editing .comment-single-line {
    display: none;
}
.comment-panel__item.is-editing .comment-edit-mode {
    display: flex;
}
.seo-dynamic-input-row {
    display: flex;
    gap: 8px;
}
/* Maintenance detail */
.maintenance-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    padding: 16px 20px;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-card);
}
.maintenance-summary-card__identity, .maintenance-summary-card__assignee {
    display: flex;
    align-items: center;
}
.maintenance-summary-card__identity {
    min-width: 0;
    gap: 20px;
}
.maintenance-summary-card__assignee {
    gap: 10px;
    padding-right: 20px;
    border-right: 1px solid var(--color-line);
}
.maintenance-summary-card__avatar-placeholder {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
}
.maintenance-summary-card__customer {
    min-width: 0;
}
.maintenance-summary-card__label {
    color: var(--color-text-muted);
    font-weight: 600;
}
.maintenance-summary-card__value {
    overflow: hidden;
    margin-top: 2px;
    color: var(--color-text-primary);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.maintenance-summary-card__value--muted {
    color: var(--color-text-muted);
}
.maintenance-summary-card__period {
    flex: 0 0 auto;
    text-align: right;
}
.maintenance-summary-card__report-date {
    margin-top: 2px;
    color: var(--color-primary);
    font-weight: 600;
}
.maintenance-detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
}
.maintenance-rounds-card, .maintenance-task-panel {
    border: 1px solid var(--color-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-card);
}
.maintenance-rounds-card {
    position: sticky;
    top: calc(var(--topbar-height) + 16px);
    overflow: hidden;
}
.maintenance-rounds-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-bg-surface-soft);
}
.maintenance-rounds-card__header h2 {
    color: var(--color-text-secondary);
    font-size: 15px !important;
}
.maintenance-add-month-form {
    margin: 0;
}
.maintenance-add-month-button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    transition:
        background-color 0.16s ease,
        transform 0.16s ease;
}
.maintenance-add-month-button:hover {
    background: var(--color-primary-hover);
}
.maintenance-archive-link {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 10px;
    background: #fff;
}
.maintenance-rounds-card__list {
    display: flex;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
}
.maintenance-round-button {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--color-text-primary);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease;
}
.maintenance-round-button:hover {
    border-color: var(--color-line-strong);
    background: var(--color-bg-surface-soft);
}
.maintenance-round-button.is-active {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
}
.maintenance-round-button__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}
.maintenance-round-button__label {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.maintenance-round-button.is-active .maintenance-round-button__label {
    color: var(--color-primary);
}
.schedule-completion {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-muted);
    font-size: 13px;
}
.schedule-completion.is-complete {
    color: #059669;
}
.maintenance-round-button__indicator {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    min-width: 45px;
    padding: 3px 12px;
    border-radius: 90px;
    background: #ffffff;
    border: 1px solid;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 400;
}
.maintenance-task-panel {
    min-height: 420px;
    padding: 20px;
}
.maintenance-task-panel__loading {
    padding: 56px 20px;
    color: var(--color-text-muted);
    text-align: center;
}
.maintenance-task-panel__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.maintenance-task-panel__title-row, .maintenance-task-panel__tools {
    display: flex;
    align-items: center;
    gap: 9px;
}
.maintenance-task-panel__title-row h2 {
    font-size: 19px !important;
}
.maintenance-delete-month-form {
    margin: 0;
}
.embedded-confirm-dialog {
    border-radius: 16px;
    font-family: var(--font-family, "Noto Sans Thai", sans-serif);
    font-size: 13px;
}
.embedded-confirm-dialog__button {
    border-radius: 8px !important;
    padding: 8px 18px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}
.maintenance-task-panel__summary {
    margin-top: 3px;
    color: var(--color-text-muted);
}
.maintenance-task-panel__summary strong, .maintenance-task-panel__percent {
    color: var(--color-primary);
    font-weight: 600;
}
.maintenance-task-panel__percent {
    min-width: 38px;
    text-align: right;
}
.schedule-progress {
    display: block;
    width: 100%;
    height: 6px;
    margin-bottom: 18px;
    border: 0;
    border-radius: 90px;
    appearance: none;
}
.schedule-progress::-webkit-progress-bar {
    border-radius: 90px;
    background: #edf2f7;
}
.schedule-progress::-webkit-progress-value {
    border-radius: 90px;
    background: var(--progress-scale-color, var(--color-text-muted-2));
}
.schedule-progress::-moz-progress-bar {
    border-radius: 90px;
    background: var(--progress-scale-color, var(--color-text-muted-2));
}
.maintenance-project-note {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}
.maintenance-project-note__title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    color: var(--color-text-secondary);
    font-weight: 600;
}
.maintenance-project-note__text {
    color: var(--color-text-primary);
    white-space: pre-wrap;
}
.maintenance-task-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.schedule-task {
    display: flex;
    width: 100%;
    min-height: 45px;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--color-line-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--color-text-primary);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        box-shadow 0.16s ease;
}
.schedule-task:hover {
    border-color: #b8c5d2;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}
.schedule-task.is-done {
    border-color: #a7f3d0;
    background: #f0fdf9;
}
.schedule-task-check {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: transparent;
}
.schedule-task-check.is-done {
    border-color: var(--color-success);
    background: var(--color-success);
    color: #fff;
}
.schedule-task-checkmark {
    color: inherit;
}
.schedule-task__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    grid-gap: 10px;
}
.schedule-task-name {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.schedule-task-name.is-done {
    color: #166534;
}
.schedule-task__completed-at {
    margin-top: 1px;
    color: var(--color-text-muted);
}
.maintenance-task-empty {
    min-height: 180px;
    justify-content: center;
}
.maintenance-remarks {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--color-line);
}
.maintenance-remarks textarea {
    min-height: 82px;
    resize: vertical;
}
.maintenance-remarks__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
}
.maintenance-remarks__status {
    display: none;
    align-items: center;
    gap: 5px;
    color: #059669;
    font-weight: 600;
}
.maintenance-remarks__status.is-visible {
    display: flex;
}
/* Avatar variants: avoids inline style attributes from Member::getAvatarHtml(). */
.avatar {
    flex: 0 0 auto;
}
.avatar--16 {
    width: 16px;
    height: 16px;
    font-size: 8px;
}
.avatar--20 {
    width: 20px;
    height: 20px;
    font-size: 9px;
}
.avatar--24 {
    width: 24px;
    height: 24px;
    font-size: 11px;
}
.avatar--28 {
    width: 28px;
    height: 28px;
    font-size: 12px;
}
.avatar--32 {
    width: 32px;
    height: 32px;
    font-size: 13px;
}
.avatar--34 {
    width: 34px;
    height: 34px;
    font-size: 14px;
}
.avatar--36 {
    width: 36px;
    height: 36px;
    font-size: 15px;
}
.avatar--38 {
    width: 38px;
    height: 38px;
    font-size: 16px;
}
.avatar--40 {
    width: 40px;
    height: 40px;
    font-size: 17px;
}
.avatar--42 {
    width: 42px;
    height: 42px;
    font-size: 18px;
}
.avatar--48 {
    width: 48px;
    height: 48px;
    font-size: 20px;
}
.avatar--56 {
    width: 56px;
    height: 56px;
    font-size: 20px;
}
.avatar--64 {
    width: 64px;
    height: 64px;
    font-size: 26px;
}
.avatar--80 {
    width: 80px;
    height: 80px;
    font-size: 33px;
}
.avatar--96 {
    width: 96px;
    height: 96px;
    font-size: 39px;
}
.avatar--red {
    background: var(--color-primary-hover);
}
.avatar--blue {
    background: var(--color-info);
}
.avatar--green {
    background: #22c55e;
}
.avatar--amber {
    background: var(--color-warning);
}
.avatar--violet {
    background: #8b5cf6;
}
.avatar--pink {
    background: #ec4899;
}
.avatar--image {
    object-fit: cover;
}
/* ================================================================
   CHAT WORKSPACE — Messenger-style three-pane layout
   ================================================================ */
/* Shared Maintenance and SEO monthly detail offcanvas */
.monthly-detail-row {
    cursor: pointer;
}
.monthly-detail-row:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--color-primary) 55%, transparent);
    outline-offset: -2px;
}
.monthly-detail-row:hover td {
    background: color-mix(in srgb, var(--color-primary-light) 45%, #fff);
}
.seo-content-website-entry {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.seo-content-website-link {
    min-width: 0;
    width: auto;
    text-decoration: none;
}
.seo-content-website-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.seo-content-website-copy {
    flex: 0 0 28px;
}
.monthly-detail-offcanvas {
    position: fixed;
    inset: 0;
    z-index: 10020;
    visibility: hidden;
    pointer-events: none;
}
.monthly-detail-offcanvas__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.48);
    opacity: 0;
    cursor: default;
    backdrop-filter: blur(4px);
    transition: opacity 0.24s ease;
}
.monthly-detail-offcanvas__panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(950px, 100vw);
    height: 100dvh;
    border-top: 3px solid var(--color-primary);
    border-left: 1px solid var(--color-border);
    background: #fff;
    box-shadow: -18px 0 45px rgba(15, 23, 42, 0.18);
    outline: none;
    transform: translateX(100%);
    transition: all 0.3s;
}
.monthly-detail-offcanvas.is-open {
    visibility: visible;
    pointer-events: auto;
}
.monthly-detail-offcanvas.is-open .monthly-detail-offcanvas__overlay {
    opacity: 1;
}
.monthly-detail-offcanvas.is-open .monthly-detail-offcanvas__panel {
    transform: translateX(0);
}
.monthly-detail-offcanvas__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    padding: 14px 20px 14px 24px;
    border-bottom: 1px solid var(--color-border);
    background: #fff;
}
.monthly-detail-offcanvas__heading {
    min-width: 0;
}
.monthly-detail-offcanvas__eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.monthly-detail-offcanvas__title {
    overflow: hidden;
    margin: 0;
    color: var(--color-text-primary);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.monthly-detail-offcanvas__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}
.monthly-detail-offcanvas__full-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    background: #fff;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background-color 0.2s ease;
}
.monthly-detail-offcanvas__full-link:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.monthly-detail-offcanvas__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: var(--color-bg-base);
    color: var(--color-text-secondary);
    font-size: 17px;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}
.monthly-detail-offcanvas__close:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.monthly-detail-offcanvas__content {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: var(--color-bg-base);
}
.monthly-detail-offcanvas__loader {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.monthly-detail-offcanvas__loader i {
    color: var(--color-primary);
    font-size: 20px;
}
.monthly-detail-offcanvas__loader[hidden] {
    display: none;
}
.monthly-detail-offcanvas__frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--color-bg-base);
    opacity: 0;
    transition: opacity 0.18s ease;
}
.monthly-detail-offcanvas__frame.is-loaded {
    opacity: 1;
}
.monthly-detail-offcanvas.has-nested-offcanvas .monthly-detail-offcanvas__content {
    position: absolute;
    inset: 0;
    z-index: 10;
}
.monthly-detail-offcanvas.has-nested-offcanvas .monthly-detail-offcanvas__frame {
    background: transparent;
}
body.has-monthly-detail-open {
    overflow: hidden;
}
.monthly-embedded-detail {
    min-height: 100%;
    margin: 0;
    background: var(--color-bg-base);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
}
.monthly-embedded-detail__content {
    min-height: 100vh;
    padding: 20px;
}
.monthly-embedded-detail.has-topic-offcanvas-open {
    background: transparent;
}
.monthly-embedded-detail.has-topic-offcanvas-open .monthly-embedded-detail__content {
    padding-top: 92px;
}
.monthly-embedded-detail .maintenance-detail-page {
    width: 100%;
}
.monthly-embedded-detail .maintenance-detail-header {
    margin-bottom: 16px;
}
.monthly-embedded-detail .maintenance-rounds-card {
    top: 16px;
}
.seo-content-empty-schedule {
    display: flex;
    min-height: 360px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 32px;
    color: var(--color-text-muted);
    text-align: center;
}
.seo-content-empty-schedule__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
    border-radius: 14px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 20px;
}
.seo-content-empty-schedule h3 {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 15px;
    font-weight: 600;
}
.seo-content-empty-schedule p {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
}
body .chat-layout {
    height: calc(100dvh - var(--topbar-height) - 32px);
    min-height: 560px;
    position: relative;
    display: flex;
    gap: 16px;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 13px;
    font-weight: 400;
}
body .chat-layout .chat-pane {
    min-width: 0;
    min-height: 0;
    border: 1px solid #e6ebf1;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
/* Conversation list */
body .chat-layout .chat-sidebar {
    width: 300px;
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e6ebf1;
}
body .chat-layout .chat-sidebar.collapsed {
    display: none;
}
body .chat-layout .chat-sidebar-header {
    flex: 0 0 auto;
    padding: 18px 16px 12px;
    background: #ffffff;
    border-bottom: 1px solid #eef1f5;
}
body .chat-layout .chat-sidebar-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}
body .chat-layout .chat-search {
    height: 42px;
    margin-top: 14px;
    border-radius: 12px;
    background: #f3f5f8;
}
body .chat-layout .chat-search-input, body .chat-layout .chat-item-name, body .chat-layout .chat-item-last {
    font-size: 12px;
}
body .chat-layout .chat-item-name {
    font-weight: 600;
}
body .chat-layout .chat-item-last {
    font-weight: 400;
}
body .chat-layout .chat-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 8px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
body .chat-layout .chat-item {
    min-height: 62px;
    margin-bottom: 2px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
}
body .chat-layout .chat-item:hover {
    background: #f6f7f9;
}
body .chat-layout .chat-item.active {
    background: var(--color-primary-subtle);
    border-color: var(--color-primary-border-strong);
}
/* Active conversation */
body .chat-layout .chat-main {
    flex: 1 1 auto;
    min-width: 360px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e6ebf1;
}
body .chat-layout .chat-main-header {
    height: 60px;
    min-height: 60px;
    flex: 0 0 60px;
    padding: 0 16px;
    background: #ffffff;
    border-bottom: 1px solid #e6ebf1;
}
body .chat-layout .chat-main-header-name {
    font-size: 13px;
    font-weight: 600;
}
body .chat-layout .chat-main-header-status {
    font-size: 13px;
    font-weight: 400;
}
/* Portfolio & Pinterest publishing list */
.publishing-page-header {
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}
.publishing-page-subtitle {
    margin-top: 3px;
    font-size: 13px;
    font-weight: 400;
}
.publishing-page-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}
.publishing-toolbar-button, .publishing-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}
.publishing-toolbar-button--archive {
    border: 1px solid #dbe3ee;
    background: #fff;
    color: #475569;
}
.publishing-toolbar-button--archive:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
}
.publishing-add-button {
    box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), 0.16);
}
.publishing-filter-card {
    margin-bottom: 20px;
}
.publishing-filter-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.publishing-filter-wrap .cw-search-wrap {
    min-width: 240px;
    flex: 1 1 auto;
}
.publishing-filter-select-wrap {
    width: 190px;
    flex: 0 0 190px;
}
.publishing-filter-select-wrap .ts-wrapper {
    width: 100%;
    height: var(--filter-control-height);
    padding: 0;
    border: 0;
    border-radius: var(--filter-control-radius);
    background: transparent;
    box-shadow: none;
}
select.publishing-filter-select, .ts-wrapper.publishing-filter-select .ts-control {
    width: 100%;
    height: var(--filter-control-height);
    min-height: var(--filter-control-height);
    padding: 0 38px 0 14px;
    border: 1px solid #dbe3ee;
    border-radius: var(--filter-control-radius);
    outline: none;
    background: #fff !important;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    box-sizing: border-box;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}
select.publishing-filter-select:focus, .ts-wrapper.publishing-filter-select.focus .ts-control {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}
select.publishing-filter-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
}
.ts-wrapper.publishing-filter-select .ts-control > .item {
    display: flex;
    align-items: center;
    min-height: 46px;
    margin: 0;
    font-size: 13px;
    font-weight: 400;
}
.publishing-table-region {
    transition: opacity 0.18s ease;
}
.publishing-table-region.is-loading {
    pointer-events: none;
    opacity: 0.5;
}
.publishing-table-card {
    overflow: hidden;
    border: 1px solid #e7ecf2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.035);
}
.publishing-table-scroll {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.publishing-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
    table-layout: fixed;
    color: #0f172a;
    font-size: 13px;
    font-weight: 400;
}
.publishing-table--pinterest {
    min-width: 1040px;
}
.publishing-table th, .publishing-table td {
    text-align: left;
    vertical-align: middle;
}
.publishing-table .publishing-col--select {
    width: 48px;
    min-width: 48px;
    padding-right: 8px;
    padding-left: 14px;
    text-align: center;
}
.publishing-table th {
    height: 58px;
    padding: 0 14px;
    border-bottom: 1px solid #e7ecf2;
    background: #fbfcfe;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.publishing-table td {
    height: 40px;
    padding: 6px 12px;
    border-bottom: 1px solid #edf1f5;
    font-size: 13px;
    font-weight: 400;
}
.publishing-table tbody tr:last-child td {
    border-bottom: 0;
}
.publishing-table tbody tr {
    cursor: pointer;
    transition: background-color 0.16s ease;
}
.publishing-table tbody tr:hover {
    background: #fafbfc;
}
.publishing-table tbody tr:focus-visible {
    outline: 2px solid rgba(var(--color-primary-rgb), 0.28);
    outline-offset: -2px;
}
body.has-publishing-offcanvas {
    overflow: hidden;
}
.publishing-offcanvas {
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
    pointer-events: none;
}
.publishing-offcanvas.is-open {
    visibility: visible;
    pointer-events: auto;
}
.publishing-offcanvas__overlay {
    position: absolute;
    inset: 0;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.58);
    opacity: 0;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: opacity 0.24s ease;
}
.publishing-offcanvas.is-open .publishing-offcanvas__overlay {
    opacity: 1;
}
.publishing-offcanvas__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(920px, 100%);
    height: 100%;
    overflow-y: auto;
    border: 0;
    border-top: 3px solid var(--color-primary);
    background: #fff;
    box-shadow: -20px 0 50px rgba(15, 23, 42, 0.18);
    outline: none;
    transform: translateX(100%);
    transition: all 0.4s;
}
.publishing-offcanvas.is-open .publishing-offcanvas__panel {
    transform: translateX(0);
}
.publishing-offcanvas__header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}
.publishing-offcanvas__title {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 19px;
    font-weight: 600;
}
.publishing-offcanvas__close {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: var(--color-bg-base);
    color: var(--color-text-primary);
    font-size: 19px;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}
.publishing-offcanvas__close:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
    transform: rotate(4deg);
}
/* Publishing offcanvas content
   Shared by Portfolio Publishing and Pinterest Publishing. */
.publishing-workflow {
    padding: 24px 32px 0;
    background: #fff;
}
.publishing-workflow__timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.publishing-workflow__track {
    position: absolute;
    top: 12px;
    right: 12.5%;
    left: 12.5%;
    z-index: 1;
    height: 2px;
    background: var(--color-bg-elevated);
}
.publishing-workflow__progress {
    width: 0;
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}
.publishing-offcanvas-form {
    padding: 32px;
}
.publishing-data-section {
    margin-bottom: 24px;
    padding: 20px;
    border: 2px solid var(--color-primary-subtle);
    border-radius: 20px;
    background: var(--color-error-light);
}
.publishing-data-section__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--color-error);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.publishing-step-badge {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-error);
    color: #fff;
    font-size: 12px;
}
.publishing-fields-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}
.publishing-field-group {
    margin-bottom: 16px;
}
.publishing-field-group--spaced {
    margin-bottom: 20px;
}
.publishing-field-label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.publishing-field-label--success {
    color: #059669;
}
.publishing-field-row, .publishing-link-row {
    display: flex;
    min-width: 0;
    gap: 8px;
}
.publishing-field-row {
    align-items: flex-start;
}
.publishing-offcanvas .publishing-field-control {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 48px;
    flex: 1 1 auto;
    padding: 0 16px;
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
}
.publishing-offcanvas .publishing-field-control--textarea {
    height: 80px;
    padding: 12px 16px;
    resize: none;
}
.publishing-offcanvas .publishing-field-control--success {
    border-color: var(--color-success);
}
.publishing-offcanvas .publishing-field-control--select {
    font-weight: 600;
}
.publishing-offcanvas .ts-wrapper.publishing-field-control--select {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.publishing-offcanvas .ts-wrapper.publishing-field-control--select.single .ts-control {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 0 42px 0 16px;
    border: 1.5px solid var(--color-success) !important;
    border-radius: 12px;
    background: var(--color-white) !important;
    font-weight: 600;
}
.publishing-offcanvas .ts-wrapper.publishing-field-control--select.single.focus .ts-control {
    border-color: var(--color-success) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-success) 10%, transparent) !important;
}
.publishing-offcanvas .ts-wrapper.publishing-field-control--select.disabled .ts-control {
    cursor: not-allowed !important;
    opacity: 0.65;
}
.publishing-copy-field-button {
    display: none;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #f3f4f6;
    color: var(--color-text-muted);
    cursor: pointer;
}
.publishing-topic-card {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-bg-subtle);
}
.publishing-topic-card--primary {
    border-color: var(--color-primary-border-strong);
    background: var(--color-error-light);
}
.publishing-topic-card--secondary {
    border-color: #bfdbfe;
    background: #eff6ff;
}
.publishing-editor-wrap {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
.publishing-editor-wrap:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.publishing-editor-wrap > .ql-toolbar.ql-snow {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2px;
    min-height: 48px;
    padding: 8px 10px !important;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0 !important;
    border-bottom: 1px solid var(--color-border) !important;
    border-radius: 0;
    background: var(--color-bg-surface-soft);
    scrollbar-width: thin;
}
.publishing-editor-wrap > .ql-toolbar.ql-snow .ql-formats {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin-right: 6px;
}
.publishing-editor-wrap > .ql-toolbar.ql-snow .ql-formats:last-child {
    margin-right: 0;
}
.publishing-quill-editor.ql-container.ql-snow {
    height: auto;
    min-height: 172px;
    border: 0;
    border-radius: 0;
    background: #fff;
}
.publishing-quill-editor .ql-editor {
    min-height: 172px;
    max-height: 340px;
    padding: 14px 16px !important;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.65;
}
.publishing-quill-editor .ql-editor.ql-blank::before {
    right: 16px;
    left: 16px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-style: normal;
}
.publishing-link-section {
    margin-bottom: 24px;
    padding: 20px;
    border: 2px solid #d1fae5;
    border-radius: 16px;
    background: var(--color-success-light);
}
.publishing-link-access-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.5;
}
.publishing-link-button {
    display: flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--color-success);
    color: #fff;
    text-decoration: none;
}
.publishing-status-button {
    padding: 12px 24px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.publishing-status-button--primary {
    background: var(--color-primary);
}
.publishing-status-button--return {
    border: 1px solid var(--color-primary-subtle);
    background: #fff;
    color: var(--color-error);
}
.publishing-status-button--success {
    background: var(--color-success);
}
.publishing-status-button--warning {
    background: var(--color-warning);
}
.publishing-delete-form {
    display: none;
}
.publishing-comment {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.publishing-comment__avatar, .publishing-comment__menu {
    position: relative;
    flex: 0 0 auto;
}
.publishing-comment__avatar-image {
    display: block;
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    object-fit: cover;
}
.publishing-comment__author {
    flex: 0 0 auto;
    color: var(--color-text-primary);
    font-size: 12px;
    font-weight: 600;
}
.publishing-comment__separator {
    flex: 0 0 auto;
    color: var(--color-text-muted);
}
.publishing-comment__body {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    color: var(--color-text-secondary);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.publishing-comment__edit {
    min-width: 0;
    flex: 1 1 auto;
}
.publishing-comment__editor {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    font-size: 12px;
    outline: none;
}
.publishing-comment__edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}
.publishing-comment__edit-button {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.publishing-comment__edit-button--cancel {
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-primary);
}
.publishing-comment__edit-button--save {
    border: 0;
    background: var(--color-primary);
    color: #fff;
}
.comment-panel__item .comment-edit-mode .comment-edit-actions {
    justify-content: flex-start;
    margin-top: 0;
}
.publishing-table--portfolio .publishing-col--job {
    width: 24%;
}
.publishing-table--portfolio .publishing-col--platform {
    width: 11%;
}
.publishing-table--portfolio .publishing-col--team {
    width: 13%;
}
.publishing-table--portfolio .publishing-col--status {
    width: 14%;
}
.publishing-table--portfolio .publishing-col--progress {
    width: 14%;
}
.publishing-table--portfolio .publishing-col--updated {
    width: 12%;
}
.publishing-table--portfolio .publishing-col--actions {
    width: 150px;
}
.publishing-table--pinterest .publishing-col--job {
    width: 24%;
}
.publishing-table--pinterest .publishing-col--platform {
    width: 11%;
}
.publishing-table--pinterest .publishing-col--team {
    width: 13%;
}
.publishing-table--pinterest .publishing-col--status {
    width: 14%;
}
.publishing-table--pinterest .publishing-col--progress {
    width: 14%;
}
.publishing-table--pinterest .publishing-col--updated {
    width: 12%;
}
.publishing-table--pinterest .publishing-col--actions {
    width: 150px;
}
.publishing-job-cell {
    display: flex;
    min-width: 0;
    align-items: center;
}
.publishing-job-name {
    display: block;
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}
a.publishing-job-name:hover {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.publishing-job-name--disabled {
    color: var(--color-text-muted);
    font-weight: 400;
}
.publishing-table-muted {
    color: var(--color-text-muted-2);
}
.publishing-platform, .publishing-table-status {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 5px 12px;
    border: 1px solid transparent;
    border-radius: 90px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}
.publishing-platform--slatan {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.publishing-platform--teeneeweb {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}
.publishing-table-status.publishing-status-writer {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}
.publishing-table-status.publishing-status-reviewer {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}
.publishing-table-status.publishing-status-publisher {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #7c3aed;
}
.publishing-table-status.publishing-status-completed {
    border-color: #a7f3d0;
    background: var(--color-success-light);
    color: #047857;
}
.publishing-team {
    display: flex;
    min-height: 30px;
    align-items: center;
    padding-left: 7px;
}
.publishing-team-member {
    position: relative;
    display: inline-flex;
    margin-left: -7px;
    border: 2px solid #fff;
    border-radius: 50%;
    transition:
        transform 0.16s ease,
        z-index 0.16s ease;
}
.publishing-team-member:hover {
    z-index: 3;
    transform: translateY(-2px);
}
.publishing-team-member .avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 12px;
    font-weight: 600;
}
.publishing-progress {
    display: grid;
    grid-template-columns: minmax(64px, 1fr) 34px;
    align-items: center;
    gap: 8px;
    max-width: 150px;
}
.publishing-progress-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 3px;
}
.publishing-progress-segment {
    height: 5px;
    border-radius: 90px;
    background: #e5eaf0;
}
.publishing-progress-segment.is-active {
    background: var(--progress-scale-color, var(--color-text-muted-2));
}
.publishing-progress-value {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    text-align: right;
    white-space: nowrap;
}
.publishing-updated-at {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
}
.publishing-table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}
.publishing-action {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}
.publishing-action svg {
    width: 15px;
    height: 15px;
}
.publishing-action--manage {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.publishing-action--manage:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-border-strong);
}
.publishing-action--manage.is-complete {
    border-color: #a7f3d0;
    background: var(--color-success-light);
    color: #059669;
}
.publishing-action--external {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #059669;
}
.publishing-action--edit {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: var(--color-text-muted);
}
.publishing-action--delete {
    border-color: var(--color-primary-subtle);
    background: #fff;
    color: var(--color-primary);
}
.publishing-action--external:hover {
    background: #dcfce7;
}
.publishing-action--edit:hover {
    background: #eef2f7;
    color: #334155;
}
.publishing-action--delete:hover {
    background: var(--color-error-light);
    border-color: var(--color-primary-border-strong);
}
.publishing-pagination {
    margin-top: 16px;
}
.publishing-empty-state {
    display: flex;
    min-height: 280px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    border: 1px solid #e7ecf2;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}
.publishing-empty-icon {
    display: flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 16px;
    background: #f8fafc;
    color: var(--color-text-muted-2);
}
.publishing-empty-icon svg {
    width: 24px;
    height: 24px;
}
.publishing-empty-state h2 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 600;
}
.publishing-empty-state p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
body .chat-layout .chat-pinned-bar {
    position: relative;
    z-index: 20;
    flex: 0 0 auto;
    background: #ffffff;
    border-bottom: 1px solid #e6ebf1;
}
body .chat-layout .chat-pinned-bar[hidden], body .chat-layout .chat-pinned-panel[hidden] {
    display: none !important;
}
body .chat-layout .chat-pinned-bar-trigger {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    padding: 6px 14px;
    background: #ffffff;
    border: 0;
    color: #334155;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
body .chat-layout .chat-pinned-bar-trigger:hover {
    background: #f8fafc;
}
body .chat-layout .chat-pinned-bar-icon, body .chat-layout .chat-pinned-list-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}
body .chat-layout .chat-pinned-bar-icon {
    width: 30px;
    height: 30px;
    background: var(--color-primary-subtle);
    border-radius: 50%;
}
body .chat-layout .chat-pinned-bar-content {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 1px;
}
body .chat-layout .chat-pinned-bar-label {
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}
body .chat-layout .chat-pinned-bar-preview {
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body .chat-layout .chat-pinned-bar-count {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    background: var(--color-primary-subtle);
    border-radius: 90px;
    color: var(--color-primary-hover);
    font-size: 13px;
    font-weight: 600;
}
body .chat-layout .chat-pinned-bar-chevron {
    flex: 0 0 auto;
    color: var(--color-text-muted-2);
    transition: transform 0.2s ease;
}
body .chat-layout .chat-pinned-bar-trigger[aria-expanded="true"] .chat-pinned-bar-chevron {
    transform: rotate(180deg);
}
body .chat-layout .chat-pinned-bar.is-loading .chat-pinned-bar-trigger {
    pointer-events: none;
    opacity: 0.65;
}
body .chat-layout .chat-pinned-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    left: 12px;
    z-index: 30;
    max-height: min(360px, 52vh);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}
body .chat-layout .chat-pinned-panel-header {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 8px 14px;
    border-bottom: 1px solid #eef2f6;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
}
body .chat-layout .chat-pinned-panel-close {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--color-text-muted);
    cursor: pointer;
}
body .chat-layout .chat-pinned-panel-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}
body .chat-layout .chat-pinned-list {
    max-height: calc(min(360px, 52vh) - 45px);
    overflow-y: auto;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
body .chat-layout .chat-pinned-list-item {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    gap: 9px;
    padding: 8px;
    background: transparent;
    border: 0;
    border-radius: 9px;
    color: #334155;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}
body .chat-layout .chat-pinned-list-item:hover {
    background: #f8fafc;
}
body .chat-layout .chat-pinned-list-icon {
    width: 28px;
    height: 28px;
    background: var(--color-primary-subtle);
    border-radius: 8px;
}
body .chat-layout .chat-pinned-list-content {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
}
body .chat-layout .chat-pinned-list-name {
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body .chat-layout .chat-pinned-list-preview {
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body .chat-layout .chat-pinned-list-date {
    flex: 0 0 auto;
    color: var(--color-text-muted-2);
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
}
body .chat-layout .chat-pinned-list-arrow {
    flex: 0 0 auto;
    color: var(--color-text-muted-2);
}
body .chat-layout .chat-empty-state, body .chat-layout .chat-messages {
    min-height: 0;
    flex: 1 1 auto;
    background: #f8fafc;
}
body .chat-layout .chat-messages {
    overflow-y: auto;
    padding: 18px 20px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
body .chat-layout .message-bubble {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
}
body .chat-layout .message-bubble-wrapper.is-highlighted {
    background: var(--color-primary-subtle);
    box-shadow: 0 0 0 5px var(--color-primary-subtle);
}
/* Cancelled messages must never leave a visual tombstone in the chat. */
body .chat-layout .message-bubble-wrapper:has(.chat-message-cancelled), body .chat-layout .message-bubble-wrapper:has(.chat-deleted-message) {
    display: none !important;
}
body .chat-layout .chat-message-pin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 4px 5px;
    padding: 3px 7px;
    color: var(--color-primary-hover);
    background: var(--color-primary-subtle);
    border: 1px solid var(--color-primary-border-strong);
    border-radius: 90px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
}
body .chat-layout .msg-dropdown-menu {
    min-width: 100px;
    padding: 5px;
    border-radius: 10px;
}
body .chat-layout .msg-dropdown-item {
    display: block;
    width: 100%;
    padding: 9px 10px;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: #475569;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}
body .chat-layout .msg-dropdown-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}
body .chat-layout .msg-dropdown-item.is-danger:hover {
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
body .chat-layout .msg-dropdown-item.is-danger {
    color: var(--color-primary);
}
/* Compact composer: one line by default, scrolls after four lines. */
body .chat-layout .chat-input-area {
    min-height: 60px;
    flex: 0 0 auto;
    align-items: flex-end;
    gap: 8px;
    padding: 8px 12px;
    background: #ffffff;
    border-top: 1px solid #e6ebf1;
}
body .chat-layout .chat-textarea-wrapper, body .mini-chat-window .chat-textarea-wrapper {
    min-height: 42px;
    padding: 0 8px 0 10px;
    overflow: visible;
    background: #f1f4f8;
    border: 1px solid transparent;
    border-radius: 20px;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}
body .chat-layout .chat-textarea-wrapper:focus-within, body .mini-chat-window .chat-textarea-wrapper:focus-within {
    background: #ffffff;
    border-color: var(--color-primary-border-strong);
}
body .chat-layout .chat-textarea-wrapper #filePreviewContainer {
    width: 100%;
}
body #chatInputEditor.ql-container.ql-bubble, body .mini-chat-composer__editor.ql-container.ql-bubble {
    min-height: 40px !important;
    max-height: 118px !important;
    border: 0 !important;
    font-family: inherit;
    font-size: 13px !important;
    font-weight: 400;
}
body .ql-bubble .ql-editor a {
    text-decoration: unset;
}
body .message-bubble a, body #chatInputEditor .ql-editor a {
    font-weight: unset;
}
body #chatInputEditor .ql-editor, body .mini-chat-composer__editor .ql-editor {
    min-height: 40px !important;
    max-height: 112px !important;
    padding: 10px 38px 10px 2px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    font-size: 13px !important;
    font-weight: 400;
    line-height: 1.55;
    font-family: sans-serif;
}
body .mini-chat-composer__editor .ql-editor {
    overflow-wrap: anywhere !important;
    word-break: break-word;
}
body #chatInputEditor .ql-editor.ql-blank::before, body .mini-chat-composer__editor .ql-editor.ql-blank::before {
    top: 10px;
    right: 0;
    left: 2px;
    color: var(--color-text-muted-2);
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
}
body .chat-layout .btn-icon, body .chat-layout .btn-attach, body .chat-layout .btn-send {
    flex: 0 0 auto;
}
body .chat-layout .btn-icon, body .chat-layout .btn-attach {
    width: 36px;
    height: 36px;
}
body .chat-layout .chat-reply-cancel {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--color-text-muted-2);
}
body .chat-layout .chat-reply-cancel:hover {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
body .chat-layout .btn-send {
    width: 40px;
    height: 40px;
    margin-bottom: 1px;
    border-radius: 8px;
    background: var(--color-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(239, 27, 36, 0.2) !important;
}
body .chat-layout .btn-send svg {
    width: 18px;
    height: auto;
}
body .chat-layout .btn-send:hover {
    background: var(--color-primary-hover);
}
/* Conversation details */
body .chat-layout .chat-right {
    position: relative;
    width: 320px;
    flex: 0 0 320px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e6ebf1;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
body .chat-layout .chat-right.collapsed {
    display: none;
}
body .chat-layout .chat-right.is-empty > * {
    visibility: hidden;
}
body .chat-layout .chat-right.is-empty::before {
    content: "เลือกการสนทนาเพื่อดูข้อมูล";
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--color-text-muted-2);
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}
body .chat-layout .chat-info-header {
    padding: 24px 18px 20px;
    border-bottom: 1px solid #eef1f5;
}
body .chat-layout .chat-info-name {
    font-size: 17px;
    font-weight: 600;
}
body .chat-layout .chat-info-role, body .chat-layout .chat-info-action-label, body .chat-layout .chat-media-tab, body .chat-layout .chat-accordion-header {
    font-size: 13px;
    font-weight: 400;
}
body .chat-layout .chat-accordion-header {
    min-height: 50px;
    padding: 14px 16px;
    font-weight: 600;
}
body .chat-layout .chat-media-tabs {
    height: 40px;
    margin: 10px 14px;
    padding: 3px;
    border-radius: 10px;
}
body .chat-layout .chat-media-tab {
    min-height: 34px;
    border-radius: 8px;
}
/* Publishing modal comment composer */
.publishing-comment-composer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 4px;
    border: 1px solid #dfe7ee;
    border-radius: 14px;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}
.publishing-comment-composer:focus-within {
    z-index: 30;
    border-color: var(--color-primary-border-strong);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.08);
}
.publishing-comment-editor.ql-container.ql-snow {
    flex: 1 1 auto;
    overflow: visible;
    border: 0 !important;
    background: transparent;
    font-family: inherit;
    font-size: 13px !important;
    font-weight: 400;
}
.publishing-comment-editor .ql-mention-list-container {
    width: min(320px, calc(100vw - 64px));
    max-width: 100%;
}
.publishing-comment-editor .ql-editor.ql-blank::before {
    right: 12px;
    left: 12px;
    font-size: 13px;
    font-style: normal;
}
.publishing-comment-submit {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    margin: 2px;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        transform 0.18s ease;
}
.publishing-comment-submit:hover {
    background: var(--color-primary-hover);
}
.publishing-comment-submit svg {
    width: 17px;
    height: 17px;
}
.publishing-modal-footer {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e7ecf2;
}
.publishing-modal-workflow-actions, .publishing-modal-footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.publishing-modal-footer-actions {
    justify-content: flex-end;
    margin-left: auto;
}
.publishing-modal-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid #dfe7ee;
    border-radius: 11px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}
.publishing-modal-button--secondary {
    background: #fff;
    color: #334155;
}
.publishing-modal-button--close {
    background: #f1f5f9;
    color: #0f172a;
}
.publishing-modal-button:hover {
    border-color: #cbd5e1;
    background: #e9eef5;
}
/* Publishing create & edit forms */
.publishing-form-page {
    width: 100%;
}
.publishing-form-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.publishing-form-eyebrow {
    margin: 0 0 3px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.publishing-form-subtitle {
    margin: 4px 0 0;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.publishing-form-card {
    width: 100%;
    padding: 26px;
    border: 1px solid #e7ecf2;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.035);
}
.publishing-form-errors {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid var(--color-primary-border-strong);
    border-radius: 12px;
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
    font-size: 13px;
    font-weight: 400;
}
.publishing-form-errors p {
    margin: 0 0 5px;
    font-weight: 600;
}
.publishing-form-errors ul {
    margin: 0;
    padding-left: 18px;
}
.publishing-form-section + .publishing-form-section {
    margin-top: 18px;
}
.publishing-form-section--team {
    padding: 20px;
    border: 1px solid #e7ecf2;
    border-radius: 16px;
    background: #f8fafc;
}
.publishing-form-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.publishing-form-section-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.publishing-form-section-icon svg {
    width: 17px;
    height: 17px;
}
.publishing-form-section-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}
.publishing-form-section-heading p {
    margin: 1px 0 0;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.publishing-form-primary-grid, .publishing-role-grid {
    display: grid;
    gap: 14px;
}
.publishing-form-primary-grid, .publishing-role-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.publishing-role-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.publishing-form-field {
    min-width: 0;
}
.publishing-form-field > label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}
.publishing-form-field > label > span {
    color: var(--color-primary);
}
select.publishing-form-select, .ts-wrapper.publishing-form-select .ts-control {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0 38px 0 14px;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    outline: none;
    background: #fff !important;
    color: #0f172a;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    box-sizing: border-box;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}
select.publishing-form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
}
.ts-wrapper.publishing-form-select {
    width: 100%;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
select.publishing-form-select:focus, .ts-wrapper.publishing-form-select.focus .ts-control {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.09);
}
.ts-wrapper.publishing-form-select .ts-control > .item {
    display: flex;
    min-height: 46px;
    align-items: center;
    margin: 0;
    font-size: 13px;
    font-weight: 400;
}
.publishing-member-select {
    position: relative;
    user-select: none;
}
.publishing-member-trigger {
    display: flex;
    width: 100%;
    height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 13px;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}
.publishing-member-trigger:hover, .publishing-member-trigger:focus-visible {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.08);
}
.publishing-member-trigger > svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: var(--color-text-muted);
}
.publishing-member-selected {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}
.publishing-member-selected > span:last-child {
    overflow: hidden;
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.publishing-member-placeholder {
    color: var(--color-text-muted-2);
}
.publishing-member-options {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 120;
    display: none;
    max-height: 240px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #dfe7ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}
.publishing-member-options.is-open {
    display: block;
    animation: publishingDropdownIn 0.16s ease-out;
}
.publishing-member-option {
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    gap: 9px;
    padding: 6px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
}
.publishing-member-option:hover {
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.publishing-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e7ecf2;
}
.publishing-form-button {
    display: inline-flex;
    min-width: 132px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}
.publishing-form-button svg {
    width: 16px;
    height: 16px;
}
.publishing-form-button--secondary {
    border-color: #dbe3ee;
    background: #fff;
    color: #475569;
}
.publishing-form-button--secondary:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
}
.publishing-form-button--primary {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(var(--color-primary-rgb), 0.17);
}
.publishing-form-button--primary:hover {
    border-color: var(--color-primary-hover);
    background: var(--color-primary-hover);
}
@keyframes publishingDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Tricks & Knowledge list */
/* Departments */
.departments-page-header {
    margin-bottom: 24px;
}
.departments-page-header__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}
.departments-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 400;
}
.departments-breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
}
.departments-breadcrumb a:hover {
    color: var(--color-primary);
}
.departments-breadcrumb span {
    color: var(--color-text-primary);
}
.departments-page-title {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
}
.departments-add-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
}
.departments-table-card {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.departments-table-scroll {
    overflow-x: auto;
}
.departments-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}
.departments-table th {
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-base);
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}
.departments-table th:first-child, .departments-table th:last-child {
    padding-right: 24px;
    padding-left: 24px;
}
.departments-table__id-column {
    width: 100px;
}
.departments-table .departments-table__members-column {
    width: 150px;
    text-align: center;
}
.departments-table .departments-table__actions-column {
    width: 150px;
    text-align: right;
}
.departments-table__row {
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.2s ease;
}
.departments-table__row:last-child {
    border-bottom: 0;
}
.departments-table__row:hover {
    background: var(--color-bg-base);
}
.departments-table td {
    white-space: nowrap;
}
.departments-table__id-cell, .departments-table__actions-cell {
    padding-right: 24px !important;
    padding-left: 24px !important;
}
.departments-table__id-cell {
    color: var(--color-text-muted);
    font-size: 12px;
}
.departments-table__name {
    color: var(--color-text-primary);
    font-size: 12px;
    font-weight: 600;
}
.departments-table__name-en {
    color: var(--color-text-secondary);
    font-size: 12px;
}
.departments-table__members-cell {
    text-align: center;
}
.departments-member-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 100px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 500;
}
.departments-table__actions-cell {
    text-align: right;
}
.departments-delete-form {
    margin: 0;
}
.department-modal {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: flex;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition:
        visibility 0s linear 0.2s,
        opacity 0.2s ease;
}
.department-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
}
.department-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    cursor: pointer;
}
.department-modal__dialog {
    position: relative;
    width: 450px;
    max-width: 90%;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.2s ease;
}
.department-modal.is-open .department-modal__dialog {
    transform: translateY(0) scale(1);
}
.department-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
}
.department-modal__header h2 {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 18px;
    font-weight: 600;
}
.department-modal__close {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 16px;
    cursor: pointer;
}
.department-modal__close:hover {
    color: var(--color-primary);
}
.department-modal__body {
    display: flex;
    padding: 24px;
    flex-direction: column;
    gap: 16px;
}
.department-modal__field label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-secondary);
    font-size: 12px;
    font-weight: 600;
}
.department-modal__input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg-base);
    font-size: 12px;
}
.department-modal__input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
    outline: none;
}
.department-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-base);
}
.tricks-list-page {
    width: 100%;
}
.tricks-page-header {
    margin-bottom: 18px;
}
.tricks-page-subtitle {
    margin-top: 3px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.tricks-add-button {
    min-width: 150px;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}
.tricks-add-button i {
    font-size: 16px;
}
.tricks-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    grid-gap: 12px;
    margin-bottom: 12px;
    padding: 2px 2px 5px;
    scrollbar-width: thin;
}
.tricks-tab {
    display: inline-flex;
    justify-content: center;
    min-height: 48px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #dfe7ee;
    border-radius: 10px;
    background: #fff;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}
.tricks-tab i {
    width: 14px;
    color: var(--color-text-muted-2);
    font-size: 14px;
    text-align: center;
}
.tricks-tab:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.tricks-tab.is-active {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    box-shadow: 0 2px 8px rgba(var(--color-primary-rgb), 0.06);
    color: var(--color-primary-hover);
    font-weight: 600;
}
.tricks-tab.is-active i {
    color: var(--color-primary);
}
.tricks-tab--trash.is-active {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #334155;
}
.tricks-tab--trash.is-active i {
    color: #475569;
}
.tricks-tab-count {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 90px;
    background: #f1f5f9;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
}
.tricks-tab.is-active .tricks-tab-count {
    background: #fff;
    color: var(--color-primary-hover);
}
.tricks-filter-card {
    margin-bottom: 24px;
    padding: 18px 20px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}
.tricks-filter-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 14px;
    align-items: center;
}
.tricks-search-wrap {
    width: 100%;
}
.tricks-search-icon i {
    color: var(--color-text-muted);
    font-size: 19px;
}
.tricks-filter-select-wrap {
    width: 230px;
}
select.tricks-filter-select, .ts-wrapper.tricks-filter-select .ts-control {
    width: 100%;
    height: var(--filter-control-height);
    min-height: var(--filter-control-height);
    padding: 0 38px 0 14px;
    border: 1px solid #dbe3ee;
    border-radius: var(--filter-control-radius);
    background: #fff !important;
    color: #1e293b;
    font-size: 13px;
    font-weight: 400;
    box-shadow: none;
}
.ts-wrapper.tricks-filter-select {
    width: 100%;
    height: var(--filter-control-height);
    padding: 0;
    border: 0;
    background: transparent;
}
.ts-wrapper.tricks-filter-select.focus .ts-control, select.tricks-filter-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.08);
}
.tricks-table-region {
    position: relative;
    min-height: 120px;
    transition: opacity 0.18s ease;
}
.tricks-table-region.is-loading {
    pointer-events: none;
    opacity: 0.5;
}
.tricks-table-card {
    overflow: hidden;
    border: 1px solid #edf1f5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}
.tricks-table-scroll {
    width: 100%;
    overflow-x: auto;
}
.tricks-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
    table-layout: fixed;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
}
.tricks-table th, .tricks-table td {
    height: 58px;
    padding: 8px 12px;
    border-bottom: 1px solid #edf1f5;
    text-align: left;
    vertical-align: middle;
}
.tricks-table th {
    height: 60px;
    background: #fbfcfe;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.tricks-table tbody tr:last-child td {
    border-bottom: 0;
}
.tricks-table tbody tr {
    transition:
        background-color 0.16s ease,
        opacity 0.18s ease,
        transform 0.18s ease;
}
.tricks-table tbody tr[data-monthly-detail-row], .tricks-grid-card[data-monthly-detail-row] {
    cursor: pointer;
}
.tricks-table tbody tr[data-monthly-detail-row]:focus-visible, .tricks-grid-card[data-monthly-detail-row]:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}
.tricks-table tbody tr:hover {
    background: var(--color-primary-subtle);
}
.tricks-table tbody tr.is-trash {
    background: #fafafa;
    color: var(--color-text-muted);
}
.tricks-table tbody tr.is-removing {
    opacity: 0;
    transform: translateX(8px);
}
.tricks-col--title {
    width: 22%;
}
.tricks-col--type {
    width: 9%;
}
.tricks-col--visibility {
    width: 11%;
}
.tricks-col--tags {
    width: 13%;
}
.tricks-col--owner {
    width: 13%;
}
.tricks-col--views {
    width: 7%;
}
.tricks-col--updated {
    width: 11%;
}
.tricks-col--actions {
    width: 14%;
    text-align: right !important;
}
.tricks-title-cell {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}
.tricks-title-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 12px;
}
.tricks-title-icon--general {
    background: var(--color-success-light);
    color: #059669;
}
.tricks-title-icon--code {
    background: #eef2ff;
    color: #4f46e5;
}
.tricks-title-content {
    min-width: 0;
}
.tricks-title-link {
    display: block;
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}
a.tricks-title-link:hover {
    color: var(--color-primary);
}
.tricks-title-link.is-disabled {
    color: var(--color-text-muted);
}
.tricks-type-badge, .tricks-visibility-badge, .tricks-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 90px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    padding: 5px 10px;
}
.tricks-type-badge--general {
    border-color: #a7f3d0;
    background: var(--color-success-light);
    color: #047857;
}
.tricks-type-badge--code {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #4338ca;
}
.tricks-visibility-badge {
    gap: 6px;
}
.tricks-visibility-badge i {
    font-size: 11px;
}
.tricks-visibility-badge--public {
    border-color: #bae6fd;
    background: #f0f9ff;
    color: #0369a1;
}
.tricks-visibility-badge--private {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.tricks-tags {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    overflow: hidden;
}
.tricks-tag {
    max-width: 90px;
    overflow: hidden;
    padding: 0 8px;
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #475569;
    text-overflow: ellipsis;
}
.tricks-tag--more {
    flex: 0 0 auto;
    background: #f1f5f9;
    color: var(--color-text-muted);
}
.tricks-muted {
    color: var(--color-text-muted-2);
    font-size: 13px;
    font-weight: 400;
}
.tricks-owner {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}
.tricks-owner > span:last-child {
    overflow: hidden;
    color: #334155;
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tricks-views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    white-space: nowrap;
}
.tricks-views i {
    font-size: 13px;
}
.tricks-updated-at {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
}
.tricks-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}
.tricks-action {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #dfe7ee;
    border-radius: 9px;
    background: #fff;
    color: var(--color-text-muted);
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease,
        opacity 0.16s ease;
}
.tricks-action:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
}
.tricks-action--favorite.is-active {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.tricks-action--edit:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}
.tricks-action--restore:hover {
    border-color: #a7f3d0;
    background: var(--color-success-light);
    color: #059669;
}
.tricks-action--delete:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.tricks-action.is-loading {
    pointer-events: none;
    opacity: 0.45;
}
.tricks-pagination .pagination-container {
    margin-top: 18px;
}
.tricks-empty-state {
    display: flex;
    min-height: 320px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px 20px;
    border: 1px dashed #dbe3ee;
    border-radius: 18px;
    background: #fff;
    color: var(--color-text-muted);
    text-align: center;
}
.tricks-empty-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 16px;
    background: #f1f5f9;
    color: var(--color-text-muted-2);
    font-size: 20px;
}
.tricks-empty-state h2 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 17px !important;
    font-weight: 600;
}
.tricks-empty-state p {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
}
.tricks-empty-action {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
    padding: 0 15px;
    border-radius: 10px;
    background: var(--color-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
/* Tricks view switcher and grid layout */
.tricks-filter-wrap {
    grid-template-columns: minmax(0, 1fr) 230px auto;
}
.tricks-view-switcher {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 48px;
    padding: 4px;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #f8fafc;
}
.tricks-view-button {
    display: inline-flex;
    min-width: 74px;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--color-text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition:
        background-color 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease;
}
.tricks-view-button:hover {
    color: #334155;
}
.tricks-view-button.is-active {
    background: #fff;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.08);
    color: var(--color-primary-hover);
    font-weight: 600;
}
.tricks-table-region[data-view="list"] [data-tricks-layout="grid"], .tricks-table-region[data-view="grid"] [data-tricks-layout="list"] {
    display: none;
}
.tricks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.tricks-grid-card {
    position: relative;
    display: flex;
    overflow: hidden;
    min-width: 0;
    min-height: 220px;
    border: 1px solid #e6ebf1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.035);
    flex-direction: column;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease,
        opacity 0.18s ease;
}
.tricks-grid-card:hover {
    border-color: #d5dde7;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.075);
    transform: translateY(-2px);
}
.tricks-grid-card.is-trash {
    background: #fafafa;
}
.tricks-grid-card.is-removing {
    opacity: 0;
    transform: translateY(6px);
}
.tricks-grid-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 15px 0;
}
/* Keep cached/legacy card markup aligned with the current footer layout. */
.tricks-grid-card__header > .tricks-grid-card__icon {
    position: absolute;
    bottom: 6px;
    left: 12px;
    z-index: 1;
}
.tricks-grid-card:has(.tricks-grid-card__header > .tricks-grid-card__icon) .tricks-grid-card__footer {
    padding-left: 54px;
}
.tricks-grid-card__icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 12px;
}
.tricks-grid-card__badges {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: wrap;
}
.tricks-grid-card__body {
    display: flex;
    min-width: 0;
    padding: 10px 15px;
    flex: 1 1 auto;
    flex-direction: column;
}
.tricks-grid-card__title {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
    white-space: normal;
}
.tricks-grid-card__title a {
    color: inherit;
    text-decoration: none;
}
.tricks-grid-card__title a:hover {
    color: var(--color-primary-hover);
}
.tricks-grid-card__tags {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    overflow: hidden;
}
.tricks-grid-card__meta {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 15px;
    border-top: 1px solid #edf1f5;
    color: var(--color-text-muted);
}
.tricks-grid-card__meta .tricks-owner {
    overflow: hidden;
}
.tricks-grid-card__stats {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    white-space: nowrap;
}
.tricks-grid-card__footer {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 15px;
    border-top: 1px solid #edf1f5;
    background: #fbfcfe;
}
.tricks-grid-card__footer-primary {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}
.tricks-grid-card__open {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.tricks-grid-card__open:hover {
    color: var(--color-primary-hover);
}
.tricks-grid-card__trash-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    font-size: 13px;
}
/* Trick form selectors and rich-text note editor */
.trick-form-page {
    width: 100%;
    padding: 20px 0;
}
.trick-form-header {
    margin-bottom: 24px;
}
.trick-form-heading {
    min-width: 0;
}
.trick-form-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.16s ease;
}
.trick-form-back-link:hover {
    color: var(--color-primary);
}
.trick-form-title {
    margin: 0 0 4px;
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 600;
}
.trick-form-description {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.trick-form {
    width: 100%;
}
.trick-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    align-items: start;
    gap: 24px;
}
.trick-form-main, .trick-form-sidebar {
    min-width: 0;
}
.trick-form-card, .trick-form-actions-card {
    margin: 0;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.025);
}
.trick-form-card--note, .trick-form-actions-card {
    margin-top: 24px;
}
.trick-form-card-title {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-primary);
    font-size: 17px !important;
    font-weight: 600;
}
.trick-form-field {
    margin-bottom: 24px;
}
.trick-form-field--flush, .trick-form-field--tags {
    margin-bottom: 0;
}
.trick-form-field--settings {
    margin-top: 16px;
}
.trick-form-field--tags {
    margin-top: 24px;
}
.trick-form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.trick-form-control {
    width: 100%;
    min-height: 48px;
    padding: 11px 15px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    outline: none;
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    box-sizing: border-box;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        box-shadow 0.16s ease;
}
.trick-form-control::placeholder {
    color: var(--color-text-muted-2);
}
.trick-form-control:focus {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.trick-form-control--textarea {
    min-height: 190px;
    resize: vertical;
    line-height: 1.65;
}
.trick-form-help {
    display: block;
    margin-top: 7px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.trick-form-actions-card {
    display: grid;
    gap: 8px;
}
.trick-form-submit, .trick-form-cancel {
    display: inline-flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 5px 20px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}
.trick-form-submit {
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 5px 14px color-mix(in srgb, var(--color-primary) 16%, transparent);
}
.trick-form-submit:hover {
    border-color: var(--color-primary-hover);
    background: var(--color-primary-hover);
    box-shadow: 0 7px 18px color-mix(in srgb, var(--color-primary) 22%, transparent);
}
.trick-form-cancel {
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-text-secondary);
}
.trick-form-cancel:hover {
    border-color: #cbd5e1;
    background: var(--color-bg-base);
    color: var(--color-text-primary);
}
.trick-form-alert {
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 400;
}
.trick-form-alert--danger {
    border: 1px solid var(--color-primary-border-strong);
    background: var(--color-error-light);
    color: var(--color-primary-hover);
}
.trick-form-error-list {
    margin: 8px 0 0;
    padding-left: 18px;
}
.trick-visibility-selector {
    display: grid;
    gap: 8px;
}
.trick-visibility-option {
    position: relative;
    display: block;
    margin: 0;
}
.trick-visibility-option > input {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}
.trick-visibility-card {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease;
}
.trick-visibility-card:hover {
    border-color: #cbd5e1;
    background: var(--color-bg-base);
}
.trick-visibility-option > input:checked + .trick-visibility-card {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 3.5%, transparent);
    color: var(--color-primary);
}
.trick-visibility-option > input:focus-visible + .trick-visibility-card {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, transparent);
}
.trick-type-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
}
.trick-type-option {
    position: relative;
    display: block;
    min-width: 0;
    margin: 0;
}
.trick-type-option > input {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}
.trick-type-card {
    display: flex;
    width: 100%;
    min-height: 92px;
    height: 100%;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-width: 1px;
    border-style: solid;
    border-color: var(--color-border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        box-shadow 0.16s ease;
}
.trick-type-card:hover {
    border-color: #cbd5e1;
    background: var(--color-bg-base);
}
.trick-type-option > input:checked + .trick-type-card {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 3.5%, transparent);
}
.trick-type-card .trick-type-card__icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 12px;
    font-size: 20px;
}
.trick-type-card__icon--general {
    background: var(--color-success-light);
    color: #059669;
}
.trick-type-card__icon--code {
    background: #eef2ff;
    color: #4f46e5;
}
.trick-type-card__content {
    min-width: 0;
}
.trick-type-card__content h4 {
    margin: 0 0 4px;
    color: var(--color-text-primary);
    font-size: 16px !important;
    font-weight: 600;
}
.trick-type-card__content p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}
.trick-type-option > input:focus-visible + .trick-type-card {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, transparent);
}
.trick-language-selector {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 8px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}
.trick-code-editor-empty {
    padding: 24px 12px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}
.trick-code-editor {
    min-width: 0;
}
.trick-form-page .editor-box {
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
}
.trick-form-page .editor-box-header {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    border-bottom: 1px solid var(--color-border);
    background: #f8fafc;
    font-size: 13px;
    font-weight: 600;
}
.trick-form-page .editor-container {
    width: 100%;
    height: 250px;
}
.trick-language-selector .trick-language-option {
    --language-accent: #475569;
    --language-soft: #f8fafc;
    position: relative;
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.trick-language-option__input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.trick-language-option__surface {
    display: grid;
    width: 100%;
    min-height: 54px;
    grid-template-columns: 30px minmax(0, 1fr) 17px;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    box-sizing: border-box;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}
.trick-language-option__icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--language-soft);
    color: var(--language-accent);
    font-size: 18px;
}
.trick-language-option__name {
    overflow: hidden;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.trick-language-option__check {
    position: relative;
    display: inline-flex;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        box-shadow 0.16s ease;
}
.trick-language-option__check::after {
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    content: "";
    transform: translateY(-1px) rotate(45deg) scale(0);
    transition: transform 0.14s ease;
}
.trick-language-option:hover .trick-language-option__surface {
    border-color: var(--language-accent);
    background: var(--language-soft);
}
.trick-language-option__input:focus-visible + .trick-language-option__surface {
    border-color: var(--language-accent);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}
.trick-language-option__input:checked + .trick-language-option__surface {
    border-color: var(--language-accent);
    background: var(--language-soft);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}
.trick-language-option__input:checked + .trick-language-option__surface .trick-language-option__check {
    border-color: var(--language-accent);
    background: var(--language-accent);
}
.trick-language-option__input:checked + .trick-language-option__surface .trick-language-option__check::after {
    transform: translateY(-1px) rotate(45deg) scale(1);
}
.trick-language-option__input:checked + .trick-language-option__surface .trick-language-option__name {
    color: var(--language-accent);
}
.trick-language-option--css {
    --language-accent: #2563eb;
    --language-soft: #eff6ff;
}
.trick-language-option--js {
    --language-accent: #a16207;
    --language-soft: #fefce8;
}
.trick-language-option--php {
    --language-accent: #6d5bd0;
    --language-soft: #f5f3ff;
}
.trick-language-option--html {
    --language-accent: #ea580c;
    --language-soft: #fff7ed;
}
.trick-note-editor {
    min-height: 140px;
    background: #fff;
}
.trick-note-editor.ql-container.ql-snow {
    min-height: 140px;
    border: 1px solid #dbe3ee;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    font-family: inherit;
    font-size: 13px;
}
.trick-note-editor .ql-editor {
    min-height: 140px;
    padding: 13px 15px;
    color: #1e293b;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
}
.trick-note-editor .ql-editor.ql-blank::before {
    right: 15px;
    left: 15px;
    color: var(--color-text-muted-2);
    font-size: 13px;
    font-style: normal;
}
.trick-form-page .ql-toolbar.ql-snow {
    border: 1px solid #dbe3ee;
    border-radius: 12px 12px 0 0;
    background: #f8fafc;
}
.trick-form-page .ql-toolbar .ql-formats {
    margin-right: 10px;
}
.trick-note-editor-help {
    margin: 7px 0 0;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
/* Trick detail page */
.trick-detail-page {
    width: 100%;
}
.trick-detail-page-header {
    margin-bottom: 16px;
}
.trick-detail-actions {
    flex-wrap: wrap;
}
.trick-detail-delete-form {
    display: inline-flex;
    margin: 0;
}
.trick-favorite-button.is-active {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.trick-favorite-button.is-loading {
    opacity: 0.55;
}
.trick-detail-hero {
    margin-bottom: 16px;
    padding: 22px 24px;
    border: 1px solid #e6ebf1;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff 0%, #fff 72%, var(--color-primary-subtle) 100%);
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.035);
}
.trick-detail-hero__badges {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.trick-detail-hero__badges .tricks-type-badge, .trick-detail-hero__badges .tricks-visibility-badge {
    gap: 6px;
    min-height: 27px;
    padding: 0 10px;
}
.trick-detail-title {
    margin: 0;
    color: #0f172a;
    font-size: 20px !important;
    font-weight: 600;
    line-height: 1.35;
}
.trick-detail-meta {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 15px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #edf1f5;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}
.trick-detail-author {
    display: flex;
    align-items: center;
    gap: 9px;
}
.trick-detail-author > div:last-child {
    display: flex;
    flex-direction: column;
}
.trick-detail-meta__label {
    color: var(--color-text-muted-2);
    font-size: 13px;
}
.trick-detail-meta__value {
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
}
.trick-detail-meta__separator {
    width: 1px;
    height: 28px;
    background: #e2e8f0;
}
.trick-detail-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    white-space: nowrap;
}
.trick-detail-meta__item i {
    color: var(--color-text-muted-2);
}
.trick-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 16px;
}
.trick-detail-content-card, .trick-detail-side-card {
    border: 1px solid #e6ebf1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}
.trick-detail-content-card {
    overflow: hidden;
    min-width: 0;
    min-height: 380px;
}
.trick-detail-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #edf1f5;
    background: #fbfcfe;
}
.trick-detail-section-kicker {
    display: block;
    margin-bottom: 2px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
}
.trick-detail-section-header h2 {
    margin: 0;
    color: #1e293b;
    font-size: 18px !important;
    font-weight: 600;
}
.trick-detail-section-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.trick-detail-prose {
    padding: 22px;
    color: #263244;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.trick-code-toolbar {
    display: flex;
    min-height: 52px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px 0;
    border-bottom: 1px solid #2b3240;
    background: #171a21;
}
.trick-code-tabs {
    display: flex;
    min-width: 0;
    align-items: flex-end;
    gap: 3px;
    overflow-x: auto;
}
.trick-code-tab {
    display: inline-flex;
    height: 43px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #98a2b3;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}
.trick-code-tab:hover {
    color: #fff;
}
.trick-code-tab.is-active {
    border-bottom-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
}
.trick-language-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-muted-2);
}
.trick-language-dot--css {
    background: var(--color-info);
}
.trick-language-dot--js {
    background: #facc15;
}
.trick-language-dot--php {
    background: #818cf8;
}
.trick-language-dot--html {
    background: #f97316;
}
.trick-copy-code-button {
    display: inline-flex;
    height: 34px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    padding: 0 11px;
    border: 1px solid #3b4352;
    border-radius: 8px;
    background: #222630;
    color: #cbd5e1;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}
.trick-copy-code-button:hover, .trick-copy-code-button.is-success {
    border-color: #4ade80;
    color: #86efac;
}
.trick-code-empty-label {
    display: inline-flex;
    height: 43px;
    align-items: center;
    color: var(--color-text-muted-2);
    font-size: 13px;
}
.trick-code-panel {
    display: none;
    min-width: 0;
}
.trick-code-panels {
    min-width: 0;
    background: #1e1e1e;
}
.trick-code-panel.is-active {
    display: block;
}
.trick-code-panel pre[class*="language-"] {
    max-height: 650px;
    margin: 0 !important;
    padding: 20px 20px 20px 3.8em !important;
    overflow: auto !important;
    border-radius: 0 !important;
    background: #1e1e1e !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
    white-space: pre !important;
}
.trick-code-panel pre[class*="language-"] code {
    font-family: Consolas, Monaco, "Courier New", monospace !important;
    font-size: 13px !important;
    white-space: pre !important;
    word-break: normal !important;
}
.trick-code-panel .token.comment, .trick-code-panel .token.prolog, .trick-code-panel .token.doctype, .trick-code-panel .token.cdata {
    color: #6a9955 !important;
}
.trick-code-panel .token.punctuation, .trick-code-panel .token.operator {
    color: #d4d4d4 !important;
}
.trick-code-panel .token.namespace {
    opacity: 0.7 !important;
}
.trick-code-panel .token.tag, .trick-code-panel .token.keyword, .trick-code-panel .token.selector {
    color: #569cd6 !important;
}
.trick-code-panel .token.property, .trick-code-panel .token.variable, .trick-code-panel .token.attr-name, .trick-code-panel .token.constant, .trick-code-panel .token.symbol, .trick-code-panel .token.deleted {
    color: #9cdcfe !important;
}
.trick-code-panel .token.string, .trick-code-panel .token.char, .trick-code-panel .token.attr-value {
    color: #ce9178 !important;
}
.trick-code-panel .token.boolean, .trick-code-panel .token.number {
    color: #b5cea8 !important;
}
.trick-code-panel .token.function, .trick-code-panel .token.class-name {
    color: #dcdcaa !important;
}
.trick-code-panel .token.keyword.control-flow, .trick-code-panel .token.keyword.module {
    color: #c586c0 !important;
}
.trick-code-panel .token.regex, .trick-code-panel .token.important {
    color: var(--color-primary-hover) !important;
}
.trick-detail-empty-content {
    display: flex;
    min-height: 320px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: var(--color-text-muted-2);
    font-size: 13px;
}
.trick-detail-empty-content i {
    font-size: 25px;
}
.trick-detail-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 18px;
    padding: 14px;
    border: 1px solid #fde68a;
    border-radius: 12px;
    background: #fffbeb;
    color: #78350f;
}
.trick-detail-note__icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fef3c7;
    color: #d97706;
}
.trick-detail-note h2 {
    margin: 0 0 3px;
    font-size: 14px !important;
    font-weight: 600;
}
.trick-detail-note p {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
}
.trick-detail-note__content {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
}
.trick-detail-note__content > *:first-child {
    margin-top: 0;
}
.trick-detail-note__content > *:last-child {
    margin-bottom: 0;
}
.trick-detail-note__content ul, .trick-detail-note__content ol {
    margin: 6px 0;
    padding-left: 20px;
}
.trick-detail-note__content blockquote {
    margin: 8px 0;
    padding-left: 10px;
    border-left: 3px solid var(--color-warning);
}
.trick-detail-note__content pre {
    overflow-x: auto;
    margin: 8px 0;
    padding: 10px;
    border-radius: 8px;
    background: #292524;
    color: #fef3c7;
    white-space: pre;
}
.trick-detail-sidebar {
    position: sticky;
    top: calc(var(--topbar-height) + 16px);
}
.trick-detail-side-card {
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: 14px;
}
.trick-detail-side-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 14px;
    border-bottom: 1px solid #edf1f5;
    background: #fbfcfe;
    color: #475569;
}
.trick-detail-side-card__header i {
    color: var(--color-text-muted-2);
}
.trick-detail-side-card__header h2 {
    margin: 0;
    font-size: 14px !important;
    font-weight: 600;
}
.trick-detail-side-card__body {
    padding: 14px;
}
.trick-detail-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.trick-detail-tag {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 0 9px;
    border: 1px solid #e2e8f0;
    border-radius: 90px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 400;
}
.trick-detail-muted {
    color: var(--color-text-muted-2);
    font-size: 13px;
}
.trick-detail-info-list {
    margin: 0;
    padding: 6px 14px;
}
.trick-detail-info-list > div {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #edf1f5;
}
.trick-detail-info-list > div:last-child {
    border-bottom: 0;
}
.trick-detail-info-list dt, .trick-detail-info-list dd {
    margin: 0;
    font-size: 13px;
}
.trick-detail-info-list dt {
    color: var(--color-text-muted);
    font-weight: 400;
}
.trick-detail-info-list dd {
    color: #1e293b;
    font-weight: 600;
    text-align: right;
}
/* ======================== Roles Management ======================== */
.roles-page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
}
.roles-page__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.roles-page__heading {
    min-width: 0;
}
.roles-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.roles-page__breadcrumb i {
    font-size: 10px;
}
.roles-page__breadcrumb a:hover, .roles-page__breadcrumb span {
    color: var(--color-primary);
}
.roles-page__breadcrumb span {
    font-weight: 600;
}
.roles-page__title {
    margin: 0 0 4px;
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}
.roles-page__description {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.roles-page .roles-page__add-button {
    min-height: 38px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.roles-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.roles-summary__card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 72px;
    padding: 14px 16px;
    border: 1px solid var(--color-line-strong);
    border-radius: 12px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card-soft);
}
.roles-summary__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 17px;
}
.roles-summary__icon--primary {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.roles-summary__icon--success {
    background: var(--color-success-light);
    color: var(--color-success);
}
.roles-summary__icon--info {
    background: #eff6ff;
    color: var(--color-info);
}
.roles-summary__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}
.roles-summary__label {
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.roles-summary__value {
    color: var(--color-text-primary);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}
.roles-summary__value--success {
    color: #059669;
}
.roles-directory {
    overflow: hidden;
    border: 1px solid var(--color-line-strong);
    border-radius: 14px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card-soft);
}
.roles-directory__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-line);
}
.roles-directory__heading {
    display: flex;
    align-items: center;
    gap: 8px;
}
.roles-directory__title {
    color: var(--color-text-primary);
    font-size: 17px;
    font-weight: 600;
}
.roles-directory__count {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 90px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.role-order-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    transition:
        color 0.16s ease,
        background-color 0.16s ease;
}
.role-order-status.is-ready {
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
}
.role-order-status.is-saving {
    background: #eff6ff;
    color: #2563eb;
}
.role-order-status.is-saved {
    background: var(--color-success-light);
    color: #047857;
}
.role-order-status.is-error {
    background: var(--color-error-light);
    color: var(--color-error);
}
.roles-table-wrap {
    width: 100%;
    overflow-x: auto;
}
.roles-table {
    min-width: 920px;
    border-collapse: collapse;
}
.roles-table thead {
    background: var(--color-bg-surface-soft);
}
.roles-directory .roles-table th, .roles-directory .roles-table td {
    height: 52px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--color-line);
    vertical-align: middle;
    white-space: nowrap;
}
.roles-directory .roles-table th {
    height: 42px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.roles-directory .roles-table td {
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
}
.roles-table__row {
    background: #fff;
    transition:
        background-color 0.16s ease,
        box-shadow 0.16s ease;
}
.roles-table__row:hover {
    background: #fafbfc;
}
.roles-table__row:last-child td {
    border-bottom: 0;
}
.roles-table__row.is-chosen {
    background: var(--color-primary-subtle);
}
.roles-table__row.is-dragging {
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    opacity: 0.72;
}
.roles-table__row.is-moving {
    cursor: grabbing;
}
.roles-table tbody.is-sorting {
    user-select: none;
}
.roles-table__order-heading, .roles-table__order-cell {
    width: 112px;
}
.roles-table__order-label {
    display: block;
    width: 26px;
    margin-left: 39px;
    text-align: center;
}
.roles-table__order-control {
    display: flex;
    align-items: center;
    gap: 9px;
}
.roles-table__drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--color-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text-muted-2);
    font-size: 14px;
    cursor: grab;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease;
    touch-action: none;
}
.roles-table__drag-handle:hover, .roles-table__drag-handle:focus-visible {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.roles-table__drag-handle:active {
    cursor: grabbing;
}
.roles-table__order-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.roles-table__name-en {
    display: block;
    max-width: 230px;
    overflow: hidden;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
}
.roles-table__name-th {
    display: block;
    max-width: 260px;
    overflow: hidden;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
}
.roles-table__permission, .roles-table__member-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 90px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
}
.roles-table__permission--admin {
    border: 1px solid var(--color-primary-border-strong);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.roles-table__permission--staff {
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #2563eb;
}
.roles-table__permission--writer {
    border: 1px solid color-mix(in srgb, var(--color-warning) 35%, transparent);
    background: color-mix(in srgb, var(--color-warning) 10%, var(--color-white));
    color: var(--color-warning);
}
.roles-table__member-heading, .roles-table__member-cell {
    text-align: center;
}
.roles-table__member-count {
    background: var(--color-bg-surface-soft);
    color: var(--color-text-secondary);
}
.roles-table__actions-heading, .roles-table__actions-cell {
    width: 112px;
    text-align: right;
}
.roles-table__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.roles-table__delete-form {
    margin: 0;
}
.roles-table__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--color-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text-muted);
    font-size: 14px;
    cursor: pointer;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}
.roles-table__action:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.roles-table__action--danger:hover {
    background: var(--color-error-light);
    color: var(--color-error);
}
.roles-table__empty {
    height: 220px;
    text-align: center;
    white-space: normal;
}
.roles-table__empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 12px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    font-size: 17px;
}
.roles-table__empty-title, .roles-table__empty-description {
    display: block;
}
.roles-table__empty-title {
    margin-bottom: 3px;
    color: var(--color-text-primary);
    font-size: 15px;
    font-weight: 600;
}
.roles-table__empty-description {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
body.role-modal-open {
    overflow: hidden;
}
.role-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.role-modal.is-open {
    display: flex;
}
.role-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(4px);
    cursor: default;
}
.role-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    overflow: hidden;
    border: 1px solid var(--color-line-strong);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}
.role-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--color-line);
}
.role-modal__title {
    margin: 0 0 3px;
    color: var(--color-text-primary);
    font-size: 19px;
    font-weight: 600;
}
.role-modal__description {
    max-width: 360px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.role-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--color-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text-muted);
    font-size: 15px;
    cursor: pointer;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease;
}
.role-modal__close:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.role-modal__body {
    display: grid;
    gap: 16px;
    padding: 20px;
}
.role-form-field {
    min-width: 0;
}
.role-form-field__label {
    display: block;
    margin-bottom: 7px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.role-form-field__label span {
    color: var(--color-primary);
}
.role-form-field__control {
    position: relative;
}
.role-form-field__control > i {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 1;
    color: var(--color-text-muted-2);
    font-size: 14px;
    transform: translateY(-50%);
    pointer-events: none;
}
.role-form-field__input {
    width: 100%;
    min-height: 42px;
    padding: 8px 14px 8px 38px;
    border: 1px solid var(--color-line-strong);
    border-radius: 9px;
    background: #fff;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
}
.role-form-field__input::placeholder {
    color: var(--color-text-muted-2);
}
.role-form-field__input:focus {
    border-color: color-mix(in srgb, var(--color-primary) 50%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 7%, transparent);
}
.role-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--color-line);
    background: var(--color-bg-surface-soft);
}
.role-modal .role-modal__button {
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
}
/* ======================== Leave and WFH Dashboard ======================== */
.leaves-page {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
}
.leaves-page__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.leaves-page__heading {
    min-width: 0;
}
.leaves-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.leaves-page__breadcrumb i {
    font-size: 10px;
}
.leaves-page__breadcrumb-current {
    color: var(--color-primary);
    font-weight: 600;
}
.leaves-page__title {
    margin: 0 0 4px;
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}
.leaves-page__description {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.leaves-page__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}
.leaves-page .leaves-page__button {
    min-height: 38px;
    padding: 0 15px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.leaves-page .leaves-page__button--wfh {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.14);
}
.leaves-page .leaves-page__button--wfh:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
}
.leaves-overdue-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid var(--color-primary-border-strong);
    border-left: 4px solid var(--color-error);
    border-radius: 12px;
    background: var(--color-error-light);
    color: var(--color-primary-hover);
}
.leaves-overdue-alert__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--color-primary-subtle);
    color: var(--color-error);
    font-size: 16px;
}
.leaves-overdue-alert__title {
    margin: 0 0 2px;
    font-size: 17px;
    font-weight: 600;
}
.leaves-overdue-alert__description {
    font-size: 13px;
    font-weight: 400;
}
.leave-quota-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.leave-quota-card {
    min-width: 0;
    min-height: 156px;
    padding: 20px;
    border: 1px solid var(--color-line-strong);
    border-radius: 12px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card-soft);
}
.leave-quota-card--shared {
    border-color: #bfdbfe;
}
.leave-quota-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 36px;
    margin-bottom: 9px;
}
.leave-quota-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 16px;
}
.leave-quota-card__icon--blue {
    background: #eff6ff;
    color: #2563eb;
}
.leave-quota-card__icon--rose {
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.leave-quota-card__icon--violet {
    background: #f5f3ff;
    color: #7c3aed;
}
.leave-quota-card__icon--emerald {
    background: var(--color-success-light);
    color: #059669;
}
.leave-quota-card__remaining, .leave-quota-card__year, .leave-quota-card__lifetime {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 90px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.leave-quota-card__remaining {
    background: #eff6ff;
    color: #2563eb;
}
.leave-quota-card__label {
    margin-bottom: 2px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.leave-quota-card__value {
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}
.leave-quota-card__value span {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.leave-quota-card__progress {
    display: block;
    width: 100%;
    height: 6px;
    margin: 10px 0 8px;
    overflow: hidden;
    border: 0;
    border-radius: 90px;
    background: var(--color-bg-elevated);
    appearance: none;
}
.leave-quota-card__progress::-webkit-progress-bar {
    border-radius: 90px;
    background: var(--color-bg-elevated);
}
.leave-quota-card__progress::-webkit-progress-value {
    border-radius: 90px;
    background: var(--progress-scale-color, var(--color-text-muted-2));
}
.leave-quota-card__progress::-moz-progress-bar {
    border-radius: 90px;
    background: var(--progress-scale-color, var(--color-text-muted-2));
}
.leave-quota-card__progress.is-danger::-webkit-progress-value {
    background: var(--color-error);
}
.leave-quota-card__progress.is-danger::-moz-progress-bar {
    background: var(--color-error);
}
.leave-quota-card__breakdown {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
}
.leave-quota-card__breakdown span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.leave-quota-card__breakdown i {
    font-size: 7px;
}
.leave-quota-card__dot--personal {
    color: var(--color-info);
}
.leave-quota-card__dot--vacation {
    color: var(--color-success);
}
.leave-quota-card__note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.leave-quota-card__entitlement {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
}
.leave-quota-card__entitlement.is-available {
    background: var(--color-success-light);
    color: #047857;
}
.leave-quota-card__entitlement.is-used {
    background: #f1f5f9;
    color: var(--color-text-muted);
}
.leaves-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}
/* ======================== Leave forms and holiday management ======================== */
.leave-form-page, .holidays-page {
    width: 100%;
    margin: 0 auto;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
}
.leave-form-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.leave-form-page__heading {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 11px;
}
.leave-form-page__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-line-strong);
    border-radius: 9px;
    background: #fff;
    color: var(--color-text-muted);
    text-decoration: none;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease;
}
.leave-form-page__back:hover, .leave-form-page__back:focus-visible {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.leave-form-page__title {
    margin: 0 0 3px;
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}
.leave-form-page__description {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.leave-form-page__type-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 4px 10px;
    border: 1px solid var(--color-primary-border-strong);
    border-radius: 9px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.leave-form-page__type-badge--wfh {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}
.leave-form-blocked {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--color-primary-border-strong);
    border-radius: 14px;
    background: var(--color-error-light);
    color: var(--color-primary-hover);
    box-shadow: var(--shadow-card-soft);
}
.leave-form-blocked__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--color-primary-subtle);
    color: var(--color-error);
    font-size: 16px;
}
.leave-form-blocked__title {
    margin-bottom: 4px;
    font-size: 17px;
    font-weight: 600;
}
.leave-form-blocked p {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
}
.leave-request-form {
    border: 1px solid var(--color-line-strong);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow-card-soft);
}
.leave-form-section {
    padding: 30px;
    border-bottom: 1px solid var(--color-line);
}
.leave-form-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 17px;
}
.leave-form-section__title, .holiday-create-card__title, .holiday-directory__title {
    color: var(--color-text-primary);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}
.leave-form-section__header p, .holiday-create-card__heading p, .holiday-directory__header p {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
/* Hide legacy section counters that may remain in a cached Blade view. */
.leave-form-section__step {
    display: none !important;
}
.leave-form-grid {
    display: grid;
    gap: 12px;
}
.leave-form-grid--two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}
.leave-form-field {
    min-width: 0;
}
.leave-form-field--spaced {
    margin-top: 16px;
}
.leave-form-field__label {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: 5px;
    margin-bottom: 7px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.leave-form-field__label:has(.leave-form-field__optional) {
    width: 100%;
}
.leave-form-field__label > span:not(.leave-form-field__optional) {
    color: var(--color-primary);
}
.leave-form-field__optional {
    margin-left: auto;
    color: var(--color-text-muted-2);
    font-size: 13px;
    font-weight: 400;
}
.leave-form-field__control {
    position: relative;
}
.leave-form-field__control > i {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 1;
    width: 14px;
    color: var(--color-text-muted-2);
    font-size: 13px;
    text-align: center;
    transform: translateY(-50%);
    pointer-events: none;
}
.leave-form-field__input, .leave-form-field__select, .leave-form-field__textarea {
    width: 100%;
    border: 1px solid var(--color-line-strong);
    border-radius: 9px;
    background: #fff;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
    box-sizing: border-box;
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background-color 0.16s ease;
}
.leave-form-field__input, .leave-form-field__select {
    min-height: 42px;
    padding: 8px 12px 8px 38px;
}
.leave-form-field__select {
    cursor: pointer;
    min-height: 45px !important;
    padding-right: 0;
}
.leave-form-field__select #leaveType-ts-control {
    border: none;
    padding: 0;
    box-shadow: unset;
    border-radius: unset;
    min-height: unset;
}
.leave-form-field__textarea {
    min-height: 100px;
    padding: 11px 13px;
    line-height: 1.6;
    resize: vertical;
}
.leave-form-field__input::placeholder, .leave-form-field__textarea::placeholder {
    color: var(--color-text-muted-2);
}
.leave-form-field__input:focus, .leave-form-field__select:focus, .leave-form-field__textarea:focus {
    border-color: color-mix(in srgb, var(--color-primary) 48%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 7%, transparent);
    outline: none;
}
.leave-days-summary {
    margin-top: 14px;
    padding: 13px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #f8fbff;
}
.leave-days-summary__main {
    display: flex;
    align-items: center;
    gap: 10px;
}
.leave-days-summary__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #dbeafe;
    color: #2563eb;
    font-size: 14px;
}
.leave-days-summary__main > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}
.leave-days-summary__main span, .leave-days-summary p {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.leave-days-summary__main strong {
    color: var(--color-text-primary);
    font-size: 17px;
    font-weight: 600;
}
.leave-days-summary__main strong span {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}
.leave-days-summary p {
    margin: 7px 0 0 44px;
}
.leave-form-notice {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 12px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
}
.leave-form-notice--warning {
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
}
.leave-action-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}
.leave-action-option, .leave-period-option {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
    padding: 11px;
    border: 1px solid var(--color-line-strong);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        box-shadow 0.16s ease;
}
.leave-action-option:hover, .leave-period-option:hover {
    border-color: var(--color-primary-border-strong);
}
.leave-action-option:has(input:checked), .leave-period-option:has(input:checked) {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 5%, transparent);
}
.leave-action-option > input, .leave-period-option > input, .leave-form-toggle > input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.leave-action-option__icon, .leave-period-option__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
}
.leave-action-option__icon--warning {
    background: #fffbeb;
    color: #b45309;
}
.leave-action-option__icon--neutral {
    background: #f1f5f9;
    color: var(--color-text-muted);
}
.leave-action-option__content, .leave-period-option > span:nth-of-type(2) {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
}
.leave-action-option strong, .leave-period-option strong, .leave-form-toggle__content strong {
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
}
.leave-action-option small, .leave-period-option small, .leave-form-toggle__content small {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}
.leave-action-option__check, .leave-period-option__check {
    display: none;
    color: var(--color-primary);
    font-size: 14px;
}
.leave-action-option:has(input:checked) .leave-action-option__check, .leave-period-option:has(input:checked) .leave-period-option__check {
    display: inline-block;
}
.leave-makeup-date-section {
    margin-top: 14px;
    padding: 13px;
    border: 1px solid #fde68a;
    border-radius: 10px;
    background: #fffbeb;
}
.leave-makeup-date-section__heading {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: #92400e;
    font-size: 13px;
    font-weight: 600;
}
.leave-makeup-date-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.leave-makeup-date-input {
    padding-left: 12px;
}
.leave-form-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    border: 1px solid var(--color-line-strong);
    border-radius: 10px;
    background: var(--color-bg-surface-soft);
    cursor: pointer;
}
.leave-form-toggle__control {
    position: relative;
    flex: 0 0 38px;
    width: 38px;
    height: 22px;
    border-radius: 90px;
    background: #cbd5e1;
    transition: background-color 0.16s ease;
}
.leave-form-toggle__control::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
    content: "";
    transition: transform 0.16s ease;
}
.leave-form-toggle:has(input:checked) {
    border-color: #bfdbfe;
    background: #f8fbff;
}
.leave-form-toggle:has(input:checked) .leave-form-toggle__control {
    background: #2563eb;
}
.leave-form-toggle:has(input:checked) .leave-form-toggle__control::after {
    transform: translateX(16px);
}
.leave-form-toggle__content {
    display: flex;
    flex-direction: column;
}
.leave-period-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 11px;
}
.leave-period-options[hidden] {
    display: none;
}
.leave-request-form__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    background: var(--color-bg-surface-soft);
}
.leave-request-form__cancel, .leave-request-form__submit, .holiday-create-form__submit, .leave-form-section__add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 6px 13px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}
.leave-request-form__cancel {
    border: 1px solid var(--color-line-strong);
    background: #fff;
    color: var(--color-text-secondary);
}
.leave-request-form__submit, .holiday-create-form__submit {
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}
.leave-request-form__submit--wfh {
    border-color: #2563eb;
    background: #2563eb;
}
.leave-request-form__cancel:hover, .leave-request-form__submit:hover, .holiday-create-form__submit:hover, .leave-form-section__add-button:hover {
}
.leave-form-section__add-button {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}
.wfh-date-list {
    display: grid;
    gap: 10px;
}
.wfh-date-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: end;
    gap: 8px;
}
.wfh-date-row__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--color-primary-border-strong);
    border-radius: 9px;
    background: var(--color-error-light);
    color: var(--color-primary-hover);
    cursor: pointer;
}
.wfh-date-row__remove:disabled {
    border-color: var(--color-line);
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted-2);
    cursor: not-allowed;
}
.holiday-year-filter {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: var(--color-bg-surface-soft);
}
.holiday-year-filter__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 4px 10px;
    border-radius: 7px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
}
.holiday-year-filter__link.is-active {
    background: #fff;
    color: var(--color-primary);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.holiday-create-card, .holiday-directory {
    overflow: hidden;
    border: 1px solid var(--color-line-strong);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-card-soft);
}
.holiday-create-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: end;
    gap: 18px;
    margin-bottom: 14px;
    padding: 18px;
}
.holiday-create-card__heading {
    display: flex;
    align-items: center;
    gap: 10px;
}
.holiday-create-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 15px;
}
.holiday-create-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px auto;
    align-items: end;
    gap: 9px;
}
.holiday-directory__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 17px;
    border-bottom: 1px solid var(--color-line);
}
.holiday-directory__count {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 8px;
    border-radius: 90px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.holiday-table-wrap {
    overflow-x: auto;
}
.holiday-table {
    min-width: 620px;
    border-collapse: collapse;
}
.holiday-table th, .holiday-table td {
    height: 48px;
    padding: 8px 17px;
    border-bottom: 1px solid var(--color-line);
}
.holiday-table th {
    background: var(--color-bg-surface-soft);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.holiday-table td, .holiday-table__date, .holiday-table__name {
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
}
.holiday-table__date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--color-text-primary);
}
.holiday-table__date i {
    color: var(--color-text-muted-2);
}
.holiday-table__action-heading, .holiday-table__action-cell {
    width: 80px;
    text-align: center;
}
.holiday-table__delete-form {
    display: inline-flex;
    margin: 0;
}
.holiday-table__delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--color-primary-border-strong);
    border-radius: 8px;
    background: var(--color-error-light);
    color: var(--color-primary-hover);
    cursor: pointer;
    transition:
        background-color 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}
.holiday-table__delete-button:hover {
    background: var(--color-primary-hover);
    color: #fff;
}
.holiday-table__empty {
    height: 180px;
    text-align: center;
}
.holiday-table__empty-icon, .holiday-table__empty strong, .holiday-table__empty span {
    display: block;
}
.holiday-table__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted-2);
    font-size: 16px;
}
.holiday-table__empty strong {
    color: var(--color-text-primary);
    font-size: 15px;
    font-weight: 600;
}
.holiday-table__empty span:last-child {
    margin-top: 3px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.leaves-history-column {
    display: grid;
    min-width: 0;
    gap: 16px;
}
.leave-history-card {
    overflow: hidden;
    border: 1px solid var(--color-line-strong);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-card-soft);
}
.leave-history-card__header {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 8px 10px;
    background: #fff;
}
.leave-history-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 12px;
    width: auto;
    margin: 15px auto;
}
.leave-history-tabs__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 36px;
    gap: 7px;
    padding: 5px 12px;
    border: 1px solid var(--color-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.16s ease,
        box-shadow 0.16s ease,
        color 0.16s ease;
}
.leave-history-tabs__button:hover {
    color: var(--color-text-primary);
}
.leave-history-tabs__button.is-active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 5px 12px color-mix(in srgb, var(--color-primary) 18%, transparent);
}
.leave-history-tabs__button:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--color-primary) 22%, transparent);
    outline-offset: 1px;
}
.leave-history-tabs__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    font-size: 12px;
}
.leave-history-tabs__icon--leave {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.leave-history-tabs__icon--wfh {
    background: #eff6ff;
    color: #2563eb;
}
.leave-history-tabs__icon--makeup {
    background: var(--color-success-light);
    color: var(--color-success);
}
.leave-history-tabs__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.leave-history-tabs__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 90px;
    background: #fff;
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 400;
}
.leave-history-tabs__button.is-active .leave-history-tabs__count {
    background: #fff;
    color: var(--color-primary);
}
.leave-history-tabs__button.is-active .leave-history-tabs__icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.leave-history-panel[hidden] {
    display: none;
}
.leave-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-color: var(--color-line-strong) transparent;
    scrollbar-width: thin;
}
.leave-table {
    width: 100%;
    min-width: 820px;
    table-layout: fixed;
    border-collapse: collapse;
}
.leave-table--wfh {
    min-width: 680px;
}
.leave-table__column--member {
    width: 20%;
}
.leave-table__column--type {
    width: 23%;
}
.leave-table__column--date {
    width: 22%;
}
.leave-table__column--status {
    width: 20%;
}
.leave-table__column--details {
    width: 15%;
}
.leave-table__column--wfh-member {
    width: 23%;
}
.leave-table__column--wfh-date {
    width: 24%;
}
.leave-table__column--wfh-period {
    width: 18%;
}
.leave-table__column--wfh-status {
    width: 20%;
}
.leave-table__column--wfh-details {
    width: 15%;
}
.leave-table thead {
    background: var(--color-bg-surface-soft);
}
.leave-history-card .leave-table th, .leave-history-card .leave-table td {
    height: 52px;
    min-width: 0;
    padding: 8px 10px;
    border-bottom: 1px solid var(--color-line);
    vertical-align: middle;
    white-space: nowrap;
}
.leave-history-card .leave-table th {
    height: 42px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.leave-history-card .leave-table td {
    overflow: hidden;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
}
.leave-table__row {
    background: #fff;
    cursor: pointer;
    transition: background-color 0.16s ease;
}
.leave-table__row:hover, .leave-table__row:focus-visible {
    background: #fafbfc;
}
.leave-table__row:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
    outline-offset: -2px;
}
.leave-table__member {
    display: flex;
    align-items: center;
    gap: 9px;
}
.leave-table__member-name {
    max-width: none;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}
.leave-table__type, .leave-table__date-range, .leave-table__status-wrap {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 6px;
}
.leave-table__type, .leave-table__date-range, .leave-table__status-wrap {
    overflow: hidden;
}
.leave-table__type-name, .leave-table__date-range > span:not(.leave-table__backdated) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.leave-table__type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 12px;
}
.leave-table__type-name, .leave-table__days {
    font-size: 13px;
    font-weight: 400;
}
.leave-table__days, .leave-table__separator, .leave-table__date-range {
    color: var(--color-text-muted);
}
.leave-table__date-range > span:not(.leave-table__backdated) {
    color: var(--color-text-secondary);
    font-weight: 400;
}
.leave-table__date-arrow {
    color: var(--color-text-muted-2);
    font-size: 10px;
}
.leave-table__half-day, .leave-table__backdated, .leave-table__period {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 90px;
    font-size: 12px;
    font-weight: 400;
}
.leave-table__half-day, .leave-table__backdated {
    background: #fffbeb;
    color: #b45309;
}
.leave-table__period.is-half-day {
    background: #eff6ff;
    color: #2563eb;
}
.leave-table__period.is-full-day {
    background: #f1f5f9;
    color: var(--color-text-muted);
}
.leave-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 90px;
    background: #f1f5f9;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 400;
}
.leave-status--recorded {
    background: #eff6ff;
    color: #2563eb;
}
.leave-status--pending, .leave-status--pending_makeup {
    background: #fffbeb;
    color: #b45309;
}
.leave-status--approved, .leave-status--makeup_complete {
    background: var(--color-success-light);
    color: #047857;
}
.leave-status--rejected, .leave-status--cancelled {
    background: var(--color-error-light);
    color: var(--color-primary-hover);
}
.leave-table__makeup-flag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #b45309;
    font-size: 12px;
    font-weight: 400;
}
.leave-table__details-heading, .leave-table__details-cell {
    overflow: visible;
    text-align: center;
}
body.leave-record-modal-open {
    overflow: hidden;
}
.leave-record-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: block;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.24s;
}
.leave-record-modal.is-open {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}
.leave-record-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease;
}
.leave-record-modal.is-open .leave-record-modal__backdrop {
    opacity: 1;
    visibility: visible;
}
.leave-record-modal__dialog {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    width: min(100%, 750px);
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    flex-direction: column;
    border-top: 3px solid var(--color-primary);
    background: #fff;
    box-shadow: -20px 0 60px rgba(15, 23, 42, 0.2);
    transform: translateX(102%);
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    outline: none;
}
.leave-record-modal.is-open .leave-record-modal__dialog {
    transform: translateX(0);
}
.leave-record-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--color-line);
}
.leave-record-modal__heading {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 11px;
}
.leave-record-modal__heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 16px;
}
.leave-record-modal__heading-icon--wfh {
    background: #eff6ff;
    color: #2563eb;
}
.leave-record-modal__title {
    margin: 0 0 2px;
    color: var(--color-text-primary);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}
.leave-record-modal__description {
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.leave-record-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--color-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text-muted);
    font-size: 14px;
    cursor: pointer;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease;
}
.leave-record-modal__close:hover, .leave-record-modal__close:focus-visible {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.leave-record-modal__body {
    display: grid;
    gap: 14px;
    padding: 18px 20px;
    overflow-y: auto;
}
.leave-record-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}
.leave-record-summary__item {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid var(--color-line);
    border-radius: 9px;
    background: var(--color-bg-surface-soft);
}
.leave-record-summary__item--date {
    grid-column: auto;
}
.leave-record-summary__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
.leave-record-summary__item dt {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.leave-record-summary__item dt i {
    width: 13px;
    color: var(--color-text-muted-2);
    text-align: center;
}
.leave-record-summary__item dd {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 6px;
    margin: 0;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}
.leave-record-summary__member span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.leave-record-summary__note {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    border-radius: 90px;
    background: #fffbeb;
    color: #b45309;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.leave-record-summary__date-arrow {
    color: var(--color-text-muted-2);
    font-size: 10px;
}
.leave-record-reason {
    padding: 12px 14px;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: #fff;
}
.leave-record-reason__heading {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.leave-record-reason__heading i {
    color: var(--color-primary);
}
.leave-record-reason p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.leave-record-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 13px 20px;
    border-top: 1px solid var(--color-line);
    background: var(--color-bg-surface-soft);
}
.leave-record-modal__dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 5px 12px;
    border: 1px solid var(--color-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.leave-record-modal__dismiss:hover, .leave-record-modal__dismiss:focus-visible {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: var(--color-text-primary);
}
.leave-record-modal__edit,
.leave-record-modal__cancel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.leave-record-modal__edit {
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
}
.leave-record-modal__cancel-form {
    margin: 0;
}
.leave-record-modal__cancel-button {
    border: 1px solid var(--color-error);
    background: var(--color-white);
    color: var(--color-error);
}
.leave-record-modal__edit:hover,
.leave-record-modal__edit:focus-visible {
    color: var(--color-white);
}
.leave-record-modal__cancel-button:hover,
.leave-record-modal__cancel-button:focus-visible {
    background: var(--color-error-light);
}
.leave-detail-panel__makeup {
    overflow: hidden;
    border: 1px solid #fde68a;
    border-radius: 10px;
    background: #fff;
}
.leave-detail-panel__makeup-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-bottom: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    font-size: 13px;
    font-weight: 600;
}
.leave-detail-panel__makeup-heading span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.leave-makeup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--color-line);
}
.leave-makeup-row:last-child {
    border-bottom: 0;
}
.leave-makeup-row__summary {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--color-text-muted);
    font-size: 13px;
}
.leave-makeup-row__summary strong {
    color: var(--color-text-primary);
    font-weight: 600;
}
.leave-makeup-row__form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}
.leave-makeup-row__date {
    width: 150px;
    min-height: 30px;
    padding: 4px 8px;
    border-radius: 7px;
    font-size: 13px;
}
.leave-makeup-row__button, .leave-detail-panel__convert-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 4px 9px;
    border: 1px solid var(--color-line-strong);
    border-radius: 7px;
    background: #fff;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.leave-makeup-row__button--complete {
    border-color: #a7f3d0;
    background: var(--color-success-light);
    color: #047857;
}
.leave-makeup-row__complete, .leave-makeup-row__pending {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
}
.leave-makeup-row__complete {
    color: #047857;
}
.leave-makeup-row__pending {
    color: #b45309;
}
.leave-detail-panel__empty-makeup {
    padding: 10px 12px;
    color: var(--color-text-muted);
    font-size: 13px;
}
.leave-detail-panel__notice {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}
.leave-detail-panel__notice--danger {
    background: var(--color-error-light);
    color: var(--color-primary-hover);
}
.leave-detail-panel__notice strong {
    font-weight: 600;
}
.leave-detail-panel__convert-form {
    margin: 0;
}
.leave-detail-panel__convert-button {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}
.leave-table__empty {
    height: 190px;
    text-align: center;
    white-space: normal;
}
.leave-table__empty-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    min-height: 150px;
}
.leave-table__empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 9px;
    border-radius: 11px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    font-size: 16px;
}
.leave-table__empty-title, .leave-table__empty-description {
    display: block;
}
.leave-table__empty-title {
    margin-bottom: 3px;
    color: var(--color-text-primary);
    font-size: 15px;
    font-weight: 600;
}
.leave-table__empty-description {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.leave-makeup-card {
    position: static;
    min-width: 0;
}
.leave-makeup-card.is-clear {
    min-height: 156px;
}
.leave-makeup-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 20px;
    border-bottom: 1px solid var(--color-line);
}
.leave-makeup-card.has-pending .leave-makeup-card__header {
    border-bottom-color: #fde68a;
    background: #fffbeb;
}
.leave-makeup-card__header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--color-success-light);
    color: #047857;
    font-size: 15px;
}
.leave-makeup-card.has-pending .leave-makeup-card__header-icon {
    background: #fef3c7;
    color: #b45309;
}
h2.leave-makeup-card__title {
    color: var(--color-text-primary);
    font-size: 16px;
    font-weight: 600;
}
.leave-makeup-card__description {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.leave-makeup-card__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.pending-makeup-item {
    padding: 14px 15px;
    border-bottom: 1px solid var(--color-line);
}
.pending-makeup-item:last-child {
    border-bottom: 0;
}
.pending-makeup-item.is-overdue {
    background: var(--color-primary-subtle);
}
.pending-makeup-item__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}
.pending-makeup-item__name {
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
}
.pending-makeup-item__days {
    padding: 2px 7px;
    border-radius: 90px;
    background: #fef3c7;
    color: #92400e;
    font-size: 13px;
    font-weight: 600;
}
.pending-makeup-item__source, .pending-makeup-item__deadline {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.pending-makeup-item__deadline {
    margin-top: 3px;
}
.pending-makeup-item.is-overdue .pending-makeup-item__deadline {
    color: var(--color-primary-hover);
}
.pending-makeup-item__deadline strong {
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--color-error-light);
    color: var(--color-primary-hover);
    font-size: 13px;
    font-weight: 600;
}
.pending-makeup-item__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    margin-top: 11px;
}
.pending-makeup-item__date {
    min-height: 34px;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 13px;
}
.pending-makeup-item__button, .pending-makeup-item__complete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 5px 10px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.pending-makeup-item__scheduled {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 11px;
    padding: 8px 9px;
    border-radius: 8px;
    background: var(--color-bg-surface-soft);
}
.pending-makeup-item__scheduled > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.pending-makeup-item__scheduled span {
    color: var(--color-text-muted);
    font-size: 13px;
}
.pending-makeup-item__scheduled strong {
    overflow: hidden;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pending-makeup-item__scheduled form {
    margin: 0;
}
.pending-makeup-item__complete {
    min-height: 30px;
    border-color: #a7f3d0;
    background: var(--color-success-light);
    color: #047857;
}
.leave-makeup-card__empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    text-align: left;
}
.leave-makeup-card__empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0;
    border-radius: 50%;
    background: var(--color-success-light);
    color: #047857;
    font-size: 13px;
}
.leave-makeup-card__empty p {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
/* ======================== LINE OA notification settings ======================== */
html:has(body.line-notification-route), body.line-notification-route {
    width: 100%;
    max-width: 100%;
    overflow-x: clip !important;
    overscroll-behavior-x: none;
}
body.line-notification-route .main-content {
    width: auto;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip !important;
}
.line-notification-page {
    width: 100%;
    min-width: 0;
    max-width: 1580px;
    margin: 0 auto;
    overflow-x: clip;
    contain: inline-size;
    color: var(--color-text-primary);
}
/* Keep wide LINE settings content inside the page. Tables and tabs own their
   horizontal scrolling; their intrinsic width must not widen the document. */
.line-notification-page > *, .line-notification-panel, .line-setup-layout, .line-setup-layout > *, .line-notification-card, .line-workflow-stack, .line-workflow-section, .line-rule-grid, .line-rule-card, .line-pattern-form, .line-pattern-columns, .line-pattern-columns > *, .line-member-manager {
    min-width: 0;
    max-width: 100%;
}
.line-notification-page__header {
    margin-bottom: 18px;
}
.line-notification-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.line-notification-breadcrumb a:hover, .line-notification-breadcrumb span {
    color: var(--color-primary);
}
.line-notification-breadcrumb i {
    font-size: 10px;
}
.line-notification-page__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}
.line-notification-page__heading h1 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}
.line-notification-page__heading p {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
}
.line-connection-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid;
    border-radius: 90px;
    font-size: 13px;
    font-weight: 600;
}
.line-connection-status.is-connected {
    border-color: #a7f3d0;
    background: var(--color-success-light);
    color: #047857;
}
.line-connection-status.is-disconnected {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}
.line-notification-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 400;
}
.line-notification-alert > i {
    margin-top: 2px;
}
.line-notification-alert strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
    font-weight: 600;
}
.line-notification-alert ul {
    margin: 0;
    padding-left: 18px;
}
.line-notification-alert--error {
    border-color: var(--color-primary-border-strong);
    background: var(--color-error-light);
    color: var(--color-primary-hover);
}
.line-notification-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.line-notification-summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 84px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card);
}
.line-notification-summary-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 17px;
}
.line-notification-summary-card__icon--connection {
    background: var(--color-success-light);
    color: #059669;
}
.line-notification-summary-card__icon--members {
    background: #eff6ff;
    color: #2563eb;
}
.line-notification-summary-card__icon--rules {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.line-notification-summary-card > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}
.line-notification-summary-card > div > span {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.line-notification-summary-card strong {
    font-size: 17px;
    font-weight: 600;
}
.line-notification-tabs {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 10px;
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card);
    scrollbar-width: none;
}
.line-notification-tabs::-webkit-scrollbar {
    display: none;
}
.line-notification-tab {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    cursor: pointer;
    transition:
        border-color 0.2s,
        background-color 0.2s,
        color 0.2s,
        box-shadow 0.2s;
}
.line-notification-tab:hover {
    background: var(--color-bg-surface-soft);
    color: var(--color-text-primary);
}
.line-notification-tab.is-active {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.line-notification-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 90px;
    background: var(--color-bg-elevated);
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
}
.line-notification-tab.is-active .line-notification-tab__count {
    background: #fff;
    color: var(--color-primary);
}
.line-notification-panel {
    display: none;
}
.line-notification-panel.is-active {
    display: block;
}
.line-setup-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.7fr);
    gap: 16px;
    align-items: start;
}
.line-notification-card, .line-workflow-section, .line-pattern-form {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card);
}
.line-notification-card {
    padding: 20px;
}
.line-notification-card__header {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}
.line-notification-card__header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 16px;
}
.line-notification-card__header-icon--test {
    background: var(--color-success-light);
    color: #059669;
}
.line-notification-card__header h2, .line-workflow-section__header h2, .line-pattern-form__header h2 {
    margin: 0 0 3px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}
.line-notification-card__header p, .line-workflow-section__header p, .line-pattern-form__header p {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
}
.line-credentials-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}
.line-form-field, .line-rule-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}
.line-form-field label, .line-rule-field label, .line-rule-field__heading > span:first-child {
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
}
.line-form-field label span {
    color: var(--color-text-muted);
    font-weight: 400;
}
.line-form-field__heading, .line-rule-field__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.line-credential-saved {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #047857;
    font-size: 12px;
    font-weight: 400;
}
.line-secret-input {
    position: relative;
}
.line-secret-input input, .line-code-input, .line-form-field textarea, .line-rule-field input, .line-pattern-textarea, .line-member-search input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    background: #fff;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background-color 0.2s;
}
.line-secret-input input, .line-code-input, .line-rule-field input, .line-member-search input {
    height: 40px;
    padding: 0 12px;
}
.line-secret-input input {
    padding-right: 42px;
}
.line-secret-input input:focus, .line-code-input:focus, .line-form-field textarea:focus, .line-rule-field input:focus, .line-pattern-textarea:focus, .line-member-search input:focus {
    border-color: var(--color-primary-border-strong);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.line-secret-input button {
    position: absolute;
    top: 50%;
    right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
}
.line-secret-input button:hover {
    background: var(--color-bg-surface-soft);
    color: var(--color-primary);
}
.line-form-field__help, .line-rule-field__heading > span:last-child {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}
.line-card-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--color-line);
}
.line-card-actions > span, .line-pattern-form__footer > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.line-card-actions > span i, .line-pattern-form__footer > span i {
    color: var(--color-info);
}
.line-test-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.line-test-card textarea {
    min-height: 92px;
    padding: 10px 12px;
    resize: vertical;
    line-height: 1.55;
}
.line-test-card__button {
    width: 100%;
    min-height: 40px;
}
.line-async-feedback {
    display: block;
    min-height: 18px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}
.line-async-feedback.is-success {
    color: #047857;
}
.line-async-feedback.is-error {
    color: var(--color-primary-hover);
}
.line-member-manager {
    padding: 0;
    overflow: hidden;
}
.line-member-manager__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--color-line);
}
.line-member-search {
    position: relative;
    flex: 0 1 360px;
}
.line-member-search > i {
    position: absolute;
    top: 50%;
    left: 12px;
    z-index: 1;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 13px;
}
.line-member-search input {
    padding-left: 34px;
}
.line-member-table-wrap {
    display: block;
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    contain: inline-size;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}
.line-member-table {
    width: 100%;
    min-width: 940px;
    border-collapse: collapse;
}
.line-member-table th {
    padding: 10px 15px;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-bg-surface-soft);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}
.line-member-table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--color-line);
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
    vertical-align: middle;
}
.line-member-table tbody tr:last-child td {
    border-bottom: 0;
}
.line-member-table tbody tr:hover {
    background: var(--color-primary-subtle);
}
.line-member-identity {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 210px;
}
.line-member-identity__text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
}
.task-configuration-table__action:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}
.line-member-identity > .avatar.is-hidden {
    display: none;
}
.line-member-identity strong {
    overflow: hidden;
    max-width: 220px;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.line-member-identity span {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 400;
}
.line-member-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.line-member-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 90px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 400;
}
.line-member-id-input {
    min-width: 290px;
    font-family: Consolas, Monaco, monospace;
}
.line-member-link-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 90px;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}
.line-member-link-status.is-linked {
    background: var(--color-success-light);
    color: #047857;
}
.line-member-link-status.is-missing {
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
}
.line-member-table__action {
    width: 120px;
    text-align: right;
    white-space: nowrap;
}
.line-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text-muted);
    cursor: pointer;
    transition:
        border-color 0.2s,
        background-color 0.2s,
        color 0.2s;
}
.line-icon-button:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.line-icon-button:disabled {
    cursor: wait;
    opacity: 0.7;
}
.line-row-feedback {
    display: inline-block;
    max-width: 72px;
    margin-left: 5px;
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 400;
    text-overflow: ellipsis;
    vertical-align: middle;
}
.line-row-feedback.is-success {
    color: #047857;
}
.line-row-feedback.is-error {
    color: var(--color-primary-hover);
}
.line-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 120px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.line-empty-state--search {
    border-top: 1px solid var(--color-line);
}
.line-member-table .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.line-workflow-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.line-workflow-section {
    overflow: hidden;
}
.line-workflow-section__header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--color-line);
}
.line-workflow-section__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 16px;
}
.line-workflow-section__icon--leave {
    background: #fff7ed;
    color: #ea580c;
}
.line-workflow-section__icon--seo {
    background: #eff6ff;
    color: #2563eb;
}
.line-rule-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
    background: var(--color-bg-surface-soft);
}
.line-rule-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 13px;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
}
.line-rule-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--color-line);
}
.line-rule-card__header > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}
.line-rule-card__header span, .line-rule-card__header code {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 400;
}
.line-rule-card__header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}
.line-rule-card__recipient-count {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 90px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
}
.line-rule-recipient-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    max-height: 164px;
    padding-right: 5px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}
.line-rule-recipient {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid var(--color-line-strong);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition:
        border-color 0.2s,
        background-color 0.2s;
}
.line-rule-recipient:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
}
.line-rule-recipient.is-checked {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
}
.line-rule-recipient.is-disabled {
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted-2);
    cursor: not-allowed;
    opacity: 0.65;
}
.line-rule-recipient input, .line-rule-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
.line-rule-recipient__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    background: #fff;
    color: transparent;
    font-size: 9px;
}
.line-rule-recipient.is-checked .line-rule-recipient__check {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}
.line-rule-recipient__avatar {
    display: inline-flex;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
}
.line-rule-recipient > span:last-child {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: 12px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.line-rule-switch {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid var(--color-line);
    border-radius: 9px;
    background: var(--color-bg-surface-soft);
    cursor: pointer;
}
.line-rule-switch__control {
    position: relative;
    flex: 0 0 34px;
    width: 34px;
    height: 20px;
    border-radius: 90px;
    background: #cbd5e1;
    transition: background-color 0.2s;
}
.line-rule-switch__control::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
    content: "";
    transition: transform 0.2s;
}
.line-rule-switch input:checked + .line-rule-switch__control {
    background: var(--color-primary);
}
.line-rule-switch input:checked + .line-rule-switch__control::after {
    transform: translateX(14px);
}
.line-rule-switch > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.line-rule-switch strong {
    font-size: 12px;
    font-weight: 600;
}
.line-rule-switch small {
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 400;
}
.line-rule-field input {
    font-family: Consolas, Monaco, monospace;
}
.line-rule-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px solid var(--color-line);
}
.line-rule-card__footer .line-async-feedback {
    flex: 1 1 auto;
    min-width: 0;
}
.line-rule-card__footer .btn {
    flex: 0 0 auto;
}
.line-pattern-form {
    overflow: hidden;
}
.line-pattern-form__header, .line-pattern-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
}
.line-pattern-form__header {
    border-bottom: 1px solid var(--color-line);
}
.line-pattern-form__footer {
    border-top: 1px solid var(--color-line);
}
.line-pattern-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
    background: var(--color-bg-surface-soft);
}
.line-pattern-group {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
}
.line-pattern-group__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--color-line);
}
.line-pattern-group__header h3 {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 600;
}
.line-pattern-group__header p {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 400;
}
.line-pattern-list {
    display: flex;
    flex-direction: column;
}
.line-pattern-editor {
    border-bottom: 1px solid var(--color-line);
}
.line-pattern-editor:last-child {
    border-bottom: 0;
}
.line-pattern-editor summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    list-style: none;
    cursor: pointer;
}
.line-pattern-editor summary::-webkit-details-marker {
    display: none;
}
.line-pattern-editor summary:hover {
    background: var(--color-bg-surface-soft);
}
.line-pattern-editor summary > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}
.line-pattern-editor summary strong {
    font-size: 13px;
    font-weight: 600;
}
.line-pattern-editor summary small {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 400;
}
.line-pattern-editor summary > i {
    color: var(--color-text-muted);
    font-size: 11px;
    transition: transform 0.2s;
}
.line-pattern-editor[open] summary > i {
    transform: rotate(180deg);
}
.line-pattern-editor__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 14px 14px;
}
.line-placeholder-list {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.line-placeholder-list > span {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 400;
}
.line-placeholder-list button {
    min-height: 25px;
    padding: 0 7px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-secondary);
    font-family: Consolas, Monaco, monospace;
    font-size: 11px;
    font-weight: 400;
    cursor: pointer;
}
.line-placeholder-list button:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.line-pattern-textarea {
    min-height: 168px;
    padding: 10px 12px;
    resize: vertical;
    font-family: Consolas, Monaco, monospace;
    line-height: 1.55;
}
/* Extracted from resources/views/tasks/view.blade.php; keep page templates free of inline style blocks. */
/* Single-line comment layout */
/* /tasks semantic component layout.
 * These rules intentionally live on task-specific classes so that spacing and
 * layout can be adjusted without changing shared u-* utilities site-wide. */
.tasks-kanban-card {
    position: relative;
}
.tasks-kanban-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 4px;
}
.tasks-kanban-progress-row, .tasks-kanban-progress-summary, .tasks-kanban-progress-count {
    display: flex;
    align-items: center;
}
.tasks-kanban-progress-row {
    justify-content: space-between;
    color: var(--color-text-muted);
    font-size: 13px;
}
.tasks-kanban-progress-summary {
    gap: 6px;
}
.tasks-kanban-progress-track {
    width: 40px;
    max-width: 40px;
    height: 4px;
}
.tasks-kanban-progress-count {
    gap: 4px;
    font-weight: 400;
}
.tasks-kanban-meta-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tasks-kanban-due-date, .tasks-list-muted {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.tasks-list-heading--title {
    width: 28%;
}
.tasks-list-heading--standard {
    width: 10%;
}
.tasks-list-heading--compact {
    width: 5%;
}
.tasks-list-sort {
    cursor: pointer;
}
.tasks-list-sort--center, .tasks-list-assignees {
    justify-content: center;
}
.tasks-list-empty-cell {
    padding: 24px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}
.tasks-pagination--inside {
    padding: 16px;
}
.tasks-pagination--below {
    margin-top: 24px;
}
.task-detail-header-context, .task-detail-header-actions, .task-detail-section-header, .task-detail-section-heading, .task-detail-attachment-item, .task-detail-attachment-link, .task-detail-attachment-actions, .task-detail-subtask-progress, .task-detail-comment-item, .task-detail-comment-composer-row, .task-detail-comment-send, .task-detail-header-action, .task-detail-comment-menu-toggle, .task-detail-comment-menu-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    grid-gap: 15px;
}
.task-detail-header-context {
    gap: 12px;
}
.task-detail-section .task-detail-subtask-progress {
    width: 100%;
    flex-wrap: nowrap;
}
.task-detail-section .task-detail-subtask-progress .task-detail-subtask-progress-track {
    width: 100%;
}
.task-detail-number {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 400;
}
.task-detail-header-actions {
    gap: 8px;
    flex-wrap: nowrap;
}
.task-detail-header-action {
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    font-size: 16px;
    border-radius: 10px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.task-detail-header-action:hover {
    color: var(--color-primary);
}
.task-detail-header-action--close {
    background: var(--color-bg-base);
    color: var(--color-text-primary);
}
.task-detail-section--description {
    margin-bottom: 32px;
}
.task-detail-section--spacious {
    margin-bottom: 40px;
}
.task-detail-section-header {
    justify-content: space-between;
    margin-bottom: 16px;
}
.task-detail-section-heading {
    gap: 10px;
}
.task-detail-section-icon, .task-detail-activity-icon {
    flex-shrink: 0;
    color: var(--color-text-muted);
}
.task-detail-section-title {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 19px;
    font-weight: 400;
}
.task-detail-description-save {
    display: none;
    padding: 4px 12px;
    border: 0;
    border-radius: 6px;
    background: var(--color-success);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
}
.task-detail-description-save[data-autosave-state="dirty"], .tasks-view__layout-03[data-autosave-state="dirty"] {
    background: var(--color-text-muted);
    box-shadow: 0 2px 4px rgba(100, 116, 139, 0.2);
}
.task-detail-description-save[data-autosave-state="saving"], .tasks-view__layout-03[data-autosave-state="saving"] {
    background: var(--color-primary);
    cursor: wait;
    opacity: 0.78;
}
.task-detail-description-save[data-autosave-state="error"], .tasks-view__layout-03[data-autosave-state="error"] {
    background: var(--color-danger, var(--color-primary-hover));
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}
#task-offcanvas.is-saving-before-close {
    pointer-events: none;
}
.task-detail-description-shell {
    overflow: hidden;
    border: 1px solid var(--color-border) !important;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s;
}
.task-detail-description-editor {
    min-height: 60px;
    max-height: 250px;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    color: var(--color-text-primary);
    font-size: 13px;
}
.task-detail-attachment-add {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}
.task-detail-file-input {
    display: none;
}
/* ======================== System settings hub ======================== */
.system-settings-page {
    width: 100%;
    max-width: 1580px;
    margin: 0 auto;
    color: var(--color-text-primary);
}
.system-settings-page__header, .system-settings-page__heading, .system-settings-page__role, .system-settings-overview__heading, .system-settings-card__title-row, .system-settings-card__metrics, .system-settings-card__action, .system-settings-note {
    display: flex;
    align-items: center;
}
.system-settings-page__header {
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.system-settings-page__heading {
    min-width: 0;
    gap: 14px;
}
.system-settings-page__heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 20px;
}
.system-settings-page__heading h1 {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}
.system-settings-page__heading p {
    margin: 5px 0 0;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.55;
}
.system-settings-page__role {
    flex: 0 0 auto;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg-surface);
    color: var(--color-text-secondary);
    font-size: 12px;
    font-weight: 600;
}
.system-settings-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-bottom: 22px;
    padding: 6px;
    overflow-x: auto;
    border: 12px solid var(--color-bg-surface);
    border-radius: 14px;
    background: var(--color-bg-surface);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    scrollbar-width: none;
}
.system-settings-nav::-webkit-scrollbar {
    display: none;
}
.system-settings-nav__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 0.2s,
        color 0.2s,
        box-shadow 0.2s;
}
.system-settings-nav__item:hover {
    background: var(--color-bg-surface-soft);
    color: var(--color-text-primary);
}
.system-settings-nav__item.is-active {
    background: var(--color-primary-light);
    color: var(--color-primary);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.system-settings-overview {
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-bg-surface);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}
.system-settings-overview__heading {
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}
.system-settings-overview__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.system-settings-overview__heading h2 {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 18px;
    font-weight: 700;
}
.system-settings-overview__heading p {
    margin: 5px 0 0;
    color: var(--color-text-muted);
    font-size: 13px;
}
.system-settings-overview__count {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
}
.system-settings-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.system-settings-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 270px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
    text-decoration: none;
    transition:
        transform 0.2s,
        border-color 0.2s,
        box-shadow 0.2s;
}
.system-settings-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--settings-card-accent, var(--color-primary));
    content: "";
}
.system-settings-card:hover {
    transform: translateY(-3px);
    border-color: var(--settings-card-accent, var(--color-primary));
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}
.system-settings-card--notifications {
    --settings-card-accent: var(--color-primary);
    --settings-card-soft: var(--color-primary-light);
}
.system-settings-card--tasks {
    --settings-card-accent: #6366f1;
    --settings-card-soft: #eef2ff;
}
.system-settings-card--email {
    --settings-card-accent: #2563eb;
    --settings-card-soft: #eff6ff;
}
.system-settings-card--line {
    --settings-card-accent: #06c755;
    --settings-card-soft: #ecfdf3;
}
.system-settings-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 17px;
    border-radius: 14px;
    background: var(--settings-card-soft, var(--color-primary-light));
    color: var(--settings-card-accent, var(--color-primary));
    font-size: 19px;
}
.system-settings-card__body {
    flex: 1;
}
.system-settings-card__title-row {
    justify-content: space-between;
    gap: 10px;
}
.system-settings-card__title-row h3 {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 16px;
    font-weight: 700;
}
.system-settings-card__body > p {
    min-height: 44px;
    margin: 8px 0 16px;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.65;
}
.system-settings-card__badge, .system-settings-card__status {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}
.system-settings-card__badge {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.system-settings-card__status.is-ready {
    background: #eef2ff;
    color: #4f46e5;
}
.system-settings-card__status.is-connected {
    background: #ecfdf3;
    color: #047857;
}
.system-settings-card__status.is-pending {
    background: #fff7ed;
    color: #c2410c;
}
.system-settings-card__metrics {
    flex-wrap: wrap;
    gap: 8px;
}
.system-settings-card__metrics span {
    padding: 6px 9px;
    border-radius: 8px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    font-size: 11px;
}
.system-settings-card__metrics strong {
    color: var(--color-text-primary);
    font-size: 13px;
}
.system-settings-card__action {
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
    color: var(--settings-card-accent, var(--color-primary));
    font-size: 12px;
    font-weight: 700;
}
.system-settings-card__action i {
    transition: transform 0.2s;
}
.system-settings-card:hover .system-settings-card__action i {
    transform: translateX(3px);
}
.system-settings-note {
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #eff6ff;
    color: #1e3a5f;
}
.system-settings-note__icon {
    padding-top: 2px;
    color: #2563eb;
}
.system-settings-note strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}
.system-settings-note p {
    margin: 0;
    color: #52708f;
    font-size: 12px;
    line-height: 1.55;
}
.task-attachment-drop-zone {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 112px;
    padding: 16px;
    border: 2px dashed var(--color-border);
    border-radius: 16px;
    background: rgba(249, 250, 251, 0.5);
    transition:
        border-color 0.2s,
        background-color 0.2s,
        box-shadow 0.2s;
}
.task-attachment-drop-zone.is-dragover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}
.task-attachment-drop-zone--offcanvas {
    min-height: 88px;
}
.task-attachment-drop-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    color: var(--color-text-muted);
    font-size: 13px;
    text-align: center;
}
.task-attachment-drop-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 500;
    pointer-events: none;
}
.task-attachment-drop-zone.is-dragover .task-attachment-drop-hint {
    color: var(--color-primary);
}
.task-detail-attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.task-detail-attachment-item {
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg-base);
    transition: all 0.2s;
}
.task-detail-attachment-link {
    flex: 1;
    gap: 8px;
    min-width: 0;
    max-width: 200px;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
}
.task-detail-attachment-icon, .task-detail-attachment-actions {
    flex-shrink: 0;
}
.task-detail-attachment-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.task-detail-attachment-actions {
    gap: 4px;
}
.task-detail-attachment-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.task-detail-attachment-empty, .task-detail-activity-empty {
    padding: 24px;
    border: 2px dashed var(--color-border);
    border-radius: 16px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}
.task-detail-subtask-progress {
    gap: 12px;
}
.task-detail-subtask-progress-track {
    width: 160px;
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--color-border);
}
.task-detail-subtask-list, .task-detail-activity-thread {
    display: flex;
    flex-direction: column;
}
.task-detail-subtask-list {
    gap: 8px;
}
.task-detail-activity-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.task-detail-activity-thread {
    gap: 4px;
}
.task-detail-comment-item {
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--color-border);
}
.task-detail-comment-item--new {
    animation: fadeIn 0.4s ease;
}
.task-detail-comment-avatar, .task-detail-comment-menu-wrap {
    flex-shrink: 0;
}
.task-detail-comment-avatar img {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.task-detail-comment-author {
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
}
.task-detail-comment-separator {
    color: var(--color-text-muted);
}
.task-detail-comment-body {
    flex: 1;
    min-width: 0;
    color: var(--color-text-primary);
    font-size: 13px;
}
.task-detail-comment-menu-wrap {
    position: relative;
}
.task-detail-comment-menu-toggle {
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
}
.task-detail-comment-menu {
    position: absolute;
    z-index: 100;
    top: 100%;
    right: 0;
    display: none;
    min-width: 160px;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.task-detail-comment-menu-item {
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s;
}
.task-detail-comment-menu-item--danger {
    color: var(--color-primary);
}
.task-detail-activity-empty-text {
    color: var(--color-text-muted);
}
.task-detail-comment-composer-row {
    align-items: flex-end;
    gap: 12px;
}
.task-detail-comment-composer {
    flex: 1;
    overflow: visible;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: all 0.2s;
}
.task-detail-comment-editor {
    min-height: 44px;
    color: var(--color-text-primary);
    font-size: 13px;
}
.task-detail-comment-send {
    flex-shrink: 0;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}
.task-detail-comment-helper {
    margin-top: 5px;
    color: var(--color-text-muted);
    font-size: 12px;
}
.task-detail-comment-helper > svg {
    position: relative;
    top: 3px;
}
/* Extracted from resources/views/tasks/partials/detail_content.blade.php; keep page templates free of inline style blocks. */
#offcanvas-content {
    min-height: 0 !important;
}
.property-grid {
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.property-grid input.date-input-premium {
    width: auto;
}
.property-row {
    display: flex;
    align-items: center;
    min-height: 32px;
}
.property-label {
    width: 110px;
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.property-value {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.task-manual-progress-property {
    column-gap: 10px;
    row-gap: 5px;
}
.task-manual-progress-control {
    box-sizing: border-box;
    display: inline-flex;
    width: 108px;
    height: 34px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--color-line-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--color-text-muted);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}
.task-manual-progress-control:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}
.task-manual-progress-input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 4px 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text-primary);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
}
.task-manual-progress-control > span {
    padding-right: 10px;
    font-size: 12px;
    font-weight: 600;
}
.task-manual-progress-control.is-disabled {
    border-color: var(--color-border);
    background: var(--color-bg-base);
    color: var(--color-text-muted);
}
.task-manual-progress-control.is-disabled .task-manual-progress-input {
    color: var(--color-text-muted);
    cursor: not-allowed;
}
.task-manual-progress-help {
    color: var(--color-text-muted);
    font-size: 11px;
    line-height: 1.35;
}
.task-calendar-option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-base);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.task-calendar-option:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}
.task-calendar-option__icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 9px;
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.task-calendar-option__copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    color: var(--color-text-primary);
}
.task-calendar-option__copy strong {
    font-size: 13px;
    font-weight: 600;
}
.task-calendar-option__copy small {
    color: var(--color-text-muted);
    font-size: 11px;
    line-height: 1.4;
}
.task-calendar-property {
    min-height: 34px;
}
.task-calendar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-primary);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}
.task-calendar-switch__input:disabled {
    cursor: wait;
}
.task-detail-title {
    margin: 0 0 16px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 6px;
    outline: none;
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    cursor: text;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}
.task-detail-title:hover, .task-detail-title:focus {
    border-color: var(--color-border);
}
.task-detail-title:focus {
    background: var(--color-bg-base);
}
.task-assignee-empty {
    color: var(--color-text-muted);
    font-size: 13px;
    font-style: italic;
}
.task-assignee-pills {
    display: contents;
}
.task-assignee-add-control {
    margin-left: 4px;
}
.premium-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.premium-select {
    border: 1px solid var(--color-border);
    border-radius: 90px;
    padding: 4px 28px 4px 12px;
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    height: 34px;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.premium-select:hover, .premium-select:focus {
    background-color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.assignee-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 5px;
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.2s;
}
.form-group-compact .assignee-pill {
    width: 100%;
    padding: 10px;
}
.assignee-pill:hover {
    border-color: #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.assignee-pill.is-entering {
    opacity: 0;
    transform: translateY(3px) scale(0.96);
}
.assignee-remove {
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}
.assignee-remove:hover {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.assignee-select {
    background-color: transparent;
    border: 1px dashed #cbd5e1;
    color: var(--color-text-muted);
    height: 30px;
    border-radius: 90px;
    padding: 0 16px 0 12px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    box-shadow: none;
}
.assignee-select:hover, .assignee-select:focus {
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    border-color: var(--color-text-muted-2);
}
.date-input-premium {
    border: 1px solid var(--color-line-strong);
    background: transparent;
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-primary);
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    height: 32px;
}
.date-input-premium:hover, .date-input-premium:focus {
    border-color: var(--color-border);
}
#comment-editor-wrapper .ql-toolbar.ql-snow, .comment-edit-wrapper .ql-toolbar.ql-snow {
    border: none !important;
    border-bottom: 1px solid var(--color-border) !important;
    background: var(--color-bg-base);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 8px !important;
    display: none;
}
#comment-editor-wrapper.editing .ql-toolbar.ql-snow, .comment-edit-wrapper.editing .ql-toolbar.ql-snow {
    display: block;
}
#comment-editor-wrapper .ql-container.ql-snow, .comment-edit-wrapper .ql-container.ql-snow {
    border: none !important;
    font-family: inherit !important;
    font-size: 13px !important;
}
#comment-editor-wrapper .ql-editor, .comment-edit-wrapper .ql-editor {
    padding: 10px 16px !important;
    min-height: 44px !important;
    line-height: 1.5;
    height: auto;
    overflow-y: visible !important;
}
/* Fix image overflow */
#comment-editor-wrapper .ql-editor.ql-blank::before, .comment-edit-wrapper .ql-editor.ql-blank::before {
    font-style: normal;
    color: var(--color-text-muted);
    opacity: 0.7;
}
/* Shared task subtask rows (single page and task offcanvas). */
.task-subtask-progress-summary {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 5px 15px;
    border-radius: 90px;
    background: var(--color-primary-light);
    color: var(--progress-scale-color, var(--color-primary));
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
}
.task-subtask-progress-summary[data-progress-level="progress-level-empty"] {
    --progress-scale-color: var(--color-text-muted-2);
}
.task-subtask-progress-summary[data-progress-level="progress-level-starting"] {
    --progress-scale-color: var(--color-error);
}
.task-subtask-progress-summary[data-progress-level="progress-level-early"] {
    --progress-scale-color: #f97316;
}
.task-subtask-progress-summary[data-progress-level="progress-level-middle"] {
    --progress-scale-color: #eab308;
}
.task-subtask-progress-summary[data-progress-level="progress-level-advanced"] {
    --progress-scale-color: #84cc16;
}
.task-subtask-progress-summary[data-progress-level="progress-level-near-complete"] {
    --progress-scale-color: #14b8a6;
}
.task-subtask-progress-summary[data-progress-level="progress-level-complete"] {
    --progress-scale-color: var(--color-success);
}
.task-subtask-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}
.task-subtask-row--new {
    animation: task-subtask-row-enter 0.2s ease;
}
.task-subtask-row input {
    padding: 0;
}
@keyframes task-subtask-row-enter {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.task-subtask-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 30px;
    color: var(--color-text-muted);
    cursor: grab;
    user-select: none;
}
.task-subtask-drag-handle:active {
    cursor: grabbing;
}
.task-subtask-drag-handle .fa-grip-vertical {
    pointer-events: none;
    font-size: 13px;
}
.task-subtask-title-input, .task-subtask-row .subtask-input, .task-subtask-row .subtask-title-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
}
.task-subtask-progress-control {
    display: inline-flex;
    align-items: center;
    flex: 0 0 78px;
    width: 78px;
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    color: var(--color-text-secondary);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}
.task-subtask-progress-control:focus-within, .task-subtask-progress-date:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.08);
    outline: 0;
}
.task-subtask-progress-input {
    width: 100%;
    min-width: 0;
    padding: 0 !important;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text-primary);
    font-size: 12px;
    text-align: right;
}
.task-subtask-progress-input::-webkit-inner-spin-button, .task-subtask-progress-input::-webkit-outer-spin-button {
    margin: 0;
}
.task-subtask-progress-control > span {
    margin-left: 3px;
    font-size: 12px;
}
.task-subtask-progress-date {
    flex: 0 0 136px;
    width: 136px;
    height: 34px;
    padding: 0 8px !important;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    outline: 0;
    color: var(--color-text-secondary);
    font-family: inherit;
    font-size: 12px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}
/* The global Thai date picker adds a button after the native date input.
   Keep that generated button from consuming the whole subtask flex row. */
.task-subtask-row > .task-subtask-progress-date + .thai-date-field {
    box-sizing: border-box;
    flex: 0 0 190px;
    width: 190px;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 12px;
}
.task-subtask-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    opacity: 0;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        opacity 0.2s ease;
}
.task-subtask-row:hover .task-subtask-delete-button, .task-subtask-delete-button:focus-visible {
    opacity: 1;
}
.task-subtask-delete-button:hover {
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-error);
}
.task-subtask-add-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}
.task-subtask-add-input {
    flex: 1;
    min-width: 0;
    padding: 4px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
}
.task-subtask-add-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--color-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
/* Remaining task page styles extracted from Blade templates. */
/* Quill Customizations */
.ql-editor p {
    margin-bottom: 0;
}
.view-edit-quill .ql-editor, .detail-edit-quill .ql-editor {
    padding: 12px 14px;
    min-height: 40px;
}
/* Description Editor */
#view-desc-wrapper .ql-toolbar.ql-snow {
    border: none !important;
    border-bottom: 1px solid var(--color-border) !important;
    background: var(--color-bg-base);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 8px !important;
    display: none;
}
#view-desc-wrapper.editing .ql-toolbar.ql-snow {
    display: block;
}
#view-desc-wrapper .ql-container.ql-snow {
    border: none !important;
    font-family: inherit !important;
    font-size: 13px !important;
}
#view-desc-wrapper .ql-editor {
    padding: 14px 16px !important;
    line-height: 1.7;
    min-height: 80px;
}
#view-desc-wrapper .ql-editor.ql-blank::before {
    font-style: normal;
    color: var(--color-text-muted);
    opacity: 0.6;
}
#view-desc-wrapper:not(.editing) {
    border-color: transparent !important;
}
#view-desc-wrapper:not(.editing):hover {
    border-color: var(--color-border) !important;
}
#view-desc-wrapper.editing {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px var(--color-primary-light);
}
#view-desc-wrapper::after {
    content: "";
    display: table;
    clear: both;
}
/* Fix image overflow globally for Quill & contents */
/* Fix image overflow globally for Quill & contents */
.ql-editor img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.comment-body-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    object-fit: scale-down;
}
#view-desc-editor img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: scale-down;
}
/* Comment Editor Styles */
#view-comment-wrapper .ql-toolbar.ql-snow, .comment-edit-wrapper .ql-toolbar.ql-snow {
    border: none !important;
    border-bottom: 1px solid var(--color-border) !important;
    background: var(--color-bg-base);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 8px !important;
    display: none;
}
.comment-edit-wrapper.editing .ql-toolbar.ql-snow {
    display: block;
}
#view-comment-wrapper .ql-container.ql-snow, .comment-edit-wrapper .ql-container.ql-snow {
    border: none !important;
    font-family: inherit !important;
    font-size: 13px !important;
}
#view-comment-wrapper .ql-editor, .comment-edit-wrapper .ql-editor {
    padding: 12px 16px !important;
    max-height: 150px;
    overflow-y: auto !important;
}
#view-comment-wrapper .ql-editor.ql-blank::before, .comment-edit-wrapper .ql-editor.ql-blank::before {
    font-style: normal;
    color: var(--color-text-muted);
    opacity: 0.7;
}
#view-comment-wrapper:focus-within, .comment-edit-wrapper:focus-within {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px var(--color-primary-light) !important;
}
/* Auto-save indicator */
.save-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.save-indicator.show {
    opacity: 1;
}
.save-indicator.success {
    background: #dcfce7;
    color: #16a34a;
}
.save-indicator.error {
    background: var(--color-error-light);
    color: var(--color-primary-hover);
}
#task-desc-editor-wrapper .ql-toolbar.ql-snow {
    border: none !important;
    border-bottom: 1px solid var(--color-border) !important;
    background: var(--color-bg-base);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 8px !important;
    display: none;
    font-family: inherit;
}
#task-desc-editor-wrapper.editing .ql-toolbar.ql-snow {
    display: block;
}
#task-desc-editor-wrapper .ql-container.ql-snow {
    border: none !important;
    font-family: inherit !important;
    font-size: 13px !important;
}
#task-desc-editor-wrapper .ql-editor {
    padding: 12px !important;
    line-height: 1.6;
    min-height: 60px;
    height: auto !important;
    max-height: 250px;
    overflow-y: auto;
}
#task-desc-editor-wrapper.editing .ql-editor {
    min-height: 150px;
}
.inline-quill {
    display: inline !important;
}
.inline-quill * {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* Single-line comment layout */
.comment-single-line {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    flex: 1;
}
.comment-single-line .comment-text-wrap {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
    flex: 1;
    cursor: pointer;
}
.comment-single-line .comment-text-wrap:not(.expanded) {
    max-height: unset !important;
}
.comment-single-line .comment-text-wrap.expanded {
    max-height: none;
    flex-wrap: wrap;
}
.comment-single-line .comment-text-wrap .comment-body-content {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}
.comment-single-line .comment-text-wrap.expanded .comment-body-content {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}
.comment-single-line .comment-time {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--color-text-muted);
    white-space: nowrap;
}
.comment-dropdown-menu {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 8px;
    z-index: 100;
    right: 0;
    top: 100%;
}
.comment-dropdown-menu.show {
    display: block;
}
.comment-dropdown-menu a {
    display: flex;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}
.comment-dropdown-menu a:hover {
    background: var(--color-bg-base);
}
#new-comment-wrapper .ql-container.ql-snow {
    border: none !important;
    font-family: inherit !important;
    font-size: 13px !important;
}
#new-comment-wrapper .ql-editor {
    padding: 12px 16px !important;
    min-height: 44px;
    max-height: 150px;
    overflow-y: auto;
}
/* ================================================================
   Shared trash management
   Compact, reusable UI for every module recycle bin
   ================================================================ */
.trash-management-page {
    width: 100%;
}
.trash-management-header {
    align-items: center;
}
.trash-management-heading-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.trash-management-heading-icon {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
    font-size: 18px;
}
.trash-management-count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 90px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.trash-management-card {
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 16px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card);
}
.trash-management-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-line);
    background: #fff;
}
.trash-management-search {
    flex: 1 1 320px;
    max-width: 440px;
}
.trash-management-search .app-search-field {
    width: 100%;
}
.trash-management-search .app-search-field__input {
    width: 100%;
    background: var(--color-bg-surface);
}
.trash-management-toolbar-actions {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}
.trash-management-selection-summary, .trash-management-bulk-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.trash-management-selection-summary {
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
}
.trash-management-selection-summary strong {
    color: var(--color-text-primary);
    font-weight: 600;
}
.trash-management-selection-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--color-success-light);
    color: #059669;
    font-size: 12px;
}
.trash-management-table-wrap {
    overflow-x: auto;
}
.trash-management-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    table-layout: fixed;
}
.trash-management-table th, .trash-management-table td {
    height: 54px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--color-line);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    vertical-align: middle;
}
.trash-management-table th {
    height: 44px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-primary);
    font-weight: 600;
    white-space: nowrap;
}
.trash-management-table th:nth-child(2) {
    width: 31%;
}
.trash-management-table th:nth-child(3) {
    width: 32%;
}
.trash-management-table th:nth-child(4) {
    width: 18%;
}
.trash-management-table tbody tr:last-child td {
    border-bottom: 0;
}
.trash-management-row {
    transition: background-color 0.18s ease;
}
.trash-management-row:hover {
    background: #fbfcfe;
}
.trash-management-table .trash-management-checkbox-column {
    width: 52px;
    padding-right: 10px;
    padding-left: 10px;
    text-align: center;
}
.trash-select-checkbox {
    position: relative;
    display: inline-block;
    flex: 0 0 18px;
    width: 18px;
    min-width: 18px;
    max-width: 18px;
    height: 18px;
    min-height: 18px;
    max-height: 18px;
    margin: 0;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    vertical-align: middle;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}
.trash-select-checkbox:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 7%, transparent);
}
.trash-select-checkbox:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 12%, transparent);
}
.trash-select-checkbox:checked, .trash-select-checkbox:indeterminate {
    border-color: var(--color-primary);
    background: var(--color-primary);
    box-shadow: 0 2px 5px color-mix(in srgb, var(--color-primary) 20%, transparent);
}
.trash-select-checkbox:checked::after {
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    content: "";
    transform: rotate(45deg);
}
.trash-select-checkbox:indeterminate::after {
    position: absolute;
    top: 7px;
    left: 4px;
    width: 8px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    content: "";
}
.trash-management-item-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.trash-management-item-icon {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    font-size: 14px;
}
.trash-management-item-copy {
    display: block;
    min-width: 0;
}
.trash-management-item-copy strong, .trash-management-item-copy small, .trash-management-detail, .trash-management-date {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.trash-management-item-copy strong, .trash-management-item-copy small {
    display: block;
}
.trash-management-item-copy strong {
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
}
.trash-management-item-copy small {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.trash-management-detail, .trash-management-date {
    color: var(--color-text-secondary);
}
.trash-management-table .trash-management-action-heading, .trash-management-table .trash-management-actions {
    width: 112px;
    text-align: right;
}
.trash-management-actions {
    white-space: nowrap;
}
.trash-management-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: 4px;
    border: 1px solid var(--color-line-strong);
    border-radius: 9px;
    background: #fff;
    color: var(--color-text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}
.trash-management-action:hover {
}
.trash-management-action--restore:hover {
    border-color: #a7f3d0;
    background: var(--color-success-light);
    color: #059669;
}
.trash-management-action--delete:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.trash-management-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    color: var(--color-text-muted);
    text-align: center;
}
.trash-management-empty > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    border-radius: 15px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted-2);
    font-size: 20px;
}
.trash-management-empty strong {
    color: var(--color-text-primary);
    font-size: 15px;
    font-weight: 600;
}
.trash-management-empty p {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 400;
}
.trash-management-pagination {
    margin-top: 18px;
}
.trash-management-page > form[id^="trash"] {
    display: none;
}
.trash-overview-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px 18px;
    border: 1px solid var(--color-primary-border-strong);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary-subtle) 0%, #fff 100%);
}
.trash-overview-summary__icon {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--color-primary-border-strong);
    color: var(--color-primary-hover);
    font-size: 17px;
}
.trash-overview-summary > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}
.trash-overview-summary small, .trash-overview-summary p {
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
}
.trash-overview-summary strong {
    margin-top: 2px;
    color: var(--color-text-primary);
    font-size: 19px;
    font-weight: 600;
}
.trash-overview-summary p {
    margin-left: auto;
}
.trash-overview-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--color-line);
}
.trash-overview-card-header h2 {
    color: var(--color-text-primary);
    font-size: 17px;
    font-weight: 600;
}
.trash-overview-card-header p {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.trash-overview-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    table-layout: fixed;
}
.trash-overview-table th, .trash-overview-table td {
    height: 54px;
    padding: 8px 18px;
    border-bottom: 1px solid var(--color-line);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
    vertical-align: middle;
}
.trash-overview-table th {
    height: 44px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-primary);
    font-weight: 600;
    text-align: left;
}
.trash-overview-table th:nth-child(2) {
    width: 180px;
}
.trash-overview-table tbody tr:last-child td {
    border-bottom: 0;
}
.trash-overview-table tbody tr:hover {
    background: #fbfcfe;
}
.trash-overview-module {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--color-text-primary);
}
.trash-overview-module > span {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-secondary);
}
.trash-overview-module strong {
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.trash-overview-module-count {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 90px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    font-weight: 600;
}
.trash-overview-module-count.has-items {
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.trash-overview-action-heading, .trash-overview-actions {
    width: 280px;
    text-align: right;
}
.trash-overview-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.trash-overview-actions form {
    margin: 0;
}
.trash-overview-page > #trashOverviewEmptyAll {
    display: none;
}
/* Chat page styles moved from resources/views/chat/index.blade.php */
/* Chat Layout styles - Premium Design */
.chat-layout {
    display: flex;
    height: calc(100vh - 100px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.chat-sidebar {
    width: 280px;
    min-width: 0;
    background: #fdfdfd;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition:
        width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        border 0.3s ease;
    overflow: hidden;
}
.chat-sidebar.collapsed {
    width: 0;
    border-right: none;
}
.chat-sidebar.collapsed .chat-sidebar-header, .chat-sidebar.collapsed .chat-list {
    opacity: 0;
    pointer-events: none;
}
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    position: relative;
    min-width: 0;
}
.chat-file-drop-overlay {
    position: absolute;
    inset: 8px;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    padding: 20px;
    border: 2px solid color-mix(in srgb, var(--color-primary) 45%, transparent);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.14);
    pointer-events: none;
    transition:
        opacity 0.16s ease,
        visibility 0.16s ease;
}
.chat-file-drop-overlay.is-visible {
    visibility: visible;
    opacity: 1;
}
.chat-file-drop-overlay__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 320px;
    gap: 7px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}
.chat-file-drop-overlay__content i {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    margin-bottom: 3px;
    border-radius: 50%;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    font-size: 25px;
}
.chat-file-drop-overlay__content strong {
    color: var(--color-text-primary);
    font-size: 15px;
    font-weight: 600;
}
.chat-right {
    background: #ffffff;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    width: 320px;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    flex-shrink: 0;
}
.chat-extra-actions.show {
    display: flex;
}
.chat-theme-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    grid-gap: 6px;
}
.theme-option {
    display: flex;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.theme-option:hover {
    transform: scale(1.1);
}
.theme-option.active {
    box-shadow:
        0 0 0 2px #fff,
        0 0 0 3px var(--color-primary);
}
.chat-right.collapsed {
    width: 0;
    border-left: none;
}
.chat-accordion {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.chat-accordion-header {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #111827;
    transition: background 0.2s;
}
.chat-accordion-header:hover {
    background: rgba(0, 0, 0, 0.02);
}
.chat-accordion-icon {
    transition: transform 0.3s;
    color: #9ca3af;
}
.chat-accordion.open .chat-accordion-icon {
    transform: rotate(180deg);
}
.chat-accordion-content {
    padding: 0 20px 16px;
    display: none;
}
.chat-accordion.open .chat-accordion-content {
    display: block;
}
.chat-info-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.chat-info-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: #4b5563;
}
.chat-info-action-btn .icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: #111827;
}
.chat-info-action-btn:hover .icon-circle {
    background: rgba(0, 0, 0, 0.1);
}
.chat-info-action-btn span {
    font-size: 12px;
    font-weight: 400;
}
.chat-extra-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
/* Sidebar parts */
.chat-sidebar-header {
    padding: 24px 20px 16px;
}
.chat-search-input-wrapper {
    position: relative;
    margin-top: 16px;
}
.chat-search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: #f3f4f6;
    font-size: 14px;
    transition: all 0.2s;
}
.chat-search-input:focus {
    background: #fff;
    border: 1px solid var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.chat-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}
.chat-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px 12px;
}
.chat-list::-webkit-scrollbar {
    width: 4px;
}
.chat-list::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 4px;
}
.chat-list::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}
.chat-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    border: 1px solid transparent;
}
.chat-item:hover {
    background: #f3f4f6;
}
.chat-item.active {
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.15);
}
.chat-item .pin-btn {
    opacity: 0;
    transition:
        color 0.18s ease,
        background 0.18s ease,
        opacity 0.18s ease;
    cursor: pointer;
    color: #9ca3af;
}
.chat-item:hover .pin-btn, .chat-item:focus-within .pin-btn, .chat-item .pin-btn.is-active {
    opacity: 1;
}
.chat-item .pin-btn.is-active {
    background: var(--color-primary-border-strong);
    color: var(--color-primary-hover);
}
.chat-item .pin-btn:hover {
    background: #f1f5f9;
    color: var(--color-primary);
}
.chat-item .pin-btn.is-active:hover {
    background: var(--color-primary-border-strong);
    color: var(--color-primary-hover);
}
.chat-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.chat-item-info {
    flex: 1;
    overflow: hidden;
}
.chat-item-name {
    font-weight: 600;
    font-size: 14.5px;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
/* The pin state belongs in the right-side action only.
   This also neutralizes stale compiled Blade markup that placed a pin beside the name. */
.chat-item-name .fa-thumbtack, .chat-item-name > span:has(.fa-thumbtack) {
    display: none !important;
}
.chat-item-last {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-unread-badge {
    background: var(--color-unread-badge);
    color: white;
    font-size: 12px;
    font-weight: 600;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-left: 8px;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}
/* Main Chat parts */
.chat-main-header {
    height: 60px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    z-index: 10;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #f9fafb;
}
.message-bubble-wrapper {
    display: flex;
    margin-bottom: 20px;
}
.message-bubble-wrapper.me {
    justify-content: flex-end;
}
.message-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    align-self: flex-end;
    margin-bottom: 20px;
}
.message-bubble {
    padding: 8px 15px;
    border-radius: 14px;
    font-family: sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}
/* Default single message (Me) */
.message-bubble-wrapper.me:not(.grouped-prev):not(.grouped-next) .message-bubble {
    border-radius: 18px 18px 18px 18px;
}
/* First message in group (Me) */
.message-bubble-wrapper.me.grouped-next:not(.grouped-prev) .message-bubble {
    border-radius: 18px 18px 4px 18px;
}
/* Middle message in group (Me) */
.message-bubble-wrapper.me.grouped-prev.grouped-next .message-bubble {
    border-radius: 18px 4px 4px 18px;
}
/* Last message in group (Me) */
.message-bubble-wrapper.me.grouped-prev:not(.grouped-next) .message-bubble {
    border-radius: 18px 4px 18px 18px;
}
.message-bubble-wrapper.me .message-bubble {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}
/* Default single message (Other) */
.message-bubble-wrapper.other:not(.grouped-prev):not(.grouped-next) .message-bubble {
    border-radius: 18px 18px 18px 18px;
}
/* First message in group (Other) */
.message-bubble-wrapper.other.grouped-next:not(.grouped-prev) .message-bubble {
    border-radius: 18px 18px 18px 4px;
}
/* Middle message in group (Other) */
.message-bubble-wrapper.other.grouped-prev.grouped-next .message-bubble {
    border-radius: 4px 18px 18px 4px;
}
/* Last message in group (Other) */
.message-bubble-wrapper.other.grouped-prev:not(.grouped-next) .message-bubble {
    border-radius: 4px 18px 18px 18px;
}
.message-bubble-wrapper.other .message-bubble {
    background: #ebeced;
    border: none;
    color: #172033;
}
/* Styling for hyperlinks inside messages and editor */
.message-bubble a, #chatInputEditor .ql-editor a {
    color: inherit;
    font-weight: 600;
    text-underline-offset: 2px;
    transition: opacity 0.2s;
}
.message-bubble a:hover, #chatInputEditor .ql-editor a:hover {
    opacity: 0.8;
}
.message-bubble-wrapper.other .message-bubble a {
    color: var(--color-primary);
    /* Blue/Primary color for links on white background */
}
.message-time {
    font-size: 11.5px;
    color: #9ca3af;
    display: flex;
    align-items: center;
}
.message-time-text {
    margin-top: 4px;
}
.read-status-container {
    margin-top: 4px;
}
.read-status-container:empty {
    display: none !important;
    margin-top: 0 !important;
}
.message-bubble-wrapper.me .message-time {
    justify-content: flex-end;
}
.message-bubble-wrapper.grouped-next .message-avatar {
    visibility: hidden;
}
.message-bubble-wrapper.grouped-prev .chat-message-meta {
    display: none;
}
.message-bubble-wrapper.grouped-next .message-time {
    display: none !important;
}
.message-bubble-wrapper.grouped-next {
    margin-bottom: 2px !important;
}
.message-bubble-wrapper:not(.grouped-next) {
    margin-bottom: 16px;
}
button.btn-attach.btn-more-actions {
    display: none;
}
.chat-input-area .btn-more-actions {
    display: none;
}
.chat-input-area .chat-extra-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-input-area.has-content .btn-more-actions {
    display: flex;
}
.chat-input-area {
    padding: 14px 20px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: flex-end;
    gap: 12px;
}
.chat-textarea-wrapper {
    flex: 1;
    background: #f0f2f5;
    border-radius: 20px;
    padding: 2px 14px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.chat-textarea-wrapper:focus-within {
    background: #f0f2f5;
    border: 1px solid transparent;
    box-shadow: none;
}
.chat-textarea {
    flex: 1;
    max-height: 250px;
    min-height: 24px;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 15.5px;
    resize: none;
    font-family: inherit;
    color: #1f2937;
    outline: none;
    overflow-y: hidden;
}
.btn-send, .btn-attach, .btn-icon {
    width: 42px;
    height: 42px;
    font-size: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-send {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.btn-send:hover {
    transform: scale(1.05);
    background: #4338ca;
}
.btn-attach {
    background: transparent;
    color: #6b7280;
}
.btn-attach:hover, .btn-icon:hover {
    background: #f3f4f6;
    color: #374151;
}
.btn-icon {
    background: transparent;
    color: #6b7280;
}
.btn-icon.active {
    color: var(--color-primary);
    background: rgba(79, 70, 229, 0.1);
}
.message-image {
    max-width: 250px;
    border-radius: 12px;
    margin-top: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}
.message-image:hover {
    transform: scale(1.02);
}
.unsend-btn {
    opacity: 0;
    cursor: pointer;
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 600;
    transition: opacity 0.2s;
}
.message-bubble-wrapper {
    transition: background 0.3s;
    border-radius: 8px;
    padding: 2px 4px;
}
.message-bubble-wrapper:hover .unsend-btn, .message-bubble-wrapper:hover .message-actions {
    opacity: 1 !important;
}
.btn-msg-action {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f0f2f5;
    color: #65676b;
}
.btn-msg-action:hover {
    background: #e4e6eb;
    color: #1c1e21;
}
/* Empty State */
.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9ca3af;
}
.chat-empty-svg {
    width: 100px;
    height: 100px;
    margin-bottom: 24px;
    opacity: 0.5;
}
/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    padding: 0 20px;
}
.modal-box {
    background: #fff;
    width: 440px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-title {
    font-weight: 600;
    font-size: 19px;
    color: #111827;
}
.modal-close {
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    background: #f3f4f6;
    color: var(--color-primary);
}
.modal-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 24px 0;
}
.modal-tab {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}
.modal-tab:hover {
    color: #111827;
}
.modal-tab.active {
    background: rgba(79, 70, 229, 0.08);
    color: var(--color-primary);
}
.modal-body {
    padding: 20px;
    padding-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: 0.2s;
}
.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.member-search-results {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.member-search-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid #e5e7eb;
    transition: 0.2s;
}
.member-search-item:hover {
    background: #f9fafb;
}
.member-search-item.selected {
    background: rgba(79, 70, 229, 0.05);
}
.member-pill {
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.member-pill-remove {
    cursor: pointer;
    color: #9ca3af;
    font-size: 17px;
    line-height: 0;
}
.member-pill-remove:hover {
    color: var(--color-primary);
}
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: right;
}
.btn-primary {
    background: var(--color-primary);
    color: #fff;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* Rich Text Chat & Editor List Styles */
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) :is(ul, ol) {
    padding-left: 15px !important;
    margin: 4px 0 !important;
    list-style-position: outside !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) ul {
    list-style-type: disc !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) ol {
    list-style-type: decimal !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) li {
    margin-bottom: 2px !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    display: list-item !important;
    list-style-type: inherit !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) li::marker {
    color: inherit;
}
:is(#chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) li::before {
    display: none !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) .ql-indent-1 {
    margin-left: 1.5em !important;
    padding-left: 0 !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) ul .ql-indent-1 {
    list-style-type: circle !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) ol .ql-indent-1 {
    list-style-type: lower-alpha !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) .ql-indent-2 {
    margin-left: 3em !important;
    padding-left: 0 !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) ul .ql-indent-2 {
    list-style-type: square !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) ol .ql-indent-2 {
    list-style-type: lower-roman !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) .ql-indent-3 {
    margin-left: 4.5em !important;
    padding-left: 0 !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) ul .ql-indent-3 {
    list-style-type: disc !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) ol .ql-indent-3 {
    list-style-type: decimal !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) .ql-indent-4 {
    margin-left: 6em !important;
    padding-left: 0 !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) ul .ql-indent-4 {
    list-style-type: circle !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) ol .ql-indent-4 {
    list-style-type: lower-alpha !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) .ql-indent-5 {
    margin-left: 7.5em !important;
    padding-left: 0 !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) ul .ql-indent-5 {
    list-style-type: square !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) ol .ql-indent-5 {
    list-style-type: lower-roman !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) .ql-indent-6 {
    margin-left: 9em !important;
    padding-left: 0 !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) ul .ql-indent-6 {
    list-style-type: disc !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) ol .ql-indent-6 {
    list-style-type: decimal !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) .ql-indent-7 {
    margin-left: 10.5em !important;
    padding-left: 0 !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) ul .ql-indent-7 {
    list-style-type: circle !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) ol .ql-indent-7 {
    list-style-type: lower-alpha !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) .ql-indent-8 {
    margin-left: 12em !important;
    padding-left: 0 !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) ul .ql-indent-8 {
    list-style-type: square !important;
}
:is(.message-bubble, .note-card__content, #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor, .note-rich-editor .ql-editor) ol .ql-indent-8 {
    list-style-type: lower-roman !important;
}
/* Removed forced hiding of ql-toolbar so bubble theme can show it */
.ql-container {
    font-family: inherit !important;
}
#chatInputEditor .ql-editor {
    padding: 12px 0 !important;
    overflow-y: auto;
    max-height: 150px;
    word-break: break-word;
}
#chatInputEditor .ql-editor.ql-blank::before {
    left: 0;
    font-style: normal;
    color: #9ca3af;
}
/* Facebook-style Image Gallery Layout */
.message-bubble.image-only-bubble {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
}
.message-gallery {
    display: grid;
    gap: 2px;
    width: 100%;
    max-width: 320px;
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
}
.message-gallery img.message-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    cursor: pointer;
    border-radius: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    max-height: none !important;
    display: block;
}
/* 1 image */
.message-gallery[data-count="1"] {
    display: block;
}
.message-gallery[data-count="1"] img.message-image {
    border-radius: 18px !important;
    max-height: 400px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
}
/* 2 images */
.message-gallery.grid-2col {
    grid-template-columns: 1fr 1fr;
}
.message-gallery.grid-2col img.message-image {
    aspect-ratio: 1;
}
/* 3 images */
.message-gallery.grid-3img {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}
.message-gallery.grid-3img img.message-image:nth-child(1) {
    grid-column: 1 / 3;
    aspect-ratio: 16 / 9;
}
.message-gallery.grid-3img img.message-image:nth-child(2), .message-gallery.grid-3img img.message-image:nth-child(3) {
    aspect-ratio: 1;
}
.modal-box-premium {
    border-radius: 16px;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.modal-header-premium {
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 16px;
}
.modal-title-premium {
    font-size: 16px;
}
.modal-close-premium {
    background: #f3f4f6;
    border-radius: 50%;
    padding: 4px;
}
.modal-body-premium {
    padding-top: 20px;
    max-height: 70vh;
    overflow-y: auto;
}
.modal-body-premium-flex {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
}
.modal-footer-premium {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #f3f4f6;
    padding-top: 16px;
}
.theme-color-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.theme-color-circle:hover {
    transform: scale(1.15);
}
.theme-color-circle.active {
    border: none;
    box-shadow:
        0 0 0 2px #ffffff,
        0 0 0 4px #d1d5db;
    transform: scale(1.15);
}
.theme-color-circle.active::after {
    content: "✓";
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.member-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    padding: 10px 14px;
    border-radius: 12px;
    transition: background 0.2s;
}
.member-item-row:hover {
    background: #f9fafb;
}
.member-role-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
}
.role-badge-owner {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.role-badge-admin {
    background: #dbeafe;
    color: var(--color-info);
}
.role-badge-member {
    background: #f3f4f6;
    color: #6b7280;
}
.member-manage-select {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    outline: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}
.member-manage-select:hover, .member-manage-select:focus {
    border-color: #d1d5db;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn-cancel-premium {
    width: auto;
    padding: 10px 20px;
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: background 0.2s;
    cursor: pointer;
}
.btn-cancel-premium:hover {
    background: #e5e7eb;
    color: #374151;
}
.chat-accordion-content button.btn-cancel-premium {
    width: 100%;
}
.btn-save-premium {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}
.btn-save-premium:hover {
    box-shadow:
        0 6px 8px -1px rgba(0, 0, 0, 0.1),
        0 4px 6px -1px rgba(0, 0, 0, 0.06);
}
.group-members-section {
    padding: 16px 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 16px;
}
.group-members-header {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
}
.group-members-count {
    color: var(--color-primary);
    font-weight: 600;
}
.group-members-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}
.group-member-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.group-member-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
    min-height: 32px;
    max-height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.group-member-item > img {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    max-width: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.group-member-item {
    min-width: 0;
}
.group-member-item .chat-member-meta {
    min-width: 0;
    flex: 1;
}
.chat-group-member-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 10px;
    transition: background-color 0.18s ease;
}
.chat-group-member-row:hover {
    background: #f8fafc;
}
.chat-group-member-row .group-member-item {
    min-width: 0;
    flex: 1;
}
.chat-group-member-remove {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--color-primary-border-strong);
    border-radius: 9px;
    background: #fff;
    color: var(--color-primary);
    font-size: 13px;
    cursor: pointer;
    opacity: 0.72;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        opacity 0.18s ease;
}
.chat-group-member-row:hover .chat-group-member-remove, .chat-group-member-remove:focus-visible {
    opacity: 1;
}
.chat-group-member-remove:hover {
    border-color: var(--color-primary);
    background: var(--color-error-light);
    color: var(--color-primary-hover);
}
.chat-member-profile-link, .chat-profile-link, .chat-message-avatar-link {
    color: inherit;
    text-decoration: none;
}
.chat-header-profile-link {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}
.chat-header-profile-link:not([href]) {
    cursor: default;
}
.chat-header-profile-link[href]:hover .chat-main-header-name {
    color: var(--color-primary);
}
.chat-header-profile-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.chat-member-profile-link:hover .group-member-name, .chat-profile-link:hover {
    color: var(--color-primary);
}
.is-profile-link {
    cursor: pointer;
}
.group-member-name {
    font-size: 13px;
    color: #374151;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: left;
}
.edit-group-wrapper {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    align-items: flex-start;
}
.edit-group-input-wrapper {
    flex: 1;
}
.chat-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.chat-action-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.chat-action-btn.danger {
    background: var(--color-error-light);
    color: var(--color-primary-hover);
    border-color: var(--color-primary-border-strong);
    box-shadow: none;
}
.chat-action-btn.danger:hover {
    background: var(--color-primary-subtle);
    border-color: var(--color-primary);
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.1);
}
.setting-label {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 8px;
    display: block;
}
.setting-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
    background: #f9fafb;
}
.setting-input:focus {
    border-color: var(--color-primary);
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.image-upload-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s;
    flex-shrink: 0;
}
.image-upload-wrapper:hover {
    border-color: var(--color-primary);
    background: #eff6ff;
}
.image-upload-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 4px 0;
    opacity: 0;
    transition: opacity 0.2s;
}
.image-upload-wrapper:hover .image-upload-overlay {
    opacity: 1;
}
/* Tribute Mentions Dropdown Premium Styling */
.tribute-container {
    position: absolute;
    top: 0;
    left: 0;
    height: auto;
    max-height: 300px;
    max-width: 350px;
    overflow: auto;
    display: block;
    z-index: 999999;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    font-family: inherit;
}
.tribute-container ul {
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #ffffff;
}
.tribute-container li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 15px;
    color: #374151;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}
.tribute-container li:hover, .tribute-container li.highlight {
    background-color: var(--color-error-light);
    color: var(--color-primary);
    font-weight: 600;
}
.tribute-container li span {
    font-weight: 600;
}
/* 🔥 Fix Emoji Picker Mobile Overflow 🔥 */
emoji-picker {
    width: 350px;
    max-width: 100%;
}
/* Chat: header inbox, conversation controls, and optimistic message states */
.chat-info-avatar-editor #infoAvatarEditOverlay {
    opacity: 0;
}
.chat-info-avatar-editor.is-editable:hover #infoAvatarEditOverlay, .chat-info-avatar-editor.is-editable:focus-within #infoAvatarEditOverlay {
    opacity: 1;
}
.chat-lightbox-control:hover, .chat-lightbox-control:focus-visible {
    background: rgba(255, 255, 255, 0.2);
}
.chat-sticker-option:hover, .chat-sticker-option:focus-within {
    background: #f3f4f6;
}
.topbar-chat-menu {
    position: relative;
}
.topbar-chat-button {
    position: relative;
}
.topbar-chat-button__icon {
    width: 21px;
    height: 21px;
    color: #334155;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}
.topbar-chat-button:hover .topbar-chat-button__icon, .topbar-chat-button[aria-expanded="true"] .topbar-chat-button__icon {
    color: var(--color-primary, var(--color-primary));
}
.topbar-chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--color-unread-badge);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
}
.topbar-chat-badge.is-hidden, .topbar-chat-notification-button.is-hidden {
    display: none;
}
.topbar-chat-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 9999;
    width: min(380px, calc(100vw - 28px));
    overflow: hidden;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}
.topbar-chat-dropdown__header, .topbar-chat-dropdown__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
}
.topbar-chat-dropdown__header {
    border-bottom: 1px solid var(--color-border, #e2e8f0);
}
.topbar-chat-dropdown__footer {
    border-top: 1px solid var(--color-border, #e2e8f0);
    background: #f8fafc;
}
.topbar-chat-dropdown__title {
    color: var(--color-text-primary, #0f172a);
    font-size: 17px;
    font-weight: 600;
}
.topbar-chat-dropdown__subtitle {
    margin-top: 2px;
    color: var(--color-text-muted, var(--color-text-muted));
    font-size: 13px;
    font-weight: 400;
}
.topbar-chat-dropdown__open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 10px;
    color: var(--color-text-secondary, #475569);
}
.topbar-chat-dropdown__open:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary, var(--color-primary));
}
.topbar-chat-list {
    max-height: 350px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.topbar-chat-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 11px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: inherit;
    text-decoration: none;
}
.topbar-chat-item:hover, .topbar-chat-item:focus-visible {
    background: #f8fafc;
}
.topbar-chat-item.has-unread {
    background: var(--color-primary-subtle);
}
.topbar-chat-avatar {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
}
.topbar-chat-avatar__initials, .topbar-chat-avatar__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}
.topbar-chat-avatar__initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.topbar-chat-avatar__image {
    z-index: 1;
    object-fit: cover;
}
.topbar-chat-avatar__presence {
    position: absolute;
    right: -1px;
    bottom: -1px;
    z-index: 2;
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--color-primary);
}
.topbar-chat-avatar__presence.is-online {
    background: #22c55e;
}
.topbar-chat-item__body, .topbar-chat-item__heading, .topbar-chat-item__footer {
    display: flex;
    min-width: 0;
}
.topbar-chat-item__body {
    flex: 1;
    flex-direction: column;
    gap: 4px;
}
.topbar-chat-item__heading, .topbar-chat-item__footer {
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.topbar-chat-item__name {
    overflow: hidden;
    color: var(--color-text-primary, #0f172a);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.topbar-chat-item__time, .topbar-chat-item__preview {
    color: var(--color-text-muted, var(--color-text-muted));
    font-size: 12px;
    font-weight: 400;
}
.topbar-chat-item__time {
    flex: 0 0 auto;
    font-size: 12px;
}
.topbar-chat-item__preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.topbar-chat-item__unread {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 90px;
    background: var(--color-unread-badge);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}
.topbar-chat-empty {
    padding: 30px 16px;
    color: var(--color-text-muted, var(--color-text-muted));
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}
.topbar-chat-notification-button, .topbar-chat-view-all {
    border: 0;
    background: transparent;
    color: var(--color-text-secondary, #475569);
    font-size: 13px;
    font-weight: 600;
}
.topbar-chat-notification-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    cursor: pointer;
}
.topbar-chat-notification-button.is-enabled {
    color: #059669;
}
.web-push-prompt {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
    margin: 12px;
    padding: 20px;
    border: 1px solid var(--color-primary-border-strong);
    border-radius: 12px;
    background: var(--color-primary-subtle);
}
.web-push-settings-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 9999;
    width: 340px;
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.12);
}
.web-push-settings-dropdown__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
    color: var(--color-text-primary, #0f172a);
    font-size: 13px;
    font-weight: 600;
}
.web-push-settings-dropdown__header i {
    color: var(--color-text-muted, var(--color-text-muted));
}
.web-push-settings-dropdown .web-push-prompt {
    margin: 10px;
}
.web-push-settings-toggle {
    position: relative;
}
.web-push-settings-toggle.is-enabled {
    color: #059669;
}
.web-push-settings-toggle.is-enabled::after {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--color-success);
    content: "";
}
.web-push-prompt.is-enabled {
    border-color: #a7f3d0;
    background: #f0fdf4;
}
.web-push-prompt.is-checking {
    border-color: #bfdbfe;
    background: #f8fbff;
}
html.web-push-cached-active .web-push-prompt.is-checking {
    border-color: #a7f3d0;
    background: #f0fdf4;
}
.web-push-prompt__icon {
    display: inline-flex;
    grid-row: 1 / span 2;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--color-primary-subtle);
    color: var(--color-primary, var(--color-primary));
    font-size: 15px;
}
.web-push-prompt.is-enabled .web-push-prompt__icon {
    background: #d1fae5;
    color: #059669;
}
.web-push-prompt.is-checking .web-push-prompt__icon {
    background: #dbeafe;
    color: #2563eb;
}
.web-push-prompt.is-checking .web-push-prompt__button {
    background: #2563eb;
}
html.web-push-cached-active .web-push-prompt.is-checking .web-push-prompt__icon {
    background: #d1fae5;
    color: #059669;
}
html.web-push-cached-active .web-push-prompt.is-checking .web-push-prompt__button {
    background: #059669;
}
.web-push-prompt__content {
    min-width: 0;
}
.web-push-prompt__content strong, .web-push-prompt__content span {
    display: block;
}
.web-push-prompt__content strong {
    color: var(--color-text-primary, #0f172a);
    font-size: 13px;
    font-weight: 600;
}
.web-push-prompt__content span {
    margin-top: 2px;
    color: var(--color-text-muted, var(--color-text-muted));
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}
.web-push-prompt__button {
    display: inline-flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 36px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--color-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.web-push-prompt__button.is-enabled {
    background: #059669;
}
.web-push-prompt__button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}
.web-push-prompt__test {
    display: none;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    background: #fff;
    color: #047857;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.web-push-prompt.is-enabled .web-push-prompt__test {
    display: inline-flex;
}
.web-push-prompt__test:disabled {
    cursor: wait;
    opacity: 0.65;
}
.web-push-prompt__status {
    grid-column: 1 / -1;
    padding: 9px 11px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}
.web-push-prompt__status.is-success {
    background: var(--color-success-light);
    color: #047857;
}
.web-push-prompt__status.is-error {
    background: #fff7ed;
    color: #c2410c;
}
.chat-toast {
    width: min(420px, calc(100vw - 32px));
    padding: 14px 14px 14px 16px;
    border-left: 4px solid var(--color-primary, var(--color-primary));
    align-items: flex-start;
}
.chat-toast__avatar {
    position: relative;
    display: inline-flex;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-primary-light, var(--color-primary-light));
    color: var(--color-primary, var(--color-primary));
}
.chat-toast__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chat-toast__avatar--icon {
    font-size: 15px;
}
.chat-toast__content {
    min-width: 0;
    flex: 1;
}
.chat-toast__eyebrow {
    margin-bottom: 5px;
    color: var(--color-text-primary, #0f172a);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}
.chat-toast__title, .chat-toast__body {
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-toast__title {
    color: var(--color-text-primary, #0f172a);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
}
.chat-toast__body {
    display: -webkit-box;
    margin-top: 3px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--color-text-secondary, #475569);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}
.chat-toast__close {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin-top: -3px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-muted, var(--color-text-muted-2));
    cursor: pointer;
}
.topbar-chat-view-all {
    color: var(--color-primary, var(--color-primary));
    text-decoration: none;
}
.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.chat-header-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 15px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-muted, var(--color-text-muted));
    cursor: pointer;
}
.chat-header-action-button:hover, .chat-header-action-button:focus-visible {
    border-color: #dbeafe;
    background: #eff6ff;
    color: #2563eb;
}
.chat-header-action-button.is-hidden {
    display: none;
}
.chat-message-search-toggle[aria-expanded="true"] {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary, var(--color-primary));
}
.chat-message-search {
    position: relative;
    z-index: 12;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(130px, auto) auto;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    min-height: 58px;
    padding: 9px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    animation: chat-message-search-slide-down 0.18s ease-out;
}
.chat-message-search[hidden] {
    display: none !important;
}
.chat-message-search__field {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
}
.chat-message-search__field > .fa-magnifying-glass {
    position: absolute;
    left: 13px;
    color: var(--color-text-muted-2);
    pointer-events: none;
}
.chat-message-search__field input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 8px 38px 8px 38px;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    outline: none;
    background: #f8fafc;
    color: var(--color-text-primary);
    font-size: 13px;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        box-shadow 0.16s ease;
}
.chat-message-search__field input:focus {
    border-color: var(--color-primary-border-strong);
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.chat-message-search__field input::-webkit-search-cancel-button {
    display: none;
}
.chat-message-search__spinner {
    position: absolute;
    right: 13px;
    color: var(--color-primary, var(--color-primary));
    font-size: 13px;
}
.chat-message-search__meta {
    min-width: 0;
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-message-search__navigation {
    display: flex;
    align-items: center;
    gap: 5px;
}
.chat-message-search__navigation button {
    display: inline-flex;
    width: 34px;
    height: 34px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
    color: var(--color-text-muted);
    cursor: pointer;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease;
}
.chat-message-search__navigation button:hover:not(:disabled), .chat-message-search__navigation button:focus-visible:not(:disabled) {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary, var(--color-primary));
}
.chat-message-search__navigation button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}
.chat-message-search__navigation .chat-message-search__close {
    margin-left: 3px;
}
.message-bubble-wrapper.is-chat-search-result .message-bubble {
    outline: 2px solid color-mix(in srgb, var(--color-primary) 62%, transparent);
    outline-offset: 3px;
    box-shadow:
        0 0 0 7px color-mix(in srgb, var(--color-primary) 8%, transparent),
        0 10px 24px rgba(15, 23, 42, 0.1);
}
@keyframes chat-message-search-slide-down {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.chat-call-button[hidden] {
    display: none;
}
.theme-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #cbd5e1;
    cursor: pointer;
}
.theme-option--red {
    background: var(--color-primary, var(--color-primary));
}
.theme-option--rose {
    background: var(--color-primary);
}
.theme-option--green {
    background: var(--color-success);
}
.theme-option--blue {
    background: var(--color-info);
}
.theme-option--violet {
    background: #8b5cf6;
}
.theme-option--amber {
    background: var(--color-warning);
}
.theme-option--slate {
    background: var(--color-text-muted);
}
.theme-option.active {
    box-shadow: 0 0 0 2px #2563eb;
}
.theme-option.active::after {
    content: "\2713";
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}
.message-bubble-wrapper.is-sending {
    opacity: 0.62;
}
.chat-sidebar, .chat-right {
    contain: layout paint;
    transition:
        width 180ms ease,
        min-width 180ms ease,
        flex-basis 180ms ease,
        transform 180ms ease,
        opacity 180ms ease;
    will-change: width, flex-basis, transform, opacity;
}
.chat-sidebar.collapsed, .chat-right.collapsed {
    pointer-events: none;
}
.chat-sidebar.collapsed > *, .chat-right.collapsed > * {
    visibility: hidden;
}
/* Topbar Messenger-style chat browser */
.topbar-chat-tools {
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
    background: #fff;
}
.topbar-chat-search {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--color-text-muted);
}
.topbar-chat-search:focus-within {
    border-color: var(--color-primary-border-strong);
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.topbar-chat-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-size: 13px;
    font-weight: 400;
}
.topbar-chat-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}
.topbar-chat-filter {
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid transparent;
    border-radius: 90px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
}
.topbar-chat-filter:hover, .topbar-chat-filter:focus-visible {
    background: #e2e8f0;
}
.topbar-chat-filter.is-active {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary, var(--color-primary));
    font-weight: 600;
}
button.topbar-chat-item {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}
button.topbar-chat-item.has-unread {
    background: var(--color-primary-subtle);
}
/* Floating mini chat windows */
.mini-chat-dock {
    position: fixed;
    right: 18px;
    bottom: 0;
    z-index: 9000;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}
.mini-chat-window {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 328px;
    height: min(455px, calc(100vh - 110px));
    overflow: hidden;
    border: 1px solid #dbe3ed;
    border-radius: 15px 15px 0 0;
    background: #fff;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.2);
    pointer-events: auto;
    transform-origin: bottom right;
    animation: mini-chat-enter 160ms ease-out;
}
.mini-chat-file-drop-overlay {
    inset: 6px;
    border-radius: 12px 12px 0 0;
}
.mini-chat-window.is-minimized .mini-chat-file-drop-overlay {
    display: none;
}
@keyframes mini-chat-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.mini-chat-window.is-minimized {
    height: 54px;
}
.mini-chat-header {
    display: flex;
    flex: 0 0 54px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 8px 7px 10px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
}
.mini-chat-header__identity {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0f172a;
    font-family: inherit;
    cursor: pointer;
}
.mini-chat-header__avatar-link {
    display: inline-flex;
    flex: 0 0 auto;
    border-radius: 50%;
    text-decoration: none;
}
.mini-chat-header__minimize {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.mini-chat-header__name {
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: normal;
}
.mini-chat-header__text {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}
.mini-chat-header__presence {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 400;
    white-space: nowrap;
}
.mini-chat-header__presence.is-online {
    color: #16a34a;
}
.mini-chat-header__presence.is-group {
    color: var(--color-text-muted);
}
.mini-chat-header__presence-dot {
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.mini-chat-header__presence.is-group .mini-chat-header__presence-dot {
    display: none;
}
.mini-chat-avatar {
    position: relative;
    display: inline-flex;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--color-primary-hover);
}
.mini-chat-avatar__initials, .mini-chat-avatar__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.mini-chat-avatar__initials {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.mini-chat-avatar__image {
    z-index: 1;
    object-fit: cover;
}
.mini-chat-header__actions {
    display: flex;
    align-items: center;
    gap: 1px;
}
.mini-chat-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-primary, var(--color-primary));
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}
.mini-chat-icon-button:hover, .mini-chat-icon-button:focus-visible {
    background: var(--color-primary-subtle);
}
.mini-chat-icon-button.is-active {
    background: var(--color-primary-subtle);
    color: var(--color-primary, var(--color-primary));
    box-shadow: inset 0 0 0 1px var(--color-primary-border-strong);
}
.mini-chat-message-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    flex: 0 0 auto;
    gap: 6px 8px;
    padding: 8px 9px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.06);
    animation: chat-message-search-slide-down 0.18s ease-out;
}
.mini-chat-message-search.is-hidden {
    display: none;
}
.mini-chat-message-search__field {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
}
.mini-chat-message-search__field > .fa-magnifying-glass {
    position: absolute;
    left: 11px;
    color: var(--color-text-muted-2);
    font-size: 12px;
    pointer-events: none;
}
.mini-chat-message-search__field input {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 7px 32px 7px 32px;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    outline: 0;
    background: #f8fafc;
    color: var(--color-text-primary);
    font-size: 12px;
}
.mini-chat-message-search__field input:focus {
    border-color: var(--color-primary-border-strong);
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 7%, transparent);
}
.mini-chat-message-search__field input::-webkit-search-cancel-button {
    display: none;
}
.mini-chat-message-search__spinner {
    position: absolute;
    right: 10px;
    color: var(--color-primary);
    font-size: 11px;
}
.mini-chat-message-search__spinner.is-hidden, .mini-chat-message-search__spinner[hidden] {
    display: none !important;
}
.mini-chat-message-search__meta {
    min-width: 0;
    overflow: hidden;
    align-self: center;
    padding-left: 2px;
    color: var(--color-text-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mini-chat-message-search__navigation {
    display: flex;
    grid-column: 2;
    grid-row: 1 / span 1;
    align-items: center;
    gap: 3px;
}
.mini-chat-message-search__navigation button {
    display: inline-flex;
    width: 27px;
    height: 30px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: var(--color-text-muted);
    font-size: 10px;
    cursor: pointer;
}
.mini-chat-message-search__navigation button:hover:not(:disabled), .mini-chat-message-search__navigation button:focus-visible:not(:disabled) {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.mini-chat-message-search__navigation button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.mini-chat-message.is-chat-search-result .message-bubble {
    outline: 2px solid color-mix(in srgb, var(--color-primary) 62%, transparent);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.mini-chat-messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 12px 10px;
    background: #f8fafc;
    overscroll-behavior: contain;
}
.mini-chat-loading, .mini-chat-empty {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--color-text-muted-2);
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}
.mini-chat-message {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 0;
    justify-content: flex-start;
    margin-bottom: 16px;
}
.mini-chat-message.is-mine {
    justify-content: flex-end;
}
.mini-chat-message.is-grouped-with-next {
    margin-bottom: 2px;
}
.mini-chat-message.grouped-prev .chat-message-meta, .mini-chat-message.grouped-next .mini-chat-read-status {
    display: none !important;
}
.mini-chat-message.is-pending {
    opacity: 0.62;
}
.mini-chat-message-actions {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    margin: 0 4px 2px;
    opacity: 0;
    transition: opacity 0.16s ease;
}
.mini-chat-message:hover .mini-chat-message-actions, .mini-chat-message:focus-within .mini-chat-message-actions {
    opacity: 1;
}
.mini-chat-message-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef2f7;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 13px;
    transition:
        background-color 0.16s ease,
        color 0.16s ease;
}
.mini-chat-message-action:hover, .mini-chat-message-action:focus-visible {
    background: #e2e8f0;
}
.mini-chat-message-menu-wrap {
    position: relative;
}
.mini-chat-message-menu {
    position: absolute;
    left: 0;
    bottom: calc(100% + 6px);
    z-index: 30;
    display: none;
    width: fit-content;
    min-width: 0;
    max-width: calc(100vw - 16px);
    padding: 6px;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}
.mini-chat-message:not(.is-mine) .mini-chat-message-menu {
    left: auto;
    right: 0;
}
.mini-chat-message-menu.is-open {
    display: block;
}
.mini-chat-message-menu__item {
    display: flex;
    width: 100%;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--color-text-secondary, #475569);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    text-align: left;
    white-space: nowrap;
}
.mini-chat-message-menu__item:hover, .mini-chat-message-menu__item:focus-visible {
    background: #f8fafc;
    color: var(--color-primary, var(--color-primary));
}
.mini-chat-message-menu__item.is-danger {
    color: var(--color-primary);
}
.mini-chat-message-menu__item.is-danger:hover, .mini-chat-message-menu__item.is-danger:focus-visible {
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.mini-chat-message-pin-badge {
    margin-bottom: 5px;
    font-size: 11.5px;
}
.mini-chat-message__body {
    display: flex;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 0;
    flex-direction: column;
    align-items: flex-start;
}
.mini-chat-message .chat-message-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.mini-chat-message.is-mine .chat-message-row {
    justify-content: flex-end;
}
.mini-chat-message.is-mine .mini-chat-message__body {
    align-items: flex-end;
}
.mini-chat-message__bubble {
    display: flex;
    min-width: 0;
    max-width: 100%;
    flex-direction: column;
    gap: 4px;
    overflow-wrap: anywhere;
}
.mini-chat-message__bubble.message-bubble.image-only-bubble {
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}
.mini-chat-message__content {
    font-size: inherit;
    font-weight: 400;
    line-height: 1.45;
    white-space: pre-wrap;
}
.mini-chat-message__content p {
    margin: 0 0 8px;
}
.mini-chat-message__content p:last-child {
    margin-bottom: 0;
}
.mini-chat-message__content ul, .mini-chat-message__content ol {
    margin: 6px 0 6px 18px;
    padding: 0;
}
.mini-chat-message__content li + li {
    margin-top: 4px;
}
.mini-chat-message__content b, .mini-chat-message__content strong {
    font-weight: 600;
}
.mini-chat-time-divider {
    margin: 15px 0;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}
.mini-chat-message__avatar {
    position: relative;
    display: inline-flex;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--color-primary-hover);
}
.chat-avatar-color--0 {
    background: var(--color-primary-hover);
}
.chat-avatar-color--1 {
    background: var(--color-info);
}
.chat-avatar-color--2 {
    background: #22c55e;
}
.chat-avatar-color--3 {
    background: var(--color-warning);
}
.chat-avatar-color--4 {
    background: #8b5cf6;
}
.chat-avatar-color--5 {
    background: #ec4899;
}
.mini-chat-message__avatar.is-hidden {
    visibility: hidden;
}
.mini-chat-message__avatar-initials, .mini-chat-message__avatar-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.mini-chat-message__avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}
.mini-chat-message__avatar-image {
    z-index: 1;
    object-fit: cover;
}
.mini-chat-message__delivery {
    align-self: flex-end;
    color: var(--color-text-muted-2);
    font-size: 11px;
    font-weight: 400;
}
.mini-chat-message__image, .mini-chat-message__sticker {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 9px;
}
.mini-chat-message__image {
    cursor: pointer;
}
.mini-chat-message__sticker {
    width: 120px;
    height: 120px;
    border-radius: 0;
    object-fit: contain;
}
.mini-chat-message__file {
    display: flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
}
.mini-chat-composer {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: flex-end;
    position: relative;
    gap: 7px 8px;
    padding: 10px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}
.mini-chat-file-input {
    display: none;
}
.mini-chat-file-preview {
    display: flex;
    grid-column: 1 / -1;
    gap: 8px;
    overflow-x: auto;
}
.mini-chat-file-preview.is-hidden {
    display: none;
}
.mini-chat-voice-status {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--color-primary-border-strong);
    border-radius: 10px;
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
    font-size: 13px;
    font-weight: 600;
}
.mini-chat-voice-status.is-hidden {
    display: none;
}
.mini-chat-voice-status__dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary) 35%, transparent);
    animation: mini-chat-voice-dot 1.1s ease-in-out infinite;
}
@keyframes mini-chat-voice-dot {
    0%, 100% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary) 35%, transparent);
    }
    50% {
        box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-primary) 0%, transparent);
    }
}
.mini-chat-voice-status__text {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mini-chat-voice-status__stop {
    display: none;
    min-height: 26px;
    padding: 0 10px;
    border: 0;
    border-radius: 90px;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
}
.mini-chat-voice-status.can-stop .mini-chat-voice-status__stop {
    display: inline-flex;
    align-items: center;
}
.mini-chat-voice-modal {
    position: fixed;
    inset: 0;
    z-index: 100300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.6);
}
.mini-chat-voice-modal.is-hidden {
    display: none;
}
.mini-chat-voice-dialog {
    display: flex;
    width: min(320px, 90vw);
    flex-direction: column;
    align-items: center;
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}
.mini-chat-voice-dialog__status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
}
.mini-chat-voice-dialog__status.is-hidden, .mini-chat-voice-dialog__timer.is-hidden, .mini-chat-voice-dialog__preview.is-hidden, .mini-chat-voice-dialog__stop.is-hidden, .mini-chat-voice-dialog__send.is-hidden {
    display: none;
}
.mini-chat-voice-dialog__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
    animation: mini-chat-voice-dot 1.1s ease-in-out infinite;
}
.mini-chat-voice-dialog__timer {
    margin-bottom: 24px;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
}
.mini-chat-voice-dialog__preview {
    width: 100%;
    height: 42px;
    margin-bottom: 24px;
}
.mini-chat-voice-dialog__actions {
    display: flex;
    width: 100%;
    gap: 12px;
}
.mini-chat-voice-dialog__cancel, .mini-chat-voice-dialog__stop, .mini-chat-voice-dialog__send {
    flex: 1;
    min-height: 42px;
    border-radius: 90px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
}
.mini-chat-voice-dialog__cancel {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #0f172a;
}
.mini-chat-voice-dialog__stop {
    border: 0;
    background: var(--color-primary);
    color: #fff;
}
.mini-chat-voice-dialog__send {
    border: 0;
    background: var(--color-primary);
    color: #fff;
}
.mini-chat-file-preview__item {
    position: relative;
    display: flex;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--color-text-muted);
}
.mini-chat-file-preview__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mini-chat-file-preview__item.is-document {
    flex-basis: 118px;
    width: 118px;
    gap: 6px;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 600;
}
.mini-chat-file-preview__item.is-document span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mini-chat-file-preview__remove {
    position: absolute;
    top: 3px;
    right: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
}
.mini-chat-composer__toolbox {
    display: inline-flex;
    grid-column: 1;
    align-items: center;
    gap: 0;
    height: 36px;
}
.mini-chat-composer__tools {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.mini-chat-composer__more {
    display: none;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--color-primary, var(--color-primary));
    cursor: pointer;
    font-size: 22px;
}
.mini-chat-composer.has-content .mini-chat-composer__more {
    display: inline-flex;
}
.mini-chat-composer.has-content .mini-chat-composer__tools {
    display: none;
}
.mini-chat-composer.has-content .mini-chat-composer__tools.force-show {
    display: inline-flex;
}
.mini-chat-composer.has-content.tools-expanded .mini-chat-composer__more {
    display: none;
}
.mini-chat-tool-button, .mini-chat-emoji-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #667085;
    cursor: pointer;
    font-size: 19px;
    transition:
        background-color 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}
.mini-chat-tool-button > i {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    line-height: 1;
}
.mini-chat-reply-banner__close > i, .mini-chat-file-preview__remove > i, .mini-chat-forward-dialog__close > i, .chat-toast__close > i {
    line-height: 1;
}
.mini-chat-tool-button:hover, .mini-chat-tool-button:focus-visible, .mini-chat-emoji-button:hover, .mini-chat-emoji-button:focus-visible {
    background: #f1f5f9;
    color: var(--color-primary, var(--color-primary));
}
.mini-chat-tool-button.is-recording {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    animation: mini-chat-recording-pulse 1.1s ease-in-out infinite;
}
@keyframes mini-chat-recording-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}
.mini-chat-reply-banner {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--color-primary-border-strong);
    border-radius: 10px;
    background: var(--color-primary-subtle);
    color: var(--color-primary, var(--color-primary));
    font-size: 13px;
}
.mini-chat-reply-banner.is-hidden {
    display: none;
}
.mini-chat-reply-banner__content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    line-height: 1.3;
}
.mini-chat-reply-banner__name, .mini-chat-reply-banner__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mini-chat-reply-banner__text {
    color: var(--color-text-muted, var(--color-text-muted));
    font-weight: 400;
}
.mini-chat-reply-banner__close {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-muted-2);
    cursor: pointer;
}
.mini-chat-reply-banner__close:hover {
    background: var(--color-primary-subtle);
    color: var(--color-primary, var(--color-primary));
}
.mini-chat-composer__field {
    grid-column: 2;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: flex-end;
    align-self: stretch;
}
.mini-chat-composer__editor {
    min-width: 0;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    padding-right: 0;
}
.mini-chat-emoji-button {
    position: absolute;
    right: 7px;
    bottom: 2px;
    z-index: 2;
}
.mini-chat-emoji-picker, .mini-chat-sticker-picker {
    position: absolute;
    right: 10px;
    bottom: calc(100% + 8px);
    z-index: 100250;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}
.mini-chat-emoji-picker {
    display: grid;
    grid-template-columns: repeat(4, 38px);
    gap: 4px;
    width: max-content;
    max-width: calc(100% - 20px);
    padding: 8px;
}
.mini-chat-emoji-picker.has-native-picker {
    display: block;
    overflow: hidden;
    padding: 0;
}
.mini-chat-emoji-picker.is-hidden, .mini-chat-sticker-picker.is-hidden {
    display: none;
}
.mini-chat-emoji-picker emoji-picker {
    width: min(320px, calc(100vw - 32px), 100%);
    max-width: 100%;
    height: 350px;
}
.mini-chat-emoji-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 22px;
}
.mini-chat-emoji-option:hover, .mini-chat-emoji-option:focus-visible {
    background: #f1f5f9;
}
.mini-chat-sticker-picker {
    left: 10px;
    right: 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
}
.mini-chat-sticker-option {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    aspect-ratio: 1;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}
.mini-chat-sticker-option:hover, .mini-chat-sticker-option:focus-visible {
    background: #f8fafc;
}
.mini-chat-sticker-option img {
    width: 100%;
    max-width: 62px;
    height: auto;
    object-fit: contain;
}
.mini-chat-window .ql-mention-list-container {
    z-index: 100100 !important;
}
.mini-chat-composer__input {
    width: 100%;
    max-height: 90px;
    min-height: 36px;
    resize: none;
    overflow-y: auto;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 18px;
    outline: 0;
    background: #f1f5f9;
    color: #0f172a;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}
.mini-chat-composer__input:focus {
    border-color: color-mix(in srgb, var(--color-primary, var(--color-primary)) 45%, white);
    background: #fff;
}
.mini-chat-send {
    display: inline-flex;
    grid-column: 3;
    align-self: end;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--color-primary, var(--color-primary));
    color: #fff;
    cursor: pointer;
}
.mini-chat-send:hover, .mini-chat-send:focus-visible {
    background: var(--color-primary-hover, var(--color-primary-hover));
}
.mini-chat-forward-overlay {
    position: fixed;
    inset: 0;
    z-index: 100200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.36);
}
.mini-chat-forward-dialog {
    width: min(360px, 100%);
    overflow: hidden;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
}
.mini-chat-forward-dialog__header, .mini-chat-forward-dialog__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
}
.mini-chat-forward-dialog__header {
    border-bottom: 1px solid var(--color-border, #e2e8f0);
}
.mini-chat-forward-dialog__close, .mini-chat-forward-dialog__cancel, .mini-chat-forward-dialog__send {
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
}
.mini-chat-forward-dialog__close {
    width: 28px;
    height: 28px;
    background: transparent;
    color: var(--color-text-muted-2);
}
.mini-chat-forward-dialog__list {
    max-height: 290px;
    overflow-y: auto;
    padding: 8px;
}
.mini-chat-forward-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 7px 8px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}
.mini-chat-forward-option:hover {
    background: #f8fafc;
}
.mini-chat-forward-option .mini-chat-avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
}
.mini-chat-forward-dialog__footer {
    border-top: 1px solid var(--color-border, #e2e8f0);
    background: #f8fafc;
}
.mini-chat-forward-dialog__cancel, .mini-chat-forward-dialog__send {
    min-height: 34px;
    padding: 0 12px;
}
.mini-chat-forward-dialog__cancel {
    background: transparent;
    color: var(--color-text-muted);
}
.mini-chat-forward-dialog__send {
    background: var(--color-primary, var(--color-primary));
    color: #fff;
}
.mini-chat-forward-dialog__send:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}
/* WebRTC audio call dialog */
.chat-call-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(5px);
}
.chat-call-overlay.is-hidden {
    display: none;
}
.chat-call-dialog {
    display: flex;
    width: min(360px, 100%);
    min-height: 390px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 34px 28px 28px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    background: linear-gradient(160deg, #fff 0%, var(--color-primary-subtle) 100%);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.35);
    text-align: center;
    animation: chat-call-enter 180ms ease-out;
}
@keyframes chat-call-enter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.chat-call-avatar {
    position: relative;
    width: 92px;
    height: 92px;
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary));
    box-shadow: 0 12px 28px color-mix(in srgb, var(--color-primary) 18%, transparent);
}
.chat-call-avatar span, .chat-call-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.chat-call-avatar span {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 29px;
    font-weight: 600;
}
.chat-call-avatar img {
    z-index: 1;
    display: none;
    object-fit: cover;
}
.chat-call-avatar.has-image img:not([hidden]) {
    display: block;
}
.chat-call-eyebrow {
    margin-top: 20px;
    color: var(--color-primary, var(--color-primary));
    font-size: 13px;
    font-weight: 600;
}
.chat-call-person-name {
    margin-top: 5px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 600;
}
.chat-call-status {
    min-height: 20px;
    margin-top: 6px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.chat-call-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 34px;
}
.chat-call-action {
    display: inline-flex;
    min-width: 72px;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #475569;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}
.chat-call-action i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #334155;
    font-size: 19px;
}
.chat-call-action--accept i {
    background: var(--color-success);
    color: #fff;
}
.chat-call-action--end i {
    background: var(--color-primary);
    color: #fff;
}
.chat-call-action--mute.is-muted i {
    background: #334155;
    color: #fff;
}
.chat-call-action.is-hidden, #chat-call-remote-audio, .chat-call-remote-audio {
    display: none;
}
/* Secure Vault Unlock */
.vault-unlock-shell {
    display: flex;
    min-height: 80vh;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}
.vault-unlock-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.06);
    text-align: center;
}
.vault-unlock-icon {
    display: inline-flex;
    width: 80px;
    height: 80px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 50%;
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-danger, var(--color-primary));
    font-size: 35px;
}
.vault-unlock-title {
    margin: 0 0 10px;
    color: var(--color-text-primary, #0f172a);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}
.vault-unlock-description {
    margin: 0 0 30px;
    color: var(--color-text-muted, var(--color-text-muted));
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
}
.vault-unlock-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-danger, var(--color-primary));
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    text-align: left;
}
.vault-unlock-alert i {
    margin-top: 2px;
    font-size: 15px;
}
.vault-unlock-error-list {
    margin: 0;
    padding-left: 18px;
}
.vault-pin-field {
    margin-bottom: 0;
}
.vault-pin-boxes {
    display: grid;
    max-width: 360px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 0 auto;
}
.vault-pin-cell {
    position: relative;
    display: block;
    min-width: 0;
}
.vault-pin-box {
    width: 100%;
    height: 58px;
    border: 1px solid var(--color-border, #dbe3ef);
    border-radius: 14px;
    background: var(--color-bg-subtle, #f8fafc);
    color: var(--color-text-primary, #0f172a);
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    outline: none;
    caret-color: transparent;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}
.vault-pin-box:focus {
    border-color: var(--color-primary, var(--color-primary));
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.12);
}
.vault-pin-caret {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 24px;
    border-radius: 90px;
    background: var(--color-text-primary);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
}
.vault-pin-box.is-active:not(.is-filled) + .vault-pin-caret {
    animation: vaultPinCaretBlink 1s steps(2, end) infinite;
}
@keyframes vaultPinCaretBlink {
    0%, 45% {
        opacity: 1;
    }
    46%, 100% {
        opacity: 0;
    }
}
.vault-pin-field.is-complete .vault-pin-box {
    border-color: rgba(34, 197, 94, 0.5);
}
.vault-pin-field.is-invalid .vault-pin-box {
    border-color: var(--color-danger, var(--color-primary));
    background: rgba(var(--color-primary-rgb), 0.06);
}
.vault-pin-setup-input {
    width: 100%;
    height: 60px;
    padding: 0 20px;
    border: 2px solid var(--color-bg-elevated, #e2e8f0);
    border-radius: 16px;
    background: var(--color-bg-subtle, #f8fafc);
    color: var(--color-text-primary, #0f172a);
    font-size: 33px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    outline: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}
.vault-pin-setup-input:focus {
    border-color: var(--color-primary, var(--color-primary));
    background: #fff;
    box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.1);
}
.vault-unlock-footer {
    margin-top: 28px;
}
.vault-unlock-back-link {
    color: var(--color-text-muted, var(--color-text-muted));
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.vault-unlock-back-link:hover {
    color: var(--color-primary, var(--color-primary));
}
/* Website Jobs */
body.is-modal-open {
    overflow: hidden;
}
.modal-job, .modal-delete {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-job > .modal-overlay, .modal-delete > .modal-overlay {
    position: absolute;
    inset: 0;
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
}
.modal-job > .modal-content, .modal-delete > .modal-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    animation: websiteJobModalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9999;
}
.modal-job > .modal-content-xl {
    max-width: 1200px;
}
.modal-confirm-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    animation: websiteJobModalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes websiteJobModalScaleUp {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.loading-shimmer {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
#starToggle.active, .star-toggle-button.active {
    border-color: #facc15;
    background: #fefce8;
}
#starToggle.is-animating, .star-toggle-button.is-animating {
    transform: scale(1.3);
}
.website-job-password-value.is-revealed, #password-display.is-revealed, [id^="pwd-"].is-revealed, [id^="pop-pwd-"].is-revealed {
    color: var(--color-primary);
}
.clipboard-hidden-textarea {
    position: fixed;
    top: 0;
    left: -990px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.import-drop-zone.dragover {
    border-color: var(--color-primary);
    background: var(--color-primary-soft, var(--color-error-light));
}
.website-job-import-row {
    border-bottom: 1px solid var(--color-border);
}
.website-job-import-row.is-alt {
    background: var(--color-bg-base);
}
.website-jobs-unlock-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.08);
}
.website-jobs-unlock-submit:hover {
    background: var(--color-primary-hover);
}
.website-jobs-unlock-submit:active {
    transform: scale(0.98);
}
.website-job-password-reveal-btn:hover {
    transform: scale(1.05);
}
.website-job-modal-close:hover {
    background: #f1f5f9;
    color: var(--color-error);
}
.website-job-external-link:hover {
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.15);
}
.website-job-action-copy:hover {
    background: var(--color-bg-base);
    color: var(--color-primary);
}
.website-job-action-reveal:hover {
    background: var(--color-primary);
    color: #fff;
}
.website-job-manual-link:hover {
    transform: translateX(4px);
}
.website-job-edit-link:hover {
    box-shadow: 0 12px 30px rgba(var(--color-primary-rgb), 0.35);
    transform: translateY(-3px);
}
/* Notifications page */
/* Shared page breadcrumb and history navigation */
.global-page-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-bottom: 16px;
}
.global-page-navigation__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.global-page-navigation__breadcrumb a {
    flex: 0 0 auto;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.16s ease;
}
.global-page-navigation__breadcrumb a:hover {
    color: var(--color-text-primary);
}
.global-page-navigation__breadcrumb i {
    flex: 0 0 auto;
    color: var(--color-text-muted-2);
    font-size: 10px;
}
.global-page-navigation__breadcrumb span {
    min-width: 0;
    overflow: hidden;
    color: var(--color-primary);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.global-page-navigation__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid var(--color-line-strong);
    border-radius: 12px;
    background: var(--color-bg-surface);
    color: var(--color-text-secondary);
    font: inherit;
    cursor: pointer;
    transition:
        border-color 0.16s ease,
        color 0.16s ease,
        background-color 0.16s ease,
        transform 0.16s ease;
}
.global-page-navigation__back-icon {
    display: block;
    width: 18px;
    height: 18px;
}
.global-page-navigation__back:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.global-page-navigation__back:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--color-primary) 16%, transparent);
    outline-offset: 2px;
}
/* The shared navigation replaces legacy page-level breadcrumbs without
   affecting breadcrumbs rendered inside embedded detail/offcanvas layouts. */
.has-global-page-navigation .main-content :is(.notifications-page__breadcrumb, .line-notification-breadcrumb, .task-configuration-page__breadcrumb, .departments-breadcrumb, .app-breadcrumb, .leaves-page__breadcrumb, .maintenance-form-breadcrumb, .member-editor-breadcrumb, .profile-page__breadcrumb, .members-page__breadcrumb, .form-breadcrumb, .task-notification-settings-breadcrumb, .breadcrumb-wrap, .roles-page__breadcrumb) {
    display: none !important;
}
.notifications-page__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.notifications-page__intro {
    min-width: 0;
}
.notifications-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.notifications-page__breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
}
.notifications-page__breadcrumb span {
    color: var(--color-primary);
    font-weight: 600;
}
.notifications-page__heading {
    display: flex;
    align-items: center;
    gap: 14px;
}
.notifications-page__heading-icon, .notifications-summary-card__icon, .notifications-list__icon, .notifications-empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.notifications-page__heading-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    font-size: 19px;
}
.notifications-page__heading h1 {
    margin: 0;
    color: var(--color-text-strong);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}
.notifications-page__heading p, .notifications-list-card__header p {
    margin: 4px 0 0;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}
.notifications-page__actions, .notifications-list-card__controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.notifications-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    padding: 4px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-soft);
}
.notifications-tabs__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}
.notifications-tabs__button.is-active {
    background: var(--color-bg-base);
    color: var(--color-primary);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}
.notifications-device-settings {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(360px, 1.2fr);
    align-items: center;
    gap: 24px;
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-bg-base);
    box-shadow: var(--shadow-soft);
}
.notifications-device-settings[hidden], [data-notifications-panel][hidden] {
    display: none !important;
}
.notifications-device-settings__heading {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.notifications-device-settings__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 18px;
}
.notifications-device-settings__heading h2 {
    margin: 0;
    color: var(--color-text-strong);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}
.notifications-device-settings__heading p {
    margin: 4px 0 0;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
}
.notifications-device-settings__control.web-push-prompt {
    margin: 0;
}
.notifications-page__action-form, .notifications-list__delete-form {
    margin: 0;
}
.notifications-page__mark-read-button, .notifications-page__clear-button, .notifications-bulk-delete-button, .notifications-list__delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-base);
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}
.notifications-page__mark-read-button, .notifications-page__clear-button, .notifications-bulk-delete-button {
    min-height: 42px;
    padding: 0 16px;
}
.notifications-page__mark-read-button:hover {
    border-color: rgba(37, 99, 235, 0.24);
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}
.notifications-page__clear-button, .notifications-bulk-delete-button {
    border-color: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
}
.notifications-page__clear-button:hover, .notifications-bulk-delete-button:not(:disabled):hover {
    background: rgba(37, 99, 235, 0.1);
}
.notifications-bulk-delete-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.notifications-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.notifications-summary-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 84px;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-bg-base);
    box-shadow: var(--shadow-soft);
}
.notifications-summary-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 17px;
}
.notifications-summary-card__icon--total {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}
.notifications-summary-card__icon--unread {
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
}
.notifications-summary-card strong {
    display: block;
    margin-top: 4px;
    color: var(--color-text-strong);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.2;
}
.notifications-list-card {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-bg-base);
    box-shadow: var(--shadow-soft);
}
.notifications-list-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--color-border);
}
.notifications-list-card__title {
    color: var(--color-text-strong);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}
.notifications-selected-count {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 90px;
    background: var(--color-bg-soft);
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
}
.notifications-select-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}
.notifications-select-checkbox input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.notifications-select-checkbox__box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}
.notifications-select-checkbox:hover .notifications-select-checkbox__box {
    border-color: var(--color-primary);
}
.notifications-select-checkbox input:checked + .notifications-select-checkbox__box, .notifications-select-checkbox input:indeterminate + .notifications-select-checkbox__box {
    border-color: var(--color-primary);
    background: var(--color-primary);
}
.notifications-select-checkbox input:checked + .notifications-select-checkbox__box::after, .notifications-select-checkbox input:indeterminate + .notifications-select-checkbox__box::after {
    color: #fff;
    font-family: "Font Awesome 6 Free";
    font-size: 12px;
    font-weight: 900;
}
.notifications-select-checkbox input:checked + .notifications-select-checkbox__box::after {
    content: "\f00c";
}
.notifications-select-checkbox input:indeterminate + .notifications-select-checkbox__box::after {
    content: "\f068";
}
.notifications-list {
    display: flex;
    flex-direction: column;
}
.notifications-list__item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 124px 40px;
    align-items: center;
    gap: 12px;
    padding: 5px 10px;
    border-bottom: 1px solid var(--color-border);
    background: #fff;
}
.notifications-list__item:last-child {
    border-bottom: 0;
}
.notifications-list__item.is-unread {
    background: linear-gradient(90deg, rgba(255, 0, 15, 0.045), #fff 40%);
}
.notifications-list__select {
    justify-content: center;
}
.notifications-list__main {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.notifications-list__main.is-disabled {
    cursor: default;
}
.notifications-list__icon {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    background: #eef2f7;
    color: var(--color-text-muted);
    font-size: 13px;
}
.notifications-list__icon.is-unread {
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
}
.notifications-list__content, .notifications-list__title-row {
    min-width: 0;
}
.notifications-list__title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.notifications-list__title {
    min-width: 0;
    overflow: hidden;
    color: var(--color-text-strong);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notifications-list__source-chip, .notifications-list__unread-chip {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 90px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}
.notifications-list__source-chip {
    background: var(--color-bg-soft);
    color: var(--color-text-muted);
}
.notifications-list__unread-chip {
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
}
.notifications-list__time {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
}
.notifications-list__delete-button {
    width: 34px;
    height: 34px;
    padding: 0;
}
.notifications-list__delete-button:hover {
    border-color: rgba(255, 0, 15, 0.28);
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
}
.notifications-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 220px;
    padding: 32px 20px;
    color: var(--color-text-muted);
    text-align: center;
}
.notifications-empty-state__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--color-bg-soft);
    color: var(--color-text-muted-2);
    font-size: 20px;
}
.notifications-empty-state strong {
    color: var(--color-text-strong);
    font-size: 17px;
    font-weight: 600;
}
.notifications-empty-state p {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
}
.notifications-page__pagination {
    margin-top: 18px;
}
.notifications-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}
.notifications-confirm-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}
.notifications-confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(6px);
}
.notifications-confirm-modal__dialog {
    position: relative;
    width: min(420px, 100%);
    padding: 32px;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    background: var(--color-bg-base);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
    text-align: center;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.18s ease;
}
.notifications-confirm-modal.is-open .notifications-confirm-modal__dialog {
    transform: translateY(0) scale(1);
}
.notifications-confirm-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-base);
    color: var(--color-text-muted);
    cursor: pointer;
}
.notifications-confirm-modal__close:hover {
    border-color: rgba(255, 0, 15, 0.28);
    background: rgba(255, 0, 15, 0.06);
    color: var(--color-primary);
}
.notifications-confirm-modal__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    font-size: 20px;
}
.notifications-confirm-modal__dialog h2 {
    margin: 0 0 8px;
    color: var(--color-text-strong);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
}
.notifications-confirm-modal__dialog p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
}
.notifications-confirm-modal__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}
.notifications-confirm-modal__cancel, .notifications-confirm-modal__confirm {
    min-width: 118px;
    height: 42px;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}
.notifications-confirm-modal__cancel {
    border-color: var(--color-border);
    background: var(--color-bg-base);
    color: var(--color-text-muted);
}
.notifications-confirm-modal__cancel:hover {
    background: var(--color-bg-soft);
    color: var(--color-text-strong);
}
.notifications-confirm-modal__confirm {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 10px 22px rgba(255, 0, 15, 0.22);
}
.notifications-confirm-modal__confirm:hover {
    box-shadow: 0 14px 28px rgba(255, 0, 15, 0.28);
}
/* SweetAlert2 Premium Theme Overrides */
div:where(.swal2-container) div:where(.swal2-popup) {
    font-family: "Noto Sans Thai", sans-serif !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
div:where(.swal2-container) h2:where(.swal2-title) {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
}
div:where(.swal2-container) div:where(.swal2-html-container) {
    font-size: 16px !important;
    color: var(--color-text-muted) !important;
    margin-top: 12px !important;
}
div:where(.swal2-container) button:where(.swal2-styled) {
    border-radius: 8px !important;
    font-weight: 500 !important;
    padding: 10px 24px !important;
    font-size: 16px !important;
    transition: all 0.2s ease !important;
    border: none !important;
    box-shadow: none !important;
}
div:where(.swal2-container) button:where(.swal2-confirm) {
    background-color: var(--color-primary, var(--color-primary)) !important;
    color: #fff !important;
}
div:where(.swal2-container) button:where(.swal2-confirm):hover {
    background-color: var(--color-primary-hover) !important;
}
div:where(.swal2-container) button:where(.swal2-cancel) {
    background-color: #e2e8f0 !important;
    color: #475569 !important;
}
div:where(.swal2-container) button:where(.swal2-cancel):hover {
    background-color: #cbd5e1 !important;
    color: #334155 !important;
}
div:where(.swal2-icon).swal2-warning {
    border-color: var(--color-warning) !important;
    color: var(--color-warning) !important;
}
div:where(.swal2-icon).swal2-error {
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
}
div:where(.swal2-icon).swal2-success {
    border-color: var(--color-success) !important;
    color: var(--color-success) !important;
}
div:where(.swal2-icon).swal2-info {
    border-color: var(--color-info) !important;
    color: var(--color-info) !important;
}
body .swal2-popup.seo-writer-revision-dialog {
    width: min(460px, calc(100% - 28px)) !important;
    padding: 20px 22px 18px !important;
}
body .seo-writer-revision-dialog .swal2-title {
    padding: 0 !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
}
body .seo-writer-revision-dialog .swal2-input-label {
    margin: 8px 0 0 !important;
    font-size: 14px;
}
body .seo-writer-revision-dialog .swal2-textarea {
    width: 100% !important;
    height: 110px !important;
    min-height: 110px !important;
    margin: 12px 0 0 !important;
    padding: 12px 14px;
    box-sizing: border-box;
    font-size: 14px;
}
body .seo-writer-revision-dialog .swal2-actions {
    gap: 8px;
    margin: 16px 0 0 !important;
}
body .seo-writer-revision-dialog .swal2-styled {
    min-height: 40px;
    margin: 0 !important;
    padding: 8px 18px !important;
    font-size: 14px !important;
}
/* Recurring calendar deletion uses full-width selectable cards instead of
   SweetAlert's compact inline radio buttons. */
body .swal2-popup.calendar-delete-scope-dialog {
    width: min(700px, calc(100% - 28px)) !important;
    padding: 22px 24px 24px !important;
    border: 1px solid #edf0f5;
    border-radius: 20px !important;
}
body .calendar-delete-scope-dialog .swal2-icon.swal2-warning {
    width: 54px !important;
    height: 54px !important;
    margin: 2px auto 12px !important;
    border: 0 !important;
    background: #fff7e8 !important;
    color: var(--color-warning) !important;
}
body .calendar-delete-scope-dialog .swal2-icon.swal2-warning .swal2-icon-content {
    font-size: 36px !important;
    font-weight: 700;
    line-height: 1 !important;
}
body .calendar-delete-scope-dialog .swal2-title {
    padding: 0 !important;
    color: #202a3c;
    font-size: 20px !important;
    line-height: 1.35 !important;
}
body .calendar-delete-scope-dialog .swal2-html-container {
    margin: 6px 0 0 !important;
    color: #6f7d91;
    font-size: 14px !important;
    line-height: 1.45 !important;
    overflow: unset !important;
}
body .calendar-delete-scope-dialog .swal2-radio.calendar-delete-scope-options {
    display: grid !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 16px 0 2px !important;
    padding: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 10px !important;
    overflow: visible !important;
    scrollbar-width: none;
    background: transparent !important;
}
body .calendar-delete-scope-dialog .swal2-radio.calendar-delete-scope-options::-webkit-scrollbar {
    display: none;
}
body .calendar-delete-scope-dialog .calendar-delete-scope-options label {
    display: grid !important;
    width: 100%;
    min-width: 0;
    min-height: 78px;
    margin: 0 !important;
    padding: 14px 16px;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border: 1px solid #dce3ec;
    border-radius: 13px;
    background: #fff;
    color: #263145;
    cursor: pointer;
    text-align: left;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}
body .calendar-delete-scope-dialog .calendar-delete-scope-options label:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-subtle);
}
body .calendar-delete-scope-dialog .calendar-delete-scope-options label:has(input:checked) {
    border-color: var(--color-primary, var(--color-primary));
    background: var(--color-primary-subtle);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
body .calendar-delete-scope-dialog .calendar-delete-scope-options input[type="radio"] {
    appearance: none;
    display: block !important;
    flex: 0 0 20px !important;
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    aspect-ratio: 1 / 1;
    border: 2px solid #b8c2d0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}
body .calendar-delete-scope-dialog .calendar-delete-scope-options input[type="radio"]:checked {
    border-color: var(--color-primary, var(--color-primary));
    box-shadow: inset 0 0 0 4px #fff;
    background: var(--color-primary, var(--color-primary));
}
body .calendar-delete-scope-dialog .calendar-delete-scope-options input[type="radio"]:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--color-primary) 16%, transparent);
    outline-offset: 2px;
}
body .calendar-delete-scope-dialog .calendar-delete-scope-options .swal2-label {
    display: block;
    margin: 0 !important;
    color: #1f2937;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
}
body .calendar-delete-scope-dialog .calendar-delete-scope-options label:first-child .swal2-label::after, body .calendar-delete-scope-dialog .calendar-delete-scope-options label:last-child .swal2-label::after {
    display: block;
    margin-top: 3px;
    color: #7b8798;
    font-size: 11.5px;
    font-weight: 400;
}
body .calendar-delete-scope-dialog .calendar-delete-scope-options label:first-child .swal2-label::after {
    content: "เก็บกิจกรรมรอบอื่นไว้ตามเดิม";
}
body .calendar-delete-scope-dialog .calendar-delete-scope-options label:last-child .swal2-label::after {
    content: "ย้ายกิจกรรมทุกช่วงเวลาในชุดนี้ลงถังขยะ";
}
body .calendar-delete-scope-dialog .swal2-actions {
    width: 100%;
    margin-top: 16px !important;
    gap: 8px;
}
body .calendar-delete-scope-dialog .swal2-actions .swal2-styled {
    min-width: 124px;
    min-height: 44px;
    border-radius: 10px !important;
}
/* Shared call-history component used by the full chat and mini chat. */
.chat-call-history-message {
    width: 100%;
    display: flex;
    margin: 8px 0;
    padding: 0 8px;
    box-sizing: border-box;
}
.chat-call-history-message.me {
    justify-content: flex-end;
}
.chat-call-history-message.other {
    justify-content: flex-start;
}
.chat-call-history-card {
    width: min(280px, 82%);
    padding: 12px;
    border-radius: 18px;
    background: #f1f3f5;
    color: #111827;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.chat-call-history-summary {
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-call-history-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.06);
    color: #111827;
}
.chat-call-history-card.is-failed .chat-call-history-icon, .chat-call-history-card.is-failed .chat-call-history-title {
    color: var(--color-primary-hover);
}
.chat-call-history-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.chat-call-history-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}
.chat-call-history-meta {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.chat-call-history-redial {
    width: 100%;
    margin-top: 10px;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.055);
    color: #111827;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.chat-call-history-redial:hover {
    background: rgba(15, 23, 42, 0.1);
}
.chat-add-members-list {
    max-height: 330px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
    text-align: left;
}
.chat-add-member-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
}
.chat-add-member-option:hover {
    background: color-mix(in srgb, var(--color-primary) 5%, white);
    border-color: color-mix(in srgb, var(--color-primary) 35%, #e5e7eb);
}
.chat-add-member-option.selected {
    background: color-mix(in srgb, var(--color-primary) 7%, white);
    border-color: var(--color-primary);
}
.chat-add-member-option img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}
.chat-add-member-option span {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: #1f2937;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Project-standard group member dialog. */
.chat-system-modal {
    font-size: 13px;
    font-weight: 400;
}
.chat-system-modal .chat-add-members-dialog {
    width: min(440px, calc(100vw - 32px));
    max-height: min(620px, calc(100vh - 32px));
    border-radius: 12px;
}
.chat-system-modal__header {
    min-height: 52px;
    padding: 14px 16px;
}
.chat-system-modal__title {
    font-size: 13px;
    font-weight: 600;
}
.chat-system-modal__close {
    width: 30px;
    height: 30px;
    padding: 7px;
    border: 0;
    background: transparent;
}
.chat-system-modal__body {
    min-height: 0;
    gap: 10px;
    padding: 14px 16px;
}
.chat-system-label, .chat-system-modal__selection, .chat-member-loading, .chat-member-empty {
    font-size: 13px;
    font-weight: 400;
}
.chat-add-member-search {
    min-height: 38px;
}
.chat-add-member-search .chat-search-input {
    min-height: 36px;
    font-size: 13px;
    font-weight: 400;
}
.chat-add-member-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0;
    accent-color: var(--color-primary);
}
.chat-add-member-option img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
}
.chat-system-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    text-align: left;
}
.chat-system-modal__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-system-button {
    min-height: 34px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.chat-system-button.btn-secondary {
    border-color: #dbe3ed;
    background: #f1f5f9;
    color: #475569;
}
.chat-system-button.btn-secondary:hover {
    background: #e8edf3;
}
/* Shared message controls for full chat and mini chat. */
.chat-action-menu {
    position: fixed;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 100500;
    display: none;
    width: 90px;
    min-width: 0;
    max-width: calc(100vw - 16px);
    padding: 5px;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}
.chat-action-menu.is-open, .chat-action-menu.is-positioning {
    display: block !important;
}
.chat-action-menu.is-positioning {
    visibility: hidden;
}
.chat-action-menu.is-hidden {
    display: none !important;
}
.chat-action-menu .msg-dropdown-item {
    display: block;
    width: 100%;
    min-width: max-content;
    min-height: 34px;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #475569;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}
.chat-action-menu .msg-dropdown-item:hover, .chat-action-menu .msg-dropdown-item:focus-visible {
    background: #f1f5f9;
    color: var(--color-primary);
}
.chat-action-menu .msg-dropdown-item.is-danger {
    color: var(--color-primary);
}
.sender-name-label {
    display: inline;
    min-width: 0;
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-message-meta {
    display: flex;
    max-width: 100%;
    align-items: center;
    gap: 6px;
    margin: 0 4px 4px;
    color: var(--color-text-muted-2);
    line-height: 1.35;
}
.chat-message-stack.is-mine .chat-message-meta {
    justify-content: flex-end;
}
.chat-message-sent-at {
    flex: 0 0 auto;
    color: var(--color-text-muted-2);
    font-weight: 400;
    white-space: nowrap;
}
.chat-message-avatar-link {
    display: inline-flex !important;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-self: flex-end;
    margin: 0 8px 20px 0;
    overflow: hidden;
    border-radius: 50%;
}
.chat-message-avatar-link .message-avatar, .chat-message-avatar-link .mini-chat-message__avatar-image {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
}
body .chat-layout .chat-send-button, body .mini-chat-window .chat-send-button {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--color-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 24%, transparent) !important;
}
body .chat-layout .chat-send-button:hover, body .chat-layout .chat-send-button:focus-visible, body .mini-chat-window .chat-send-button:hover, body .mini-chat-window .chat-send-button:focus-visible {
    background: var(--color-primary-hover) !important;
    transform: scale(1.04);
}
body .chat-layout .chat-send-button i, body .mini-chat-window .chat-send-button i {
    font-size: 16px;
}
.chat-message-link {
    font-weight: 600;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}
.other-message .chat-message-link {
    color: #2563eb;
}
.my-message .chat-message-link {
    color: inherit;
}
.chat-message-edited {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.2;
    text-align: right;
    opacity: 0.72;
}
.other-message .chat-message-edited {
    text-align: left;
}
.message-bubble-wrapper.is-editing {
    position: relative;
    z-index: 3;
    width: 100%;
    margin-bottom: 14px !important;
}
.message-bubble-wrapper.is-editing .chat-message-stack {
    width: min(640px, calc(100% - 8px));
    max-width: 100%;
}
.message-bubble-wrapper.is-editing .chat-message-row, .mini-chat-message.is-editing .chat-message-row {
    width: 100%;
    align-items: stretch;
}
.message-bubble-wrapper.is-editing .message-actions {
    display: none;
}
.chat-inline-editor {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: auto auto auto;
    box-sizing: border-box;
    width: min(620px, 100%);
    max-width: 100%;
    min-width: 0;
    height: auto !important;
    min-height: 0 !important;
    padding: 7px 9px;
    overflow: visible;
    border: 1px solid #b9c6d6;
    border-radius: 12px;
    background: #fff;
    color: #172033;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.chat-inline-editor:focus-within {
    border-color: color-mix(in srgb, var(--color-primary) 60%, #b9c6d6);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, transparent);
}
.chat-inline-editor__input {
    box-sizing: border-box;
    width: 100%;
    min-height: 38px;
    max-height: 108px;
    padding: 6px 3px;
    overflow-x: hidden;
    overflow-y: hidden;
    overflow-wrap: anywhere;
    resize: none;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}
.chat-inline-editor__quill {
    height: auto !important;
    min-height: 0 !important;
    max-height: 132px;
    padding: 0;
    overflow: visible !important;
    resize: none;
}
.chat-inline-editor__quill .ql-editor {
    box-sizing: border-box;
    height: auto;
    min-height: 38px !important;
    max-height: 132px;
    padding: 6px 3px !important;
    overflow-x: hidden;
    overflow-y: hidden;
    overflow-wrap: anywhere;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}
.chat-inline-editor__quill .ql-editor p, .chat-inline-editor__quill .ql-editor ol, .chat-inline-editor__quill .ql-editor ul {
    display: block;
    width: 100%;
    margin-block: 0 4px;
    white-space: pre-wrap;
}
.chat-inline-editor .ql-tooltip {
    z-index: 120;
    max-width: calc(100vw - 24px);
}
.chat-inline-editor__error {
    margin-top: 7px;
    color: var(--color-primary-hover);
    font-size: 12px;
    line-height: 1.35;
}
.chat-inline-editor__actions {
    position: static !important;
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}
.chat-inline-editor__hint {
    min-width: 0;
    flex: 1;
    color: var(--color-text-muted-2);
    font-size: 11px;
}
.chat-inline-editor__cancel, .chat-inline-editor__save {
    flex: 0 0 auto;
    min-height: 30px;
    min-width: 68px;
    padding: 0 12px;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}
.chat-inline-editor__cancel {
    border: 1px solid #d8e0ea;
    background: #fff;
    color: #475569;
}
.chat-inline-editor__save {
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}
.chat-inline-editor__cancel:hover {
    background: #f8fafc;
}
.chat-inline-editor__save:hover {
    filter: brightness(0.96);
}
.chat-inline-editor__cancel:disabled, .chat-inline-editor__save:disabled {
    cursor: wait;
    opacity: 0.62;
}
.mini-chat-message.is-editing .mini-chat-message__body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.chat-inline-editor.is-compact {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 7px;
}
.chat-inline-editor.is-compact .chat-inline-editor__input {
    min-height: 34px;
    max-height: 108px;
    font-size: 13px;
}
.chat-inline-editor.is-compact .chat-inline-editor__quill .ql-editor {
    min-height: 34px !important;
    max-height: 108px;
    font-size: 13px;
}
.chat-message-stage {
    position: relative;
    display: none;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    background: #f8fafc;
}
.chat-main.has-active-conversation .chat-message-stage {
    display: flex;
}
.chat-message-stage > .chat-messages {
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    padding-bottom: 18px;
}
.chat-message-stage.is-typing > .chat-messages {
    padding-bottom: 18px;
}
.chat-typing-indicator, .mini-chat-typing-indicator {
    display: flex;
    min-height: 42px;
    align-items: flex-end;
    gap: 7px;
    padding: 5px 22px;
    color: var(--color-text-muted, var(--color-text-muted));
    font-family: "Sarabun", sans-serif;
    line-height: 1;
}
.chat-message-stage > .chat-typing-indicator {
    position: static;
    z-index: 4;
    width: 100%;
    min-height: 52px;
    flex: 0 0 auto;
    padding: 8px 22px 12px;
    background: transparent;
    pointer-events: none;
}
.chat-typing-indicator[hidden], .mini-chat-typing-indicator[hidden] {
    display: none !important;
}
.chat-typing-avatar, .mini-chat-typing-avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    object-fit: cover;
    background: transparent;
}
.chat-typing-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 32px;
    padding: 8px 11px;
    border-radius: 18px;
    background: #e5e7eb;
    color: var(--color-text-muted);
}
.chat-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.chat-typing-dots > span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    animation: chat-typing-dot 1.15s infinite ease-in-out;
}
.chat-typing-dots > span:nth-child(2) {
    animation-delay: 0.14s;
}
.chat-typing-dots > span:nth-child(3) {
    animation-delay: 0.28s;
}
.mini-chat-typing-indicator {
    min-height: 0;
    padding: 0;
    background: transparent;
}
.mini-chat-typing-avatar {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
}
.mini-chat-typing-indicator .chat-typing-bubble {
    min-width: 39px;
    min-height: 27px;
    padding: 6px 9px;
}
.mini-chat-message-stage {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    background: #f8fafc;
}
.mini-chat-message-stage > .mini-chat-messages {
    width: 100%;
    min-width: 0;
    min-height: 0;
}
.mini-chat-message-stage.is-typing > .mini-chat-messages {
    padding-bottom: 60px;
}
.mini-chat-message-stage > .mini-chat-typing-indicator {
    position: absolute;
    left: 12px;
    bottom: 10px;
    z-index: 4;
    pointer-events: none;
}
.chat-typing-text, .mini-chat-typing-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@keyframes chat-typing-dot {
    0%, 60%, 100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-2px);
    }
}
.mini-chat-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 20050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 58px 72px;
    background: rgba(10, 15, 25, 0.92);
    backdrop-filter: blur(4px);
}
.mini-chat-image-viewer[hidden] {
    display: none !important;
}
.mini-chat-image-viewer__image {
    display: block;
    max-width: min(1120px, 100%);
    max-height: calc(100vh - 116px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
}
.mini-chat-image-viewer__close, .mini-chat-image-viewer__nav {
    position: fixed;
    z-index: 1;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
    font-size: 20px;
}
.mini-chat-image-viewer__close {
    top: 18px;
    right: 20px;
}
.mini-chat-image-viewer__nav {
    top: 50%;
    transform: translateY(-50%);
}
.mini-chat-image-viewer__nav--previous {
    left: 18px;
}
.mini-chat-image-viewer__nav--next {
    right: 18px;
}
.mini-chat-image-viewer__counter {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font:
        500 13px/1 "Sarabun",
        sans-serif;
}
body.mini-chat-image-viewer-open {
    overflow: hidden;
}
.chat-inline-editor.is-compact .chat-inline-editor__hint {
    display: none;
}
.chat-inline-editor.is-compact .chat-inline-editor__cancel, .chat-inline-editor.is-compact .chat-inline-editor__save {
    min-height: 28px;
    min-width: 56px;
    padding-inline: 9px;
    font-size: 12px;
}
.mini-chat-window .mini-chat-message.is-editing, .mini-chat-window .mini-chat-message.is-editing .chat-message-row, .mini-chat-window .mini-chat-message.is-editing .chat-inline-editor {
    min-width: 0;
    max-width: 100%;
}
.mini-chat-window .mini-chat-message.is-editing .chat-inline-editor__actions {
    gap: 6px;
}
.mini-chat-composer__editor.ql-container.ql-bubble, .mini-chat-composer__field, .mini-chat-composer {
    overflow: visible;
}
.mini-chat-composer .ql-tooltip {
    z-index: 100280;
    max-width: calc(100vw - 24px);
}
/* Website/company list rows and task-style detail offcanvas */
.website-record-row {
    cursor: pointer;
}
.website-record-row:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--color-primary) 55%, transparent);
    outline-offset: -2px;
}
.website-detail-offcanvas {
    position: fixed;
    inset: 0;
    z-index: 10020;
    visibility: hidden;
    pointer-events: none;
}
.website-detail-offcanvas__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.48);
    opacity: 0;
    cursor: default;
    backdrop-filter: blur(4px);
    transition: opacity 0.24s ease;
}
.website-detail-offcanvas__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(850px, 100vw);
    height: 100%;
    border: 0;
    border-top: 3px solid var(--color-primary);
    background: #fff;
    box-shadow: -18px 0 45px rgba(15, 23, 42, 0.16);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: all 0.4s;
}
.website-detail-offcanvas.is-open {
    visibility: visible;
    pointer-events: auto;
}
.website-detail-offcanvas.is-open .website-detail-offcanvas__overlay {
    opacity: 1;
}
.website-detail-offcanvas.is-open .website-detail-offcanvas__panel {
    transform: translateX(0);
}
.website-detail-offcanvas__loader {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.website-detail-offcanvas__loader[hidden], .website-detail-offcanvas__body[hidden] {
    display: none;
}
.website-detail-offcanvas__body {
    min-height: 100%;
}
.website-detail-offcanvas__body > div {
    min-height: 100%;
    border-radius: 0;
}
.website-detail-offcanvas__error {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}
.website-detail-offcanvas__error strong {
    color: var(--color-text-primary);
    font-weight: 600;
}
body.has-website-detail-open {
    overflow: hidden;
}
.website-detail-close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--color-bg-base);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}
.website-detail-close:hover, .website-detail-close:focus-visible {
    background: #f1f5f9;
    color: var(--color-error);
}
.website-detail-action-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    padding: 0;
    border-radius: 14px;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}
.website-detail-action-btn--copy {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--color-text-muted);
}
.website-detail-action-btn--copy:hover, .website-detail-action-btn--copy:focus-visible {
    background: var(--color-bg-base);
    color: var(--color-primary);
}
.website-detail-action-btn--reveal {
    border: 0;
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.website-detail-action-btn--reveal:hover, .website-detail-action-btn--reveal:focus-visible {
    background: var(--color-primary);
    color: #fff;
}
.company-website-single {
    width: min(1100px, 100%);
    margin: 0 auto;
}
.company-website-single__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.company-website-single__back, .company-website-single__edit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.company-website-single__edit {
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    color: var(--color-text-secondary);
}
.company-website-single__title {
    margin: 10px 0 0;
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 600;
}
.company-website-single__content {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #fff;
}
.website-copy-fallback {
    position: fixed;
    left: -990px;
    top: 0;
    opacity: 0;
}
/* Progress levels shared with the task list */
progress.cw-progress-col-fill.progress-level-empty::-webkit-progress-value {
    background: var(--color-text-muted-2);
}
progress.cw-progress-col-fill.progress-level-empty::-moz-progress-bar {
    background: var(--color-text-muted-2);
}
progress.cw-progress-col-fill.progress-level-starting::-webkit-progress-value {
    background: var(--color-error);
}
progress.cw-progress-col-fill.progress-level-starting::-moz-progress-bar {
    background: var(--color-error);
}
progress.cw-progress-col-fill.progress-level-early::-webkit-progress-value {
    background: #f97316;
}
progress.cw-progress-col-fill.progress-level-early::-moz-progress-bar {
    background: #f97316;
}
progress.cw-progress-col-fill.progress-level-middle::-webkit-progress-value {
    background: #eab308;
}
progress.cw-progress-col-fill.progress-level-middle::-moz-progress-bar {
    background: #eab308;
}
progress.cw-progress-col-fill.progress-level-advanced::-webkit-progress-value {
    background: #84cc16;
}
progress.cw-progress-col-fill.progress-level-advanced::-moz-progress-bar {
    background: #84cc16;
}
progress.cw-progress-col-fill.progress-level-near-complete::-webkit-progress-value {
    background: #14b8a6;
}
progress.cw-progress-col-fill.progress-level-near-complete::-moz-progress-bar {
    background: #14b8a6;
}
progress.cw-progress-col-fill.progress-level-complete::-webkit-progress-value {
    background: var(--color-success);
}
progress.cw-progress-col-fill.progress-level-complete::-moz-progress-bar {
    background: var(--color-success);
}
/* Shared website detail layout: website jobs + company websites */
.website-detail-page {
    width: 100%;
    margin: 0 auto;
}
.website-detail {
    min-height: 100%;
    padding: 28px;
    background: #fff;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
}
.website-detail--standalone {
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: var(--shadow-card-soft);
}
.website-detail__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 24px;
}
.website-detail__heading {
    min-width: 0;
}
.website-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.website-detail__back:hover {
    color: var(--color-primary);
}
.website-detail__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
}
.website-detail__badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 400;
}
.website-detail__badge--primary {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.website-detail__title {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.website-detail__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}
.website-detail__edit, .website-detail__single-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 15px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    color: var(--color-text-secondary);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background-color 0.2s ease;
}
.website-detail__edit:hover, .website-detail__edit:focus-visible, .website-detail__single-link:hover, .website-detail__single-link:focus-visible {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.website-detail__single-link {
    border-color: #dbeafe;
    background: #eff6ff;
    color: #2563eb;
}
.website-detail__close {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: var(--color-bg-base);
    color: var(--color-text-muted);
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}
.website-detail__close:hover, .website-detail__close:focus-visible {
    background: var(--color-error-light);
    color: var(--color-error);
}
.website-detail__section {
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid #e5eaf0;
    border-radius: 16px;
    background: #fff;
}
.website-detail__section:last-child {
    margin-bottom: 0;
}
.website-detail__section--overview {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
    background: #f8fafc;
}
.website-progress--detail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}
.website-progress__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
}
.website-progress__title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.website-progress__icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    border-radius: 11px;
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.website-progress__header strong {
    color: var(--color-text-primary);
    font-size: 25px;
    font-weight: 600;
}
progress.website-progress__bar {
    width: 100%;
    height: 9px;
    display: block;
    overflow: hidden;
    border: 0;
    border-radius: 90px;
    background: #e2e8f0;
    appearance: none;
}
progress.website-progress__bar::-webkit-progress-bar {
    border-radius: 90px;
    background: #e2e8f0;
}
progress.website-progress__bar::-webkit-progress-value {
    border-radius: 90px;
    transition:
        width 0.3s ease,
        background-color 0.2s ease;
}
progress.website-progress__bar::-moz-progress-bar {
    border-radius: 90px;
    transition:
        width 0.3s ease,
        background-color 0.2s ease;
}
progress.website-progress__bar.progress-level-empty::-webkit-progress-value {
    background: var(--color-text-muted-2);
}
progress.website-progress__bar.progress-level-empty::-moz-progress-bar {
    background: var(--color-text-muted-2);
}
progress.website-progress__bar.progress-level-starting::-webkit-progress-value {
    background: var(--color-error);
}
progress.website-progress__bar.progress-level-starting::-moz-progress-bar {
    background: var(--color-error);
}
progress.website-progress__bar.progress-level-early::-webkit-progress-value {
    background: #f97316;
}
progress.website-progress__bar.progress-level-early::-moz-progress-bar {
    background: #f97316;
}
progress.website-progress__bar.progress-level-middle::-webkit-progress-value {
    background: #eab308;
}
progress.website-progress__bar.progress-level-middle::-moz-progress-bar {
    background: #eab308;
}
progress.website-progress__bar.progress-level-advanced::-webkit-progress-value {
    background: #84cc16;
}
progress.website-progress__bar.progress-level-advanced::-moz-progress-bar {
    background: #84cc16;
}
progress.website-progress__bar.progress-level-near-complete::-webkit-progress-value {
    background: #14b8a6;
}
progress.website-progress__bar.progress-level-near-complete::-moz-progress-bar {
    background: #14b8a6;
}
progress.website-progress__bar.progress-level-complete::-webkit-progress-value {
    background: var(--color-success);
}
progress.website-progress__bar.progress-level-complete::-moz-progress-bar {
    background: var(--color-success);
}
.website-detail__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.website-detail__fact {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}
.website-detail__fact > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.website-detail__fact span {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.website-detail__fact strong {
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.website-detail__fact-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border-radius: 12px;
}
.website-detail__fact-icon--start {
    background: #eff6ff;
    color: #2563eb;
}
.website-detail__fact-icon--deadline {
    background: #fff7ed;
    color: #ea580c;
}
.website-detail__fact-icon--server {
    background: var(--color-success-light);
    color: #059669;
}
.website-detail__section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.website-detail__section-heading h2 {
    margin: 2px 0 0;
    color: var(--color-text-primary);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}
.website-detail__section-heading p {
    margin: 5px 0 0;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.website-detail__eyebrow {
    display: block;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 600;
}
.website-detail__section--access {
    position: relative;
    overflow: hidden;
    border-color: #dbe3ec;
    background: #f8fafc;
}
.website-detail__section--access::after {
    content: "";
    position: absolute;
    top: -42px;
    right: -42px;
    width: 150px;
    height: 150px;
    border: 28px solid rgba(15, 23, 42, 0.025);
    border-radius: 50%;
    pointer-events: none;
}
.website-detail__section--access .website-detail__section-heading, .website-detail__section--access .website-detail__access-list {
    position: relative;
    z-index: 1;
}
.website-detail__section--access .website-detail__section-heading h2, .website-detail__section--team .website-detail__section-heading h2 {
    position: relative;
    padding-left: 13px;
}
.website-detail__section--access .website-detail__section-heading h2::before, .website-detail__section--team .website-detail__section-heading h2::before {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 0;
    width: 4px;
    border-radius: 90px;
    background: var(--color-primary);
}
.website-detail__section--team .website-detail__section-heading h2::before {
    background: #475569;
}
.website-detail__section--access .website-detail__access-list {
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.website-detail__section--access .website-detail__access-row:first-child .website-detail__access-value > a {
    width: 100%;
    padding: 10px 13px;
    border-radius: 10px;
    background: var(--color-primary-light);
}
.website-detail__section--team {
    border-color: #e2e8f0;
    background: #fff;
}
.website-detail__section--team .website-detail__team-list {
    overflow: visible;
    border: 0;
    background: transparent;
}
.website-detail__section--team .website-detail__team-row {
    min-height: 0;
    padding: 10px 0;
    border-bottom: 0;
}
.website-detail__access-list, .website-detail__team-list {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}
.website-detail__access-row, .website-detail__team-row {
    min-height: 62px;
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}
.website-detail__access-row:last-child, .website-detail__team-row:last-child {
    border-bottom: 0;
}
.website-detail__access-row--notes {
    align-items: flex-start;
}
.website-detail__credential-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
}
.website-detail__credential-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #f8fafc;
}
.website-detail__credential-card:only-child {
    grid-column: 1 / -1;
}
.website-detail__icon-button > i {
    display: block;
    font-size: 15px;
    line-height: 1;
    pointer-events: none;
}
.website-detail__credential-card .website-detail__access-value {
    margin-top: 8px;
}
.website-detail__access-label, .website-detail__team-label {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
}
.website-detail__access-value {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.website-detail__access-value > a, .website-detail__resources a {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.website-detail__access-value code {
    min-width: 0;
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.website-detail__access-value code.is-revealed {
    color: var(--color-primary);
}
.website-detail__icon-button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    padding: 0;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    background: #fff;
    color: var(--color-text-muted);
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}
.website-detail__icon-button:hover, .website-detail__icon-button:focus-visible {
    border-color: var(--color-primary-border-strong);
    color: var(--color-primary);
}
.website-detail__icon-button--primary {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.website-detail__icon-button.is-revealed, .website-detail__icon-button.is-copied {
    border-color: #a7f3d0;
    background: var(--color-success-light);
    color: #059669;
}
.website-detail__notes {
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.website-detail__people {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.website-detail__person {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px 5px 5px;
    border: 1px solid #e2e8f0;
    border-radius: 90px;
    background: #fff;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
}
.website-detail__person--trainer {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}
.website-detail__avatar {
    width: 28px;
    height: 28px;
    display: inline-flex;
    overflow: hidden;
    border-radius: 50%;
}
.website-detail__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.website-detail__resources {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.website-detail__resources a, .website-detail__resources > span {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.website-detail__section--checklist {
    margin-top: 22px;
    border-color: #d8e2ec;
    background: #f8fafc;
}
.website-detail__section-heading--checklist {
    align-items: center;
}
.website-detail__checklist-count {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 9px 13px;
    border: 1px solid #d8e2ec;
    border-radius: 10px;
    background: #fff;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
}
.website-detail__checklist-count strong {
    color: var(--color-text-primary);
    font-size: 19px;
    font-weight: 600;
}
.website-detail__checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.website-detail__check-item {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #fff;
    color: var(--color-text-primary);
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}
.website-detail__check-item:hover {
    border-color: #cbd5e1;
}
.website-detail__check-item.is-done {
    border-color: #a7f3d0;
    background: #f0fdf4;
    color: #166534;
}
.website-detail__check-item input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.website-detail__checkbox {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    border: 1.5px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: transparent;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}
.website-detail__check-item input:focus-visible + .website-detail__checkbox {
    outline: 2px solid color-mix(in srgb, var(--color-primary) 35%, transparent);
    outline-offset: 2px;
}
.website-detail__check-item input:checked + .website-detail__checkbox {
    border-color: var(--color-success);
    background: var(--color-success);
    color: #fff;
}
.website-detail__check-title {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.website-detail__check-item.is-done .website-detail__check-title {
    text-decoration: line-through;
    text-decoration-color: #86efac;
}
.website-detail__save-status {
    min-height: 18px;
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}
.website-detail__save-status.is-saving {
    color: var(--color-text-muted);
}
.website-detail__save-status.is-success {
    color: #059669;
}
.website-detail__save-status.is-error {
    color: var(--color-error);
}
.website-detail__empty {
    color: var(--color-text-muted-2);
    font-size: 13px;
    font-weight: 400;
}
/* Full-width website job edit page */
.website-edit-page {
    width: 100%;
    max-width: none;
    padding: 16px 0 28px;
}
.website-edit-page .form-layout-grid.with-sidebar {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}
.website-edit-sidebar-grid {
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.website-edit-sidebar-grid > .tips-box {
    min-width: 0;
    margin: 0;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-card-soft);
}
.website-edit-sidebar-grid > .tips-box:last-child {
    grid-column: 1 / -1;
}
.website-edit-page .form-card {
    padding: 28px;
    box-shadow: var(--shadow-card-soft);
}
.website-edit-checklist {
    margin-bottom: 24px;
    padding: 22px;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    background: #f8fafc;
}
.website-edit-checklist__items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.website-edit-page .checklist-row-compact {
    min-height: 52px;
    gap: 9px;
    margin: 0;
    padding: 8px 10px;
    border-color: #dbe3ec;
    border-radius: 11px;
    background: #fff;
}
.website-edit-page .checklist-row-compact.checked {
    border-color: #a7f3d0;
    background: #f0fdf4;
}
.checklist-drag-handle {
    width: 30px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-muted-2);
    cursor: grab;
    touch-action: none;
}
.checklist-drag-handle:hover, .checklist-drag-handle:focus-visible {
    background: #eef2f7;
    color: #475569;
}
.checklist-drag-handle:active {
    cursor: grabbing;
}
.checklist-sort-ghost {
    opacity: 0.35;
    border-style: dashed;
    border-color: var(--color-primary);
}
.checklist-sort-chosen {
    border-color: var(--color-primary-border-strong);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.checklist-sort-dragging {
    background: #fff;
}
.website-edit-page .member-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 9px;
    max-height: 260px;
    padding: 12px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}
.website-edit-page .member-inner-compact {
    min-height: 44px;
    gap: 10px;
    padding: 7px 10px;
    border-color: #e2e8f0;
    border-radius: 10px;
    background: #fff;
}
.website-edit-page .member-pill input:checked + .member-inner-compact {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 5%, transparent);
}
.website-edit-page .avatar-micro {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    box-shadow: 0 0 0 2px #eef2f7;
}
.website-edit-page .member-inner-compact span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
progress.checklist-progress-fill.progress-level-empty::-webkit-progress-value {
    background: var(--color-text-muted-2);
}
progress.checklist-progress-fill.progress-level-empty::-moz-progress-bar {
    background: var(--color-text-muted-2);
}
progress.checklist-progress-fill.progress-level-starting::-webkit-progress-value {
    background: var(--color-error);
}
progress.checklist-progress-fill.progress-level-starting::-moz-progress-bar {
    background: var(--color-error);
}
progress.checklist-progress-fill.progress-level-early::-webkit-progress-value {
    background: #f97316;
}
progress.checklist-progress-fill.progress-level-early::-moz-progress-bar {
    background: #f97316;
}
progress.checklist-progress-fill.progress-level-middle::-webkit-progress-value {
    background: #eab308;
}
progress.checklist-progress-fill.progress-level-middle::-moz-progress-bar {
    background: #eab308;
}
progress.checklist-progress-fill.progress-level-advanced::-webkit-progress-value {
    background: #84cc16;
}
progress.checklist-progress-fill.progress-level-advanced::-moz-progress-bar {
    background: #84cc16;
}
progress.checklist-progress-fill.progress-level-near-complete::-webkit-progress-value {
    background: #14b8a6;
}
progress.checklist-progress-fill.progress-level-near-complete::-moz-progress-bar {
    background: #14b8a6;
}
progress.checklist-progress-fill.progress-level-complete::-webkit-progress-value {
    background: var(--color-success);
}
progress.checklist-progress-fill.progress-level-complete::-moz-progress-bar {
    background: var(--color-success);
}
.checklist-progress-text.progress-level-empty {
    color: var(--color-text-muted);
}
.checklist-progress-text.progress-level-starting {
    color: var(--color-error);
}
.checklist-progress-text.progress-level-early {
    color: #f97316;
}
.checklist-progress-text.progress-level-middle {
    color: #ca8a04;
}
.checklist-progress-text.progress-level-advanced {
    color: #65a30d;
}
.checklist-progress-text.progress-level-near-complete {
    color: #0f9f91;
}
.checklist-progress-text.progress-level-complete {
    color: #059669;
}
/* URL copy actions and project team cards */
.cw-url-cell {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cw-url-cell .cw-url-link {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cw-url-copy-button {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}
.cw-url-copy-button:hover, .cw-url-copy-button:focus-visible {
    border-color: #dbe3ec;
    background: #f8fafc;
    color: var(--color-primary);
}
.cw-url-copy-button.is-copied {
    border-color: #a7f3d0;
    background: var(--color-success-light);
    color: #059669;
}
.cw-url-copy-button.is-revealed {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.website-detail__access-row--url .website-detail__access-value > a {
    flex: 1;
    width: auto;
}
.website-detail__notes-block {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 16px;
}
.website-detail__notes-block .website-detail__notes {
    width: 100%;
}
.website-detail__section--team .website-detail__team-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.website-detail__section--team .website-detail__team-row {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}
.website-detail__section--team .website-detail__team-row:last-child {
    border-bottom: 1px solid #e2e8f0;
}
.website-detail__section--team .website-detail__team-label {
    color: #475569;
}
.website-detail__section--team .website-detail__people {
    align-content: flex-start;
}
/* Website edit training and member selectors */
.website-training-card {
    overflow: hidden;
}
.website-training-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}
.website-training-fields, .website-training-members {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}
.website-training-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.website-training-fields .form-group-compact {
    margin: 0;
}
.website-training-members {
    display: flex;
    flex-direction: column;
}
.website-member-selector__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.website-member-selector__heading h3 {
    margin: 2px 0 0;
    color: #0f172a;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}
.website-member-selector__eyebrow {
    display: block;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 600;
}
.website-member-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}
.website-member-selector--scrollable {
    max-height: 214px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.website-member-selector__option, .website-member-selector > .member-pill {
    position: relative;
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.website-member-selector__option > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.website-member-selector .member-inner-compact {
    min-height: 42px;
    gap: 10px;
    padding: 7px 12px;
    border: 1px solid #d7e0ea;
    border-radius: 9px;
    background: #fff;
    color: #0f172a;
    box-shadow: none;
}
.website-member-selector .member-inner-compact:hover {
    border-color: var(--color-text-muted-2);
    background: #fff;
}
.website-member-selector__option > input:checked + .member-inner-compact, .website-member-selector > .member-pill > input:checked + .member-inner-compact {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
    box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.06);
}
.website-member-selector__option > input:focus-visible + .member-inner-compact {
    outline: 2px solid rgba(var(--color-primary-rgb), 0.28);
    outline-offset: 2px;
}
.website-member-selector .avatar-micro {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    box-shadow: none;
}
.website-member-selector__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 400;
}
.website-member-selector__option > input:checked + .member-inner-compact .website-member-selector__name, .website-member-selector > .member-pill > input:checked + .member-inner-compact .website-member-selector__name {
    font-weight: 600;
}
.website-team-card .website-member-selector {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 5px;
}
/* Shared edit layout for company websites and website jobs */
.website-edit-form-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(520px, 0.8fr);
    gap: 24px;
}
.website-edit-main, .website-edit-sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.form-title-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border-radius: 9px;
    font-size: 15px;
}
.form-title-icon--security {
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.form-title-icon--technical {
    background: #eff6ff;
    color: #2563eb;
}
.form-title-icon--training {
    background: var(--color-success-light);
    color: #059669;
}
.website-password-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.website-password-grid .form-group-compact {
    min-width: 0;
    margin: 0;
}
.website-password-grid__full {
    grid-column: 1 / -1;
}
.form-label__hint {
    color: var(--color-text-muted-2);
    font-weight: 400;
}
.website-password-card .password-toggle-btn {
    width: 32px;
    height: 32px;
    right: 5px;
    padding: 0;
    border-radius: 7px;
}
.website-password-card .password-toggle-btn:hover, .website-password-card .password-toggle-btn:focus-visible {
    background: #f1f5f9;
    color: #334155;
}
.website-training-card--sidebar {
    padding: 24px;
}
.website-training-card--sidebar .form-title {
    margin-bottom: 18px;
    font-size: 18px;
}
.website-training-card--sidebar .website-training-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}
.website-training-card--sidebar .website-training-fields, .website-training-card--sidebar .website-training-members {
    padding: 16px;
    border-radius: 12px;
}
.website-training-card--sidebar .website-member-selector {
    gap: 8px;
}
.website-training-card--sidebar .website-member-selector .member-inner-compact {
    min-height: 40px;
    padding: 6px 9px;
}
/* Shared technical checklist for company websites and website jobs */
.website-sidebar-heading {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-primary);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
}
.website-sidebar-actions .website-sidebar-heading {
    display: flex;
    align-items: center;
    gap: 9px;
}
.website-sidebar-actions .website-sidebar-heading i {
    color: var(--color-primary);
    font-size: 16px;
}
.website-sidebar-actions__buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}
.website-sidebar-actions__buttons .btn-primary-compact, .website-sidebar-actions__buttons .btn-cancel-compact {
    width: 100%;
    min-width: 0;
}
.website-edit-checklist__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.website-edit-checklist__header h3 {
    margin: 2px 0 0;
    color: var(--color-text-primary);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}
.website-edit-checklist__eyebrow {
    display: block;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 600;
}
.website-edit-checklist__add {
    flex: 0 0 auto;
    gap: 8px;
}
.website-technical-card .checklist-row-compact {
    min-height: 52px;
    gap: 9px;
    margin: 0;
    padding: 8px 10px;
    border-color: #dbe3ec;
    border-radius: 11px;
    background: #fff;
}
.website-technical-card .checklist-row-compact.checked {
    border-color: #a7f3d0;
    background: #f0fdf4;
}
.website-technical-card .checklist-checkbox-inner .fa-check {
    opacity: 0;
    transform: scale(0.5);
    color: #fff;
    font-size: 11px;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}
.website-technical-card .checklist-checkbox-inner.checked .fa-check {
    opacity: 1;
    transform: scale(1);
}
.website-technical-card .checklist-remove-btn, .website-technical-card .checklist-drag-handle {
    flex: 0 0 auto;
}
.website-technical-card .checklist-drag-handle .fa-grip-vertical {
    font-size: 16px;
}
.website-technical-card .checklist-remove-btn .fa-xmark {
    font-size: 14px;
}
.website-technical-card > .form-row-single-line {
    margin-bottom: 4px;
}
.website-technical-card > .form-group-compact:last-child {
    margin-bottom: 0;
}
/* Website create and managed website settings */
.website-create-form-layout {
    align-items: start;
}
.website-create-title {
    margin-bottom: 22px;
}
.website-create-basic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.form-title-icon--new {
    color: #2563eb;
    background: #eff6ff;
}
.form-title-icon--team {
    color: #7c3aed;
    background: #f5f3ff;
    flex: 0 0 auto;
}
.required-mark {
    color: var(--color-primary);
}
.website-create-help h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
}
.website-create-help h2 i {
    color: #2563eb;
}
.website-create-help p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
}
.settings-page {
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 24px 20px 48px;
}
.settings-page__header {
    margin-bottom: 18px;
}
.settings-page__header h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 600;
}
.settings-page__header h1 i {
    color: var(--color-brand);
}
.settings-page__header p {
    margin: 6px 0 0;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 400;
}
.settings-card {
    margin-bottom: 16px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}
.settings-create-form, .settings-row-form {
    display: flex;
    align-items: end;
    gap: 12px;
}
.settings-create-form .form-group-compact:first-child {
    flex: 1;
}
.settings-order-field {
    width: 92px;
    flex: 0 0 92px;
}
.settings-list {
    display: grid;
    gap: 10px;
}
.settings-list__row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}
.settings-row-form {
    flex: 1;
}
.settings-row-form > .form-control-compact:not(.settings-order-field) {
    flex: 1;
}
.settings-list__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 8px;
    flex: 0 0 32px;
}
.settings-list__usage {
    min-width: 78px;
    color: var(--color-text-secondary);
    font-size: 13px;
    text-align: right;
}
.settings-icon-button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #475569;
    background: #fff;
    border: 1px solid #dbe2ea;
    border-radius: 9px;
    cursor: pointer;
}
.settings-icon-button:hover {
    color: #2563eb;
    border-color: #93c5fd;
}
.settings-icon-button--danger:hover {
    color: var(--color-primary-hover);
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
}
.settings-empty {
    padding: 32px;
    color: var(--color-text-secondary);
    font-size: 13px;
    text-align: center;
}
.website-taxonomy-table .task-configuration-table__project-icon {
    --ui-color: #6366f1;
}
.website-taxonomy-table .task-configuration-table__order-number::before {
    content: none;
}
.website-taxonomy-badge, .website-detail__badge--taxonomy {
    color: var(--ui-color);
    border-color: color-mix(in srgb, var(--ui-color) 32%, #fff);
    background: color-mix(in srgb, var(--ui-color) 10%, #fff);
}
/* ============================================================
   Organization dashboard
   ============================================================ */
.hub-dashboard {
    --dashboard-border: #e2e8f0;
    display: flex;
    width: 100%;
    flex-direction: column;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
}
.hub-dashboard__header {
    order: 0;
}
.hub-dashboard-section--analytics {
    order: 1;
}
.hub-dashboard-section--overview {
    order: 2;
}
.hub-dashboard-section--modules {
    order: 3;
}
.hub-dashboard-section--actions {
    order: 4;
}
.hub-dashboard h1, .hub-dashboard h2, .hub-dashboard h3, .hub-dashboard p {
    margin: 0;
}
.hub-dashboard h1, .hub-dashboard h2, .hub-dashboard h3, .hub-dashboard strong {
    font-weight: 600;
}
.hub-dashboard__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    padding: 22px;
    border: 1px solid var(--dashboard-border);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.hub-dashboard__welcome {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
}
.hub-dashboard__welcome-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 14px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    font-size: 19px;
}
.hub-dashboard__welcome h1 {
    color: var(--color-text-primary);
    font-size: 20px;
    line-height: 1.35;
}
.hub-dashboard__welcome h1 span {
    color: var(--color-primary);
}
.hub-dashboard__welcome p {
    margin-top: 3px;
    color: var(--color-text-muted);
    line-height: 1.5;
}
.hub-dashboard__period-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}
.hub-dashboard__period {
    display: flex;
    min-width: 230px;
    padding: 10px 14px;
    align-items: flex-end;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    background: #eff6ff;
}
.hub-dashboard__period-label {
    color: var(--color-text-muted);
    font-size: 12px;
}
.hub-dashboard__period strong {
    margin-top: 2px;
    color: #1d4ed8;
    font-size: 13px;
}
.hub-dashboard-filter {
    display: flex;
    grid-column: 1 / -1;
    padding-top: 16px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid #edf2f7;
}
.hub-dashboard-filter__presets, .hub-dashboard-filter__dates {
    display: flex;
    align-items: center;
}
.hub-dashboard-filter__presets {
    padding: 4px;
    gap: 3px;
    border-radius: 12px;
    background: #f1f5f9;
}
.hub-dashboard-filter__preset {
    height: 34px;
    padding: 0 15px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--color-text-muted);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}
.hub-dashboard-filter__preset:hover, .hub-dashboard-filter__preset.is-active {
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.hub-dashboard-filter__dates {
    gap: 8px;
}
.hub-dashboard-filter__field {
    display: flex;
    height: var(--filter-control-height);
    padding: 5px 12px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--filter-control-radius);
    background: #fff;
}
.hub-dashboard-filter__field span {
    color: var(--color-text-muted);
    font-weight: 600;
    white-space: nowrap;
}
.hub-dashboard-filter__field input {
    width: 118px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text-primary);
    font: inherit;
    font-weight: 400;
}
.hub-dashboard-filter__field > .thai-date-field {
    width: 150px;
    min-height: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.hub-dashboard-filter__field > .thai-date-field:hover, .hub-dashboard-filter__field > .thai-date-field:focus-visible, .hub-dashboard-filter__field > .thai-date-field[aria-expanded="true"] {
    border: 0;
    background: transparent;
    box-shadow: none;
}
.hub-dashboard-filter__field > .thai-date-field .thai-date-field__icon {
    width: 16px;
    height: 16px;
}
.hub-dashboard-filter__field > .thai-date-field .thai-date-field__value {
    color: var(--color-text-primary);
    font-weight: 400;
}
.hub-dashboard-filter__field:has(> .thai-date-field[aria-expanded="true"]) {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.hub-dashboard-filter__separator {
    color: var(--color-text-muted-2);
}
.hub-dashboard-filter__submit, .hub-dashboard-filter__reset {
    display: inline-flex;
    height: var(--filter-control-height);
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.hub-dashboard-filter__submit {
    padding: 0 25px;
    gap: 7px;
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}
.hub-dashboard-filter__submit:hover {
    background: var(--color-primary-hover);
}
.hub-dashboard-filter__reset {
    width: var(--filter-control-height);
    border: 1px solid var(--dashboard-border);
    background: #fff;
    color: var(--color-text-muted);
}
.hub-dashboard-filter__reset:hover {
    border-color: var(--color-primary-border-strong);
    color: var(--color-primary);
}
.hub-dashboard-section {
    margin-top: 30px;
}
.hub-dashboard-section__heading {
    display: flex;
    margin-bottom: 14px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}
.hub-dashboard-section__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 600;
}
.hub-dashboard-section__heading h2 {
    color: var(--color-text-primary);
    font-size: 19px;
    line-height: 1.35;
}
.hub-dashboard-section__hint {
    color: var(--color-text-muted-2);
    white-space: nowrap;
}
.hub-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.hub-dashboard-kpi {
    --kpi-color: var(--color-primary);
    --kpi-bg: var(--color-error-light);
    display: flex;
    min-height: 112px;
    padding: 20px;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--dashboard-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}
.hub-dashboard-kpi--blue {
    --kpi-color: var(--color-info);
    --kpi-bg: #eff6ff;
}
.hub-dashboard-kpi--amber {
    --kpi-color: var(--color-warning);
    --kpi-bg: #fffbeb;
}
.hub-dashboard-kpi--violet {
    --kpi-color: #8b5cf6;
    --kpi-bg: #f5f3ff;
}
.hub-dashboard-kpi__icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 14px;
    background: var(--kpi-bg);
    color: var(--kpi-color);
    font-size: 18px;
}
.hub-dashboard-kpi > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.hub-dashboard-kpi__label {
    color: #475569;
    font-weight: 600;
}
.hub-dashboard-kpi strong {
    margin: 2px 0;
    color: var(--kpi-color);
    font-size: 26px;
    line-height: 1.15;
}
.hub-dashboard-kpi small {
    overflow: hidden;
    color: var(--color-text-muted-2);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hub-dashboard-modules {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.hub-dashboard-module {
    --module-color: var(--color-primary);
    --module-soft: var(--color-error-light);
    position: relative;
    display: flex;
    min-height: 148px;
    padding: 20px;
    align-items: flex-start;
    gap: 12px;
    overflow: hidden;
    border: 1px solid var(--dashboard-border);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}
.hub-dashboard-module:hover {
    border-color: color-mix(in srgb, var(--module-color) 35%, #fff);
    box-shadow: 0 14px 30px color-mix(in srgb, var(--module-color) 10%, transparent);
    transform: translateY(-2px);
}
.hub-dashboard-module--blue {
    --module-color: var(--color-info);
    --module-soft: #eff6ff;
}
.hub-dashboard-module--violet {
    --module-color: #8b5cf6;
    --module-soft: #f5f3ff;
}
.hub-dashboard-module--cyan {
    --module-color: #06b6d4;
    --module-soft: #ecfeff;
}
.hub-dashboard-module--slate {
    --module-color: var(--color-text-muted);
    --module-soft: #f1f5f9;
}
.hub-dashboard-module--amber {
    --module-color: var(--color-warning);
    --module-soft: #fffbeb;
}
.hub-dashboard-module--emerald {
    --module-color: var(--color-success);
    --module-soft: var(--color-success-light);
}
.hub-dashboard-module--pink {
    --module-color: #ec4899;
    --module-soft: #fdf2f8;
}
.hub-dashboard-module--indigo {
    --module-color: #6366f1;
    --module-soft: #eef2ff;
}
.hub-dashboard-module--rose {
    --module-color: var(--color-primary);
    --module-soft: var(--color-primary-subtle);
}
.hub-dashboard-module--teal {
    --module-color: #14b8a6;
    --module-soft: #f0fdfa;
}
.hub-dashboard-module--orange {
    --module-color: #f97316;
    --module-soft: #fff7ed;
}
.hub-dashboard-module__icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 12px;
    background: var(--module-soft);
    color: var(--module-color);
    font-size: 16px;
}
.hub-dashboard-module__body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    width: 100%;
}
.hub-dashboard-module__title {
    padding-right: 20px;
    overflow: hidden;
    color: #475569;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hub-dashboard-module__value {
    margin: 3px 0 1px;
    color: var(--module-color);
    font-size: 20px;
    line-height: 1.2;
}
.hub-dashboard-module__description {
    min-height: 36px;
    color: var(--color-text-muted-2);
    font-size: 12px;
    line-height: 1.55;
}
.hub-dashboard-module__arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #cbd5e1;
    font-size: 12px;
}
.hub-dashboard-module:hover .hub-dashboard-module__arrow {
    color: var(--module-color);
}
.hub-dashboard-module__progress-row, .hub-dashboard-task__progress {
    display: flex;
    margin-top: auto;
    padding-top: 8px;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.hub-dashboard-module__progress-row > span, .hub-dashboard-task__progress > span {
    min-width: 30px;
    color: var(--color-text-muted);
    font-size: 11px;
    text-align: right;
}
.hub-dashboard-progress {
    width: 100%;
    height: 5px;
    overflow: hidden;
    border: 0;
    border-radius: 90px;
    appearance: none;
    background: #e2e8f0;
}
.hub-dashboard-progress::-webkit-progress-bar {
    border-radius: 90px;
    background: #e2e8f0;
}
.hub-dashboard-progress::-webkit-progress-value {
    border-radius: 90px;
    background: var(--progress-scale-color, var(--color-text-muted-2));
}
.hub-dashboard-progress::-moz-progress-bar {
    border-radius: 90px;
    background: var(--progress-scale-color, var(--color-text-muted-2));
}
.hub-dashboard-progress.is-medium::-webkit-progress-value {
    background: var(--color-warning);
}
.hub-dashboard-progress.is-medium::-moz-progress-bar {
    background: var(--color-warning);
}
.hub-dashboard-progress.is-high::-webkit-progress-value {
    background: var(--color-success);
}
.hub-dashboard-progress.is-high::-moz-progress-bar {
    background: var(--color-success);
}
.hub-dashboard-charts {
    display: grid;
    gap: 14px;
}
.hub-dashboard-charts + .hub-dashboard-charts {
    margin-top: 14px;
}
.hub-dashboard-charts--lead {
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
}
.hub-dashboard-charts--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hub-dashboard-charts--equal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hub-dashboard-chart-card, .hub-dashboard-list-card {
    min-width: 0;
    border: 1px solid var(--dashboard-border);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}
.hub-dashboard-chart-card {
    padding: 20px;
}
.hub-dashboard-card-heading {
    display: flex;
    min-height: 42px;
    margin-bottom: 12px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.hub-dashboard-card-heading > div, .hub-dashboard-list-card__header > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}
.hub-dashboard-card-heading__icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 11px;
    background: #eff6ff;
    color: var(--color-info);
    font-size: 15px;
}
.hub-dashboard-card-heading__icon--violet {
    background: #f5f3ff;
    color: #8b5cf6;
}
.hub-dashboard-card-heading__icon--emerald {
    background: var(--color-success-light);
    color: var(--color-success);
}
.hub-dashboard-card-heading__icon--rose {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.hub-dashboard-card-heading__icon--amber {
    background: #fffbeb;
    color: var(--color-warning);
}
.hub-dashboard-card-heading__icon--cyan {
    background: #ecfeff;
    color: #06b6d4;
}
.hub-dashboard-card-heading__icon--slate {
    background: #f1f5f9;
    color: var(--color-text-muted);
}
.hub-dashboard-card-heading h3, .hub-dashboard-list-card__header h3 {
    overflow: hidden;
    color: var(--color-text-primary);
    font-size: 14px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hub-dashboard-card-heading p, .hub-dashboard-list-card__header p {
    margin-top: 1px;
    overflow: hidden;
    color: var(--color-text-muted-2);
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hub-dashboard-card-heading__metric {
    padding: 6px 9px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.hub-dashboard-chart {
    position: relative;
    height: 250px;
}
.hub-dashboard-chart--large {
    height: 310px;
}
.hub-dashboard-chart canvas {
    max-width: 100%;
}
.hub-dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}
.hub-dashboard-list-card {
    display: flex;
    height: 390px;
    min-height: 390px;
    flex-direction: column;
    overflow: hidden;
}
.hub-dashboard-list-card__header {
    display: flex;
    min-height: 72px;
    padding: 15px 20px;
    align-items: center;
    flex: 0 0 auto;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #edf2f7;
}
.hub-dashboard-list-card__header > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.hub-dashboard-list-card__header > a:hover {
    color: var(--color-primary);
}
.hub-dashboard-list {
    display: flex;
    min-height: 0;
    padding: 10px;
    flex: 1 1 auto;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
}
.hub-dashboard-list::-webkit-scrollbar {
    width: 5px;
}
.hub-dashboard-list::-webkit-scrollbar-track {
    background: transparent;
}
.hub-dashboard-list::-webkit-scrollbar-thumb {
    border-radius: 90px;
    background: #cbd5e1;
}
.hub-dashboard-list:hover::-webkit-scrollbar-thumb {
    background: var(--color-text-muted-2);
}
.hub-dashboard-task, .hub-dashboard-deadline {
    display: flex;
    padding: 10px;
    align-items: center;
    gap: 10px;
    border-radius: 11px;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s ease;
}
.hub-dashboard-task + .hub-dashboard-task, .hub-dashboard-deadline + .hub-dashboard-deadline, .hub-dashboard-absence + .hub-dashboard-absence {
    border-top: 1px solid #f1f5f9;
}
.hub-dashboard-task:hover, .hub-dashboard-deadline:hover {
    background: #f8fafc;
}
.hub-dashboard-task__marker {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--color-primary);
}
.hub-dashboard-task__content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}
.hub-dashboard-task__top, .hub-dashboard-task__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.hub-dashboard-task__top strong {
    overflow: hidden;
    color: var(--color-text-primary);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hub-dashboard-task__top time {
    color: var(--color-text-muted);
    font-size: 11px;
    white-space: nowrap;
}
.hub-dashboard-task__top time.is-overdue {
    color: var(--color-primary);
}
.hub-dashboard-task__meta {
    margin-top: 2px;
    justify-content: flex-start;
    color: var(--color-text-muted-2);
    font-size: 11px;
}
.hub-dashboard-task__meta span + span::before {
    margin-right: 6px;
    content: "•";
    color: #cbd5e1;
}
.hub-dashboard-task__progress {
    padding-top: 5px;
}
.hub-dashboard-absence {
    display: flex;
    min-height: 58px;
    padding: 10px;
    align-items: center;
    gap: 10px;
    border-radius: 11px;
    color: inherit;
    text-decoration: none;
    transition:
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}
.hub-dashboard-absence:hover, .hub-dashboard-absence:focus-visible {
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px #edf2f7;
    outline: none;
}
.hub-dashboard-absence__avatar {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
}
.hub-dashboard-absence__content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}
.hub-dashboard-absence__content strong {
    overflow: hidden;
    color: var(--color-text-primary);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hub-dashboard-absence__content span {
    color: var(--color-text-muted-2);
    font-size: 11px;
}
.hub-dashboard-absence__badge {
    padding: 5px 8px;
    border: 1px solid var(--color-primary-border-strong);
    border-radius: 90px;
    background: var(--color-error-light);
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.hub-dashboard-absence__badge.is-wfh {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}
.hub-dashboard-absence__arrow {
    flex: 0 0 auto;
    color: #cbd5e1;
    font-size: 11px;
    transition:
        color 0.18s ease,
        transform 0.18s ease;
}
.hub-dashboard-absence:hover .hub-dashboard-absence__arrow, .hub-dashboard-absence:focus-visible .hub-dashboard-absence__arrow {
    color: var(--color-primary);
    transform: translateX(2px);
}
.hub-dashboard-deadline__icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 10px;
    background: #fffbeb;
    color: var(--color-warning);
}
.hub-dashboard-deadline__content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}
.hub-dashboard-deadline__content strong {
    overflow: hidden;
    color: var(--color-text-primary);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hub-dashboard-deadline__content span {
    margin-top: 1px;
    color: var(--color-text-muted-2);
    font-size: 11px;
}
.hub-dashboard-deadline > .fa-chevron-right {
    color: #cbd5e1;
    font-size: 11px;
}
.hub-dashboard-empty {
    display: flex;
    min-height: 100%;
    padding: 24px;
    flex: 1 0 auto;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    color: var(--color-text-muted-2);
    text-align: center;
}
.hub-dashboard-empty > i {
    margin-bottom: 10px;
    color: #cbd5e1;
    font-size: 29px;
}
.hub-dashboard-empty strong {
    color: var(--color-text-muted);
}
.hub-dashboard-empty span {
    margin-top: 2px;
    font-size: 12px;
}
/* ============================================================
   Global progress scale
   0 gray, 1-20 red, 21-40 orange, 41-60 yellow,
   61-80 light green, 81-99 teal, 100 success green
   ============================================================ */
.progress-level-empty {
    --progress-scale-color: var(--color-text-muted-2);
}
.progress-level-starting {
    --progress-scale-color: var(--color-error);
}
.progress-level-early {
    --progress-scale-color: #f97316;
}
.progress-level-middle {
    --progress-scale-color: #eab308;
}
.progress-level-advanced {
    --progress-scale-color: #84cc16;
}
.progress-level-near-complete {
    --progress-scale-color: #14b8a6;
}
.progress-level-complete {
    --progress-scale-color: var(--color-success);
}
progress[class*="progress-level-"] {
    background: #e2e8f0 !important;
    color: var(--progress-scale-color);
}
progress[class*="progress-level-"]::-webkit-progress-bar {
    background: #e2e8f0 !important;
}
progress.progress-level-empty::-webkit-progress-value, progress.progress-level-starting::-webkit-progress-value, progress.progress-level-early::-webkit-progress-value, progress.progress-level-middle::-webkit-progress-value, progress.progress-level-advanced::-webkit-progress-value, progress.progress-level-near-complete::-webkit-progress-value, progress.progress-level-complete::-webkit-progress-value {
    background: var(--progress-scale-color) !important;
}
progress.progress-level-empty::-moz-progress-bar, progress.progress-level-starting::-moz-progress-bar, progress.progress-level-early::-moz-progress-bar, progress.progress-level-middle::-moz-progress-bar, progress.progress-level-advanced::-moz-progress-bar, progress.progress-level-near-complete::-moz-progress-bar, progress.progress-level-complete::-moz-progress-bar {
    background: var(--progress-scale-color) !important;
}
.progress-scale-fill.progress-level-empty, .progress-scale-fill.progress-level-starting, .progress-scale-fill.progress-level-early, .progress-scale-fill.progress-level-middle, .progress-scale-fill.progress-level-advanced, .progress-scale-fill.progress-level-near-complete, .progress-scale-fill.progress-level-complete {
    background: var(--progress-scale-color) !important;
}
.progress-scale-text.progress-level-empty, .progress-scale-text.progress-level-starting, .progress-scale-text.progress-level-early, .progress-scale-text.progress-level-middle, .progress-scale-text.progress-level-advanced, .progress-scale-text.progress-level-near-complete, .progress-scale-text.progress-level-complete {
    color: var(--progress-scale-color) !important;
}
.publishing-progress.progress-level-empty .publishing-progress-segment.is-active, .publishing-progress.progress-level-starting .publishing-progress-segment.is-active, .publishing-progress.progress-level-early .publishing-progress-segment.is-active, .publishing-progress.progress-level-middle .publishing-progress-segment.is-active, .publishing-progress.progress-level-advanced .publishing-progress-segment.is-active, .publishing-progress.progress-level-near-complete .publishing-progress-segment.is-active, .publishing-progress.progress-level-complete .publishing-progress-segment.is-active {
    background: var(--progress-scale-color);
}
.publishing-progress[class*="progress-level-"] .publishing-progress-value {
    color: var(--progress-scale-color);
}
/* =========================================================
   Shared table management actions
   Keep every "จัดการ" column aligned with Portfolio Publishing.
   ========================================================= */
.app-table-actions, .cw-manage-wrap, .publishing-table-actions, .table-action-group, .task-configuration-table__actions, .members-table__actions, .roles-table__actions, .tricks-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    white-space: nowrap;
}
.table-action-menu {
    display: inline-flex;
    justify-content: flex-end;
}
.table-action-menu__trigger {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--color-line-strong);
    border-radius: 10px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.table-action-menu__trigger:hover, .table-action-menu__trigger[aria-expanded="true"] {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.table-action-menu__panel {
    position: fixed;
    z-index: 1200;
    display: none;
    width: fit-content;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    padding: 7px;
    border: 1px solid var(--color-line-strong);
    border-radius: 12px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-hover);
}
.table-action-menu__panel.is-open {
    display: flex;
}
.table-action-menu__panel > button, .table-action-menu__panel > a, .table-action-menu__panel > form > button {
    display: flex;
    width: 100%;
    min-height: 38px;
    min-width: 0;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-primary);
    font: inherit;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.table-action-menu__panel > button:hover, .table-action-menu__panel > a:hover, .table-action-menu__panel > form > button:hover {
    background: var(--color-bg-hover);
}
.table-action-menu__panel > form {
    display: block;
    width: 100%;
    margin: 0;
}
.table-action-menu__panel .table-action-menu__danger {
    color: var(--color-primary);
}
.app-table-actions form, .cw-manage-wrap form, .task-configuration-table__delete-form, .members-table__delete-form, .roles-table__delete-form, .holiday-table__delete-form {
    display: inline-flex;
    margin: 0;
}
.app-table-action, .cw-manage-btn, .publishing-action, .table-action-button, .task-configuration-table__action, .members-table__action, .roles-table__action, .tricks-action, .holiday-table__delete-button, .line-member-table__action .line-icon-button, .trash-management-action {
    display: inline-flex;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #f8fafc;
    box-shadow: none;
    color: var(--color-text-muted);
    font: inherit;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease,
        opacity 0.16s ease;
}
.app-table-action svg, .cw-manage-btn svg, .publishing-action svg, .table-action-button svg, .task-configuration-table__action svg, .members-table__action svg, .roles-table__action svg, .tricks-action svg, .holiday-table__delete-button svg, .line-member-table__action .line-icon-button svg, .trash-management-action svg {
    width: 15px;
    height: 15px;
}
.app-table-action i, .cw-manage-btn i, .table-action-button i, .task-configuration-table__action i, .members-table__action i, .roles-table__action i, .tricks-action i, .holiday-table__delete-button i, .line-member-table__action .line-icon-button i, .trash-management-action i {
    font-size: 14px;
    line-height: 1;
}
.app-table-action:hover, .app-table-action:focus-visible, .cw-manage-btn:hover, .cw-manage-btn:focus-visible, .publishing-action:hover, .publishing-action:focus-visible, .table-action-button:hover, .table-action-button:focus-visible, .task-configuration-table__action:hover, .task-configuration-table__action:focus-visible, .members-table__action:hover, .members-table__action:focus-visible, .roles-table__action:hover, .roles-table__action:focus-visible, .tricks-action:hover, .tricks-action:focus-visible, .holiday-table__delete-button:hover, .holiday-table__delete-button:focus-visible, .line-member-table__action .line-icon-button:hover, .line-member-table__action .line-icon-button:focus-visible, .trash-management-action:hover, .trash-management-action:focus-visible {
    border-color: #cbd5e1;
    background: #eef2f7;
    color: #334155;
}
.app-table-action--manage, .app-table-action--view, .publishing-action--manage, .table-action-button--view, .tricks-action--view, .line-member-table__action .line-icon-button {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.app-table-action--manage:hover, .app-table-action--manage:focus-visible, .app-table-action--view:hover, .app-table-action--view:focus-visible, .publishing-action--manage:hover, .publishing-action--manage:focus-visible, .table-action-button--view:hover, .table-action-button--view:focus-visible, .tricks-action--view:hover, .tricks-action--view:focus-visible, .line-member-table__action .line-icon-button:hover, .line-member-table__action .line-icon-button:focus-visible {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-border-strong);
    color: var(--color-primary-hover);
}
.app-table-action--edit, .publishing-action--edit, .table-action-button--edit {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: var(--color-text-muted);
}
.app-table-action--edit:hover, .app-table-action--edit:focus-visible, .publishing-action--edit:hover, .publishing-action--edit:focus-visible, .table-action-button--edit:hover, .table-action-button--edit:focus-visible {
    border-color: #cbd5e1;
    background: #eef2f7;
    color: #334155;
}
.app-table-action--delete, .publishing-action--delete, .table-action-button--delete, .task-configuration-table__action--danger, .members-table__action--danger, .roles-table__action--danger, .tricks-action--delete, .holiday-table__delete-button, .trash-management-action--delete, .cw-manage-wrap form .cw-manage-btn {
    border-color: var(--color-primary-subtle);
    background: #fff;
    color: var(--color-primary);
}
.app-table-action--delete:hover, .app-table-action--delete:focus-visible, .publishing-action--delete:hover, .publishing-action--delete:focus-visible, .table-action-button--delete:hover, .table-action-button--delete:focus-visible, .task-configuration-table__action--danger:hover, .task-configuration-table__action--danger:focus-visible, .members-table__action--danger:hover, .members-table__action--danger:focus-visible, .roles-table__action--danger:hover, .roles-table__action--danger:focus-visible, .tricks-action--delete:hover, .tricks-action--delete:focus-visible, .holiday-table__delete-button:hover, .holiday-table__delete-button:focus-visible, .trash-management-action--delete:hover, .trash-management-action--delete:focus-visible, .cw-manage-wrap form .cw-manage-btn:hover, .cw-manage-wrap form .cw-manage-btn:focus-visible {
    border-color: var(--color-primary-border-strong);
    background: var(--color-error-light);
    color: var(--color-primary-hover);
}
.app-table-action--external, .app-table-action--restore, .publishing-action--external, .tricks-action--restore, .trash-management-action--restore, .publishing-action--manage.is-complete {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #059669;
}
.app-table-action--external:hover, .app-table-action--external:focus-visible, .app-table-action--restore:hover, .app-table-action--restore:focus-visible, .publishing-action--external:hover, .publishing-action--external:focus-visible, .tricks-action--restore:hover, .tricks-action--restore:focus-visible, .trash-management-action--restore:hover, .trash-management-action--restore:focus-visible, .publishing-action--manage.is-complete:hover, .publishing-action--manage.is-complete:focus-visible {
    border-color: #86efac;
    background: #dcfce7;
    color: #047857;
}
.app-table-action:disabled, .task-configuration-table__action:disabled, .members-table__action:disabled, .roles-table__action:disabled, .line-member-table__action .line-icon-button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
    transform: none;
}
/* =========================================================
   Responsive data-table sizing
   Keep management buttons fully visible without needless
   horizontal scrolling on desktop-sized application layouts.
   ========================================================= */
.app-table-actions {
    width: max-content;
    min-width: max-content;
    max-width: none;
    margin-left: auto;
    overflow: visible;
}
.main-content td.table-actions-cell, .main-content th.table-actions-heading {
    overflow: visible;
    text-overflow: clip;
}
.main-content td.table-actions-cell {
    padding-right: 12px;
    padding-left: 6px;
}
.website-records-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}
.website-records-column--select {
    width: 42px;
}
.website-records-column--name {
    width: 25%;
}
.website-records-column--username {
    width: 20%;
}
.website-records-column--password {
    width: 19%;
}
.website-records-column--category {
    width: 11%;
}
.website-records-column--progress {
    width: 8%;
}
.website-records-column--assignee {
    width: 7%;
}
.website-records-column--actions {
    width: 108px;
}
.website-records-table th, .website-records-table td {
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.website-records-table .table-checkbox-cell {
    padding-right: 6px;
    padding-left: 12px;
}
.website-records-table .list-task-title-wrap, .website-records-table .cw-url-cell, .website-records-table .cw-auth-wrapper {
    min-width: 0;
    max-width: 100%;
}
.website-records-table .cw-auth-wrapper {
    width: 100%;
    overflow: visible;
}
.website-records-table .list-task-name, .website-records-table .cw-url-link {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.website-records-table .website-record-name-access {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 30px);
    width: 100%;
}
.website-records-table .website-job-name-link {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text-primary);
    text-decoration: none;
}
.website-records-table .website-job-name-link:hover {
    color: var(--color-primary);
}
.website-records-table .website-job-name-copy {
    flex: 0 0 28px;
}
.website-records-table .cw-auth-box {
    box-sizing: border-box;
    overflow: hidden;
    min-width: 0;
    white-space: nowrap;
}
/* Keep account fields consistent on both website tables. Username needs
   enough room for a useful preview; a masked password only needs its icon
   and eight dots, so it should not consume the same width. */
.website-records-table .cw-auth-box.user {
    width: 160px;
    max-width: 160px;
    flex: 0 1 160px;
    padding-right: 10px;
    padding-left: 10px;
}
.website-records-table .cw-auth-box.pwd {
    width: 104px;
    max-width: 104px;
    flex: 0 0 104px;
    padding-right: 10px;
    padding-left: 10px;
}
.website-records-table .cw-auth-box > svg {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
}
.website-records-table .cw-auth-value {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    padding-right: 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.website-records-table .cw-auth-box.pwd .cw-auth-value {
    flex: 0 0 auto;
    overflow: visible;
    padding-right: 0;
    text-overflow: clip;
}
.website-records-table .cw-auth-actions {
    flex: 0 0 auto;
    margin-left: 0;
}
.website-records-table .table-actions-heading, .website-records-table .table-actions-cell {
    width: 108px;
    min-width: 108px;
    overflow: visible;
}
.website-records-table .cw-manage-wrap {
    gap: 5px;
}
.maintenance-column--actions, .seo-content-column--actions {
    width: 112px;
}
.maintenance-data-table .table-actions-heading, .maintenance-data-table .table-actions-cell, .seo-content-data-table .table-actions-heading, .seo-content-data-table .table-actions-cell {
    width: 112px;
    min-width: 112px;
    overflow: visible;
}
.maintenance-data-table .maintenance-manage-wrap, .seo-content-data-table .maintenance-manage-wrap {
    gap: 5px;
}
/* SweetAlert toast notifications must stay compact.
   The premium dialog theme above is intended for confirmation modals. */
body div:where(.swal2-container) div:where(.swal2-popup).swal2-toast {
    position: fixed !important;
    right: 12px !important;
    bottom: 12px !important;
    left: auto !important;
    top: auto !important;
    display: flex !important;
    width: auto !important;
    min-width: 240px !important;
    max-width: min(360px, calc(100vw - 24px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 64px !important;
    flex: 0 0 auto !important;
    align-self: flex-end !important;
    justify-self: end !important;
    padding: 10px 14px !important;
    align-items: center !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16) !important;
}
body div:where(.swal2-container) div:where(.swal2-popup).swal2-toast h2:where(.swal2-title) {
    margin: 0 !important;
    padding: 0 !important;
    color: #1e293b !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: left !important;
}
body div:where(.swal2-container) div:where(.swal2-popup).swal2-toast div:where(.swal2-icon) {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    margin: 0 9px 0 0 !important;
    font-size: 11px !important;
}
body div:where(.swal2-container) div:where(.swal2-popup).swal2-toast div:where(.swal2-html-container) {
    margin: 2px 0 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}
body div:where(.swal2-container) div:where(.swal2-popup).swal2-toast .swal2-timer-progress-bar {
    height: 3px !important;
}
/* =========================================================
   Unified application data tables
   One visual language for every list: header, dividers, hover,
   row density and management-column spacing.
   ========================================================= */
.main-content .app-standard-table {
    --app-table-min-width: 760px;
    width: max(100%, var(--app-table-min-width));
    min-width: var(--app-table-min-width);
    max-width: none;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
}
.seo-content-data-table td.seo-content-team-cell {
    overflow: visible;
    text-overflow: clip;
}
.main-content .seo-content-data-table .seo-content-progress-heading, .main-content .seo-content-data-table td.seo-content-progress-cell {
    min-width: 190px;
    padding-right: 18px !important;
}
.main-content .seo-content-data-table .seo-content-team-heading, .main-content .seo-content-data-table td.seo-content-team-cell {
    min-width: 112px;
    padding-left: 18px !important;
}
.main-content .app-standard-table:has(thead th:nth-child(6)) {
    --app-table-min-width: 840px;
}
.main-content .app-standard-table:has(thead th:nth-child(8)) {
    --app-table-min-width: 980px;
}
.main-content .app-standard-table:has(thead th:nth-child(10)) {
    --app-table-min-width: 1120px;
}
.main-content .maintenance-data-table {
    --app-table-min-width: 1180px;
}
.main-content .seo-content-data-table {
    --app-table-min-width: 1180px;
}
.main-content .app-standard-table thead th {
    height: 52px;
    padding: 8px 14px;
    border-bottom: 1px solid #e7ecf2;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    vertical-align: middle;
    white-space: nowrap;
}
.main-content .app-standard-table tbody td {
    height: 44px;
    padding: 6px 14px;
    border-bottom: 1px solid #edf1f5;
    background: transparent;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
    vertical-align: middle;
}
.main-content .app-standard-table tbody tr {
    border-bottom: 0;
    background: #fff;
    transition: background-color 0.16s ease;
}
.main-content .app-standard-table tbody tr:hover, .main-content .app-standard-table tbody tr.is-expired:hover, .main-content .app-standard-table tbody tr.is-trash:hover {
    background: #f8fafc !important;
}
.main-content .app-standard-table tbody tr.is-expired {
    background: #fff !important;
    opacity: 1;
}
.main-content .app-standard-table tbody tr:last-child td {
    border-bottom: 0;
}
.main-content .list-group-content-box.ungrouped, .main-content .publishing-table-card, .main-content .tricks-table-card {
    border: 1px solid #e7ecf2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.035);
}
.main-content .app-standard-table .table-checkbox-cell, .main-content .app-standard-table .publishing-col--select {
    width: 48px;
    min-width: 48px;
    padding-right: 8px !important;
    padding-left: 16px !important;
    text-align: center;
}
.main-content .app-standard-table .table-actions-heading, .main-content .app-standard-table .table-actions-cell {
    width: 150px;
    min-width: 150px;
    padding-right: 16px !important;
    padding-left: 8px !important;
    overflow: visible;
    text-align: right;
}
.main-content .app-standard-table .app-table-actions {
    gap: 5px;
    margin-right: 0;
    margin-left: auto;
}
.main-content .calendar-events-table .calendar-event-list-actions {
    justify-content: flex-end;
    margin-right: 0;
    margin-left: auto;
}
.website-records-column--actions, .maintenance-column--actions, .seo-content-column--actions, .wc-col-actions {
    width: 150px;
}
.website-records-table .table-actions-heading, .website-records-table .table-actions-cell, .maintenance-data-table .table-actions-heading, .maintenance-data-table .table-actions-cell, .seo-content-data-table .table-actions-heading, .seo-content-data-table .table-actions-cell {
    width: 150px;
    min-width: 150px;
}
.main-content .seo-content-data-table .table-actions-heading, .main-content .seo-content-data-table .table-actions-cell {
    width: 132px;
    min-width: 132px;
}
.main-content .seo-content-column--actions {
    width: 132px;
}
/* Chat presence */
.chat-item-avatar-wrap, .chat-group-member-avatar-wrap {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}
.chat-item-avatar-wrap {
    margin-right: 12px;
}
.chat-item-avatar-wrap .chat-item-avatar {
    margin-right: 0;
}
.chat-presence-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border: 2px solid #fff;
    border-radius: 90px;
    background: var(--color-primary);
    box-sizing: content-box;
}
.chat-item-avatar-wrap > .chat-presence-dot, .chat-group-member-avatar-wrap > .chat-presence-dot {
    position: absolute;
    right: -2px;
    bottom: -1px;
}
.chat-presence-dot.is-online {
    background: #22c55e;
}
.chat-presence-dot.is-offline {
    background: var(--color-primary-system);
}
.chat-presence-label, .chat-member-presence {
    font-size: 12px;
    font-weight: 400;
}
.chat-presence-label.is-online, .chat-member-presence.is-online, .chat-header-presence.is-online {
    color: #16a34a;
}
.chat-presence-label.is-offline, .chat-member-presence.is-offline, .chat-header-presence.is-offline {
    color: var(--color-primary-system);
}
.chat-item-last-separator {
    margin: 0 5px;
    color: #cbd5e1;
}
.chat-header-presence {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.chat-header-presence .chat-presence-dot {
    width: 7px;
    height: 7px;
    flex-basis: 7px;
    border-width: 0;
}
.chat-member-meta {
    min-width: 0;
}
/* Sticker packs and sticker manager */
.chat-sticker-modal {
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    padding: 20px;
    background: rgba(15, 23, 42, 0.58);
}
.chat-sticker-dialog, .chat-sticker-manager {
    display: flex;
    width: min(560px, 96vw);
    max-height: min(760px, 88vh);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}
.chat-sticker-manager {
    width: min(900px, 96vw);
}
.chat-sticker-dialog-header {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
}
.chat-sticker-dialog-header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 17px;
    font-weight: 600;
}
.chat-sticker-dialog-header p {
    margin: 3px 0 0;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
}
.chat-sticker-dialog-actions, .chat-sticker-manager-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-sticker-manage-button {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 13px;
}
.chat-sticker-pack-tabs {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    scrollbar-width: thin;
}
.chat-sticker-pack-tab {
    display: inline-flex;
    min-width: max-content;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid #dbe3ee;
    border-radius: 90px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}
.chat-sticker-pack-tab:hover, .chat-sticker-pack-tab.is-active {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.chat-sticker-results {
    display: grid;
    min-height: 260px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    overflow-y: auto;
    padding: 14px;
}
.chat-sticker-option {
    display: flex;
    min-width: 0;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}
.chat-sticker-option:hover, .chat-sticker-option:focus-visible {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
}
.chat-sticker-option img {
    width: 100%;
    max-width: 104px;
    max-height: 104px;
    object-fit: contain;
}
.chat-sticker-empty, .chat-sticker-manager-empty {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--color-text-muted-2);
    font-size: 13px;
}
.chat-sticker-empty i, .chat-sticker-manager-empty i {
    font-size: 31px;
    color: #cbd5e1;
}
.chat-sticker-modal [hidden] {
    display: none !important;
}
.chat-sticker-manager-body {
    display: grid;
    min-height: 460px;
    grid-template-columns: 250px minmax(0, 1fr);
    overflow: hidden;
}
.chat-sticker-manager-sidebar {
    overflow-y: auto;
    padding: 16px;
    border-right: 1px solid #e2e8f0;
    background: #f8fafc;
}
.chat-sticker-create-form {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}
.chat-sticker-create-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.chat-sticker-create-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    font-size: 14px;
}
.chat-sticker-create-heading label, .chat-sticker-create-heading small {
    display: block;
}
.chat-sticker-create-heading label {
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}
.chat-sticker-create-heading small {
    margin-top: 2px;
    color: var(--color-text-muted-2);
    font-size: 12px;
    font-weight: 400;
}
.chat-sticker-create-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
}
.chat-sticker-create-row input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 400;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}
.chat-sticker-create-row input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}
.chat-sticker-create-row .btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 10px;
    box-shadow: none;
}
.chat-sticker-shared-option {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}
.chat-sticker-shared-option:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
}
.chat-sticker-shared-option > input {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}
.chat-sticker-shared-check {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    color: transparent;
    font-size: 10px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}
.chat-sticker-shared-option > input:checked + .chat-sticker-shared-check {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}
.chat-sticker-shared-option > input:focus-visible + .chat-sticker-shared-check {
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.14);
}
.chat-sticker-shared-copy strong, .chat-sticker-shared-copy small {
    display: block;
}
.chat-sticker-shared-copy strong {
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}
.chat-sticker-shared-copy small {
    margin-top: 2px;
    color: var(--color-text-muted-2);
    font-size: 12px;
    font-weight: 400;
}
.chat-sticker-manager-pack-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 14px;
}
.chat-sticker-manager-pack {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 9px;
    padding: 9px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #334155;
    text-align: left;
    cursor: pointer;
}
.chat-sticker-manager-pack:hover, .chat-sticker-manager-pack.is-active {
    border-color: var(--color-primary-border-strong);
    background: #fff;
    color: var(--color-primary);
}
.chat-sticker-manager-pack-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.chat-sticker-manager-pack strong, .chat-sticker-manager-pack small {
    display: block;
    font-size: 13px;
}
.chat-sticker-manager-pack strong {
    font-weight: 600;
}
.chat-sticker-manager-pack small {
    margin-top: 2px;
    color: var(--color-text-muted-2);
    font-weight: 400;
}
.chat-sticker-database-note {
    display: flex;
    gap: 8px;
    padding: 10px;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 13px;
    line-height: 1.5;
}
.chat-sticker-manager-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow-y: auto;
    padding: 16px;
}
.chat-sticker-manager-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.chat-sticker-manager-toolbar strong, .chat-sticker-manager-toolbar span {
    display: block;
}
.chat-sticker-manager-toolbar strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
}
.chat-sticker-manager-toolbar span {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 13px;
}
.chat-sticker-manager-toolbar .btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 13px;
}
.chat-sticker-upload-zone {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 14px;
    border: 1px dashed var(--color-primary-border-strong);
    border-radius: 12px;
    background: var(--color-primary-subtle);
    color: var(--color-text-muted);
    font-size: 13px;
    cursor: pointer;
}
.chat-sticker-upload-zone:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-subtle);
}
.chat-sticker-upload-zone.is-uploading {
    opacity: 0.55;
    pointer-events: none;
}
.chat-sticker-upload-zone input {
    display: none;
}
.chat-sticker-upload-zone i {
    color: var(--color-primary);
    font-size: 20px;
}
.chat-sticker-upload-zone strong {
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}
.chat-sticker-upload-progress {
    margin: -2px 0 14px;
    padding: 11px 12px;
    border: 1px solid #dbeafe;
    border-radius: 11px;
    background: #f8fbff;
}
.chat-sticker-upload-progress-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.chat-sticker-upload-progress-heading > span {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}
.chat-sticker-upload-progress-heading i {
    color: var(--color-info);
    font-size: 14px;
}
.chat-sticker-upload-progress-heading strong, .chat-sticker-upload-progress-heading b {
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}
.chat-sticker-upload-progress-heading b {
    flex: 0 0 auto;
    color: #2563eb;
}
.chat-sticker-upload-progress-track {
    height: 5px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 90px;
    background: #e2e8f0;
}
.chat-sticker-upload-progress-track > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--color-info);
    transition: width 0.18s ease;
}
.chat-sticker-upload-progress small {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-sticker-upload-progress.is-error {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
}
.chat-sticker-upload-progress.is-error .chat-sticker-upload-progress-heading i, .chat-sticker-upload-progress.is-error .chat-sticker-upload-progress-heading b {
    color: var(--color-primary);
}
.chat-sticker-upload-progress.is-error .chat-sticker-upload-progress-track > span {
    background: var(--color-primary);
}
.chat-sticker-manager-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.chat-sticker-manager-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #fff;
}
.chat-sticker-manager-card > img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    padding: 8px;
    object-fit: contain;
    cursor: pointer;
}
.chat-sticker-manager-card-footer {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 7px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}
.chat-sticker-manager-card-footer span {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-sticker-delete-button, .chat-sticker-edit-button {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-primary-border-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--color-primary);
    font-size: 12px;
    cursor: pointer;
}
.chat-sticker-edit-button {
    border-color: #cbd5e1;
    color: var(--color-text-muted);
}
.swal-sticker-edit-label {
    display: block;
    margin: 10px 20px 5px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}
.swal-sticker-edit-input {
    width: calc(100% - 40px) !important;
    height: 42px;
    margin: 0 20px 8px !important;
    font-size: 13px !important;
}
.swal-sticker-edit-file {
    width: calc(100% - 40px);
    margin: 0 20px 8px;
    padding: 9px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    color: #475569;
    font-size: 13px;
}
/* Mini chat sticker packs */
.mini-chat-sticker-picker {
    display: flex;
    max-height: 290px;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    padding: 0;
}
.mini-chat-sticker-tabs {
    display: flex;
    flex: 0 0 auto;
    gap: 5px;
    overflow-x: auto;
    padding: 8px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.mini-chat-sticker-tab {
    min-width: max-content;
    padding: 5px 8px;
    border: 1px solid #dbe3ee;
    border-radius: 90px;
    background: #fff;
    color: var(--color-text-muted);
    font-size: 12px;
    cursor: pointer;
}
.mini-chat-sticker-tab.is-active {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.mini-chat-sticker-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    overflow-y: auto;
    padding: 9px;
}
.mini-chat-sticker-empty {
    grid-column: 1 / -1;
    padding: 28px 10px;
    color: var(--color-text-muted-2);
    font-size: 13px;
    text-align: center;
}
/* Chat conversation actions and settings offcanvas */
.chat-conversation-actions-menu {
    position: fixed;
    z-index: 10020;
    top: var(--chat-actions-top, 12px);
    left: var(--chat-actions-left, 12px);
    width: fit-content;
    max-width: calc(100vw - 24px);
    padding: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}
.chat-conversation-actions-menu[hidden] {
    display: none !important;
}
.chat-conversation-actions-menu__item {
    display: flex;
    width: 100%;
    min-height: 38px;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
}
.chat-conversation-actions-menu__item:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.chat-conversation-actions-menu__item.is-danger {
    color: var(--color-primary);
}
.chat-conversation-actions-menu__item.is-danger:hover {
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.chat-conversation-actions-menu__item i {
    width: 16px;
    font-size: 13px;
    text-align: center;
}
.ql-editor ol, .ql-editor ul {
    padding-left: 10px !important;
}
.ql-editor ol li:not(.ql-direction-rtl):not([class*="ql-indent-"]), .ql-editor ul li:not(.ql-direction-rtl):not([class*="ql-indent-"]) {
    padding-left: 0 !important;
}
.modal-overlay.chat-settings-offcanvas {
    display: flex !important;
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}
.modal-overlay.chat-settings-offcanvas.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.chat-settings-offcanvas .chat-settings-offcanvas__panel {
    width: min(520px, 100vw);
    max-width: 520px;
    height: 100%;
    max-height: none;
    margin: 0;
    border-radius: 0;
    box-shadow: -12px 0 34px rgba(15, 23, 42, 0.15);
    transform: translateX(100%);
    transition: transform 0.24s ease;
}
.chat-settings-offcanvas.is-open .chat-settings-offcanvas__panel {
    transform: translateX(0);
}
.chat-new-conversation-offcanvas__panel > .modal-header, .chat-new-conversation-offcanvas__panel > .modal-tabs, .chat-new-conversation-offcanvas__panel > .modal-footer {
    flex: 0 0 auto;
}
.chat-new-conversation-offcanvas__panel > .modal-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 20px 24px 0;
}
.chat-new-conversation-offcanvas__panel .modal-tab {
    text-align: center;
}
.chat-new-conversation-offcanvas__panel .modal-close {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
}
.chat-new-conversation-offcanvas__panel > .modal-body {
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}
.chat-new-conversation-offcanvas__search {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
}
.chat-new-conversation-offcanvas #selectedMembersSection {
    max-height: 120px;
    flex: 0 0 auto;
    overflow-y: auto;
}
.chat-new-conversation-offcanvas .member-search-results {
    min-height: 180px;
    max-height: none;
    flex: 1 1 auto;
}
.chat-new-conversation-offcanvas__panel > .modal-footer .btn-primary {
    width: 100%;
}
.chat-settings-offcanvas__panel .modal-header-premium, .chat-settings-offcanvas__panel .modal-footer-premium {
    flex: 0 0 auto;
}
.chat-settings-offcanvas__panel .modal-body-premium {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
}
/* Full-height chat workspace and responsive conversation/detail drawers. */
body.chat-page {
    overflow: hidden;
}
body.chat-page .main-content {
    height: calc(100dvh - var(--topbar-height));
    min-height: 0;
    padding: 0;
    overflow: hidden;
}
body.chat-page .chat-layout {
    width: 100%;
    height: 100%;
    min-height: 0;
    gap: 0;
    overflow: hidden;
}
body.chat-page .chat-layout .chat-pane {
    border-top: 0;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: none;
}
.chat-offcanvas-backdrop {
    display: none;
}
.chat-sidebar-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.chat-sidebar-close {
    display: inline-flex !important;
}
.chat-sidebar-close.is-unavailable {
    display: none !important;
}
/* Small feedback toast for copy/save actions. */
#toast-container .action-toast {
    display: flex;
    width: max-content;
    min-width: 220px;
    max-width: min(320px, calc(100vw - 24px));
    min-height: 48px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    cursor: pointer;
    animation: action-toast-enter 180ms ease-out both;
}
#toast-container .action-toast__icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
}
#toast-container .action-toast--error {
    border-color: var(--color-error);
}
#toast-container .action-toast--error .action-toast__icon {
    background: var(--color-error-light);
    color: var(--color-error);
}
#toast-container .action-toast__icon svg {
    width: 15px;
    height: 15px;
}
#toast-container .action-toast__label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}
#toast-container .action-toast.is-leaving {
    animation: action-toast-leave 180ms ease-in both;
}
@keyframes action-toast-enter {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
}
@keyframes action-toast-leave {
    to {
        opacity: 0;
        transform: translateY(6px) scale(0.98);
    }
}
/* Chat composer components.
   Keep layout and appearance in semantic classes instead of utility chains. */
#chatInputArea {
    display: none;
}
.chat-file-input, .chat-file-preview-strip, .chat-reply-banner, .chat-emoji-picker {
    display: none;
}
.chat-composer-toolbox {
    position: relative;
    display: flex;
    align-items: center;
}
.chat-composer-more-button, .chat-composer-tool-button, .chat-emoji-button {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--chat-accent, var(--color-primary));
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}
.chat-composer-more-button:hover, .chat-composer-tool-button:hover, .chat-emoji-button:hover {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.chat-composer-more-button {
    display: none;
}
.chat-input-area.has-content .chat-composer-more-button {
    display: inline-flex;
}
.chat-input-area.has-content .chat-extra-actions {
    display: none;
}
.chat-input-area.has-content .chat-extra-actions.force-show {
    display: flex;
}
body .chat-layout .chat-textarea-wrapper {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}
.chat-file-preview-strip {
    width: 100%;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0px;
}
.chat-reply-banner {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 15px 0;
    text-align: left;
}
.chat-reply-layout {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.chat-reply-icon {
    margin-top: 1px;
    color: var(--chat-accent, var(--color-primary));
}
.chat-reply-content {
    min-width: 0;
    flex: 1 1 auto;
    text-align: left;
}
.chat-reply-name {
    color: var(--chat-accent, var(--color-primary));
    font-size: 13px;
    font-weight: 600;
}
.chat-reply-text {
    margin-top: 2px;
    overflow: hidden;
    color: #6b7280;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-reply-cancel {
    cursor: pointer;
    color: #9ca3af;
    transition:
        color 0.18s ease,
        background-color 0.18s ease;
}
.chat-composer-editor-row {
    display: flex;
    width: 100%;
    align-items: flex-end;
}
.chat-input-editor {
    width: 100%;
    flex: 1 1 auto;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    font-size: 13px;
    line-height: 1.5;
}
.chat-emoji-control {
    position: relative;
    margin-right: 4px;
    margin-bottom: 2px;
}
.chat-emoji-button {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
}
.chat-emoji-picker {
    position: absolute;
    right: 0;
    bottom: 40px;
    z-index: 100;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}
.sender-name-label:hover {
    color: var(--color-primary);
}
/* Chat shell components. */
.chat-sidebar-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 600;
}
.chat-sidebar-new-button, .chat-sidebar-close, .chat-sidebar-toggle, .chat-info-close-button {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
}
.chat-sidebar-new-button > i, .chat-sidebar-close > i, .chat-sidebar-toggle > i, .chat-info-close-button > i {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
}
.chat-sidebar-new-button > i::before, .chat-sidebar-close > i::before, .chat-sidebar-toggle > i::before, .chat-info-close-button > i::before {
    line-height: 1;
}
.chat-layout :is(button, [role="button"]) > i, .chat-layout :is(.icon-circle, .chat-reply-icon, .chat-file-icon) > i {
    line-height: 1;
}
.chat-list-loading-spinner {
    font-size: 25px;
}
.chat-empty-svg {
    display: inline-grid;
    place-items: center;
    font-size: 73px;
}
.chat-empty-icon {
    font-size: 49px;
}
.chat-composer-more-button > i, .chat-composer-tool-button > i, .chat-emoji-button > i {
    font-size: 19px;
}
.chat-info-avatar-overlay > i, .chat-info-action-btn .icon-circle > i {
    font-size: 14px;
}
.chat-accordion-icon, .chat-pinned-bar-chevron, .chat-pinned-list-arrow {
    font-size: 13px;
}
.chat-lightbox-control > i {
    font-size: 18px;
}
.pin-btn > i, .btn-msg-action > i, .chat-message-pin-badge > i {
    font-size: 14px;
}
.chat-file-preview > i, .chat-file-add > i {
    font-size: 20px;
}
.chat-sidebar-new-button:hover, .chat-sidebar-close:hover, .chat-sidebar-toggle:hover, .chat-info-close-button:hover {
    background: #f1f5f9;
    color: var(--color-primary);
}
.chat-list-loading {
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}
.chat-list-loading-spinner {
    animation: spin 1s linear infinite;
}
.chat-list-loading-label {
    margin-top: 10px;
}
.chat-empty-title {
    margin-bottom: 8px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
}
.chat-empty-description {
    font-size: 13px;
}
#chatHeader, #chatMessages {
    display: none;
}
.chat-header-identity {
    display: flex;
    align-items: center;
    gap: 4px;
}
.chat-sidebar-toggle {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
}
.chat-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.chat-main-header-name {
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
}
.chat-main-header-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
}
.chat-info-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: none;
}
.chat-info-close-button {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    background: rgba(0, 0, 0, 0.05);
}
.chat-info-header {
    flex: 0 0 auto;
    padding: 24px 20px 16px;
    text-align: center;
}
.chat-info-avatar-editor {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}
.chat-info-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chat-info-avatar-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.chat-info-image-input {
    display: none;
}
.chat-info-name {
    color: var(--color-text-primary);
    font-size: 17px;
    font-weight: 600;
}
.chat-info-role {
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
}
.chat-media-tabs {
    display: flex;
    gap: 4px;
    margin: 10px 14px 12px;
    padding: 4px;
    border-radius: 8px;
    background: #f3f4f6;
}
.chat-media-tab {
    min-height: 34px;
    flex: 1 1 0;
    padding: 6px 0;
    border-radius: 6px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}
#tabMediaImg {
    background: var(--color-primary);
    color: #fff;
}
.chat-settings-field {
    margin-bottom: 12px;
}
.chat-settings-label {
    display: block;
    margin-bottom: 4px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}
.chat-settings-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: var(--color-text-primary);
    font: inherit;
    font-size: 13px;
}
#acc-members, #rightPanelAddMemberBtn {
    display: none;
}
.chat-members-list {
    display: flex;
    max-height: 200px;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    overflow-y: auto;
}
.chat-add-member-button, .chat-leave-button {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.chat-add-member-button {
    border: 0;
    background: var(--color-primary);
    color: #fff;
}
.chat-leave-button {
    margin-top: 8px;
    border: 1px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
}
/* Readable long-form content: chat messages, task details and rich-text comments. */
.message-bubble, .chat-file-caption, .chat-inline-editor__input, .ql-editor, .comment-body-content, #task-desc-editor, #view-desc-editor, #quill-editor {
    font-family: var(--font-readable) !important;
    font-size: 14px !important;
    line-height: 1.6;
}
.sender-name-label, .chat-message-meta, .chat-date-divider, .mini-chat-time-divider {
    font-family: var(--font-readable);
}
.sender-name-label, .chat-date-divider, .mini-chat-time-divider {
    font-size: 12px;
}
.chat-message-sent-at {
    font-family: var(--font-readable);
    font-size: 12px;
}
#chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor {
    font-size: 14px !important;
    line-height: 1.55;
}
/* Consistent rounded data tables across all application list pages. */
.main-content .list-table-container {
    border-radius: 16px;
    background: #fff;
}
.main-content .list-group-content-box.grouped > .list-table-container {
    border-radius: 0 0 15px 15px;
}
.main-content .list-group-content-box.ungrouped > .list-table-container {
    border-radius: unset;
    border: none;
}
.main-content .app-data-table-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    contain: inline-size layout paint;
    overflow: hidden;
}
.main-content .app-data-table-scroll {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    contain: inline-size layout paint;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #e7ecf2;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.035);
}
/* Shared data tables keep their desktop column surface inside the scroll
   wrapper. This intentionally outranks the generic mobile fit-content rule,
   whose intrinsic table width can otherwise leak into the page viewport. */
.main-content .app-data-table-card .app-data-table-scroll > table.app-standard-table {
    --app-data-table-min-width: 1180px;
    width: max(100%, var(--app-data-table-min-width));
    min-width: var(--app-data-table-min-width);
    max-width: none;
    table-layout: fixed;
}
.main-content .app-data-table-card .app-data-table-scroll > table.company-articles-table {
    --app-data-table-min-width: 0px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}
.main-content .app-data-table-card .company-articles-table-scroll {
    overflow-x: hidden;
}
.company-articles-column--select {
    width: 74px;
}
.company-articles-column--sequence {
    width: 52px;
}
.company-articles-column--website {
    width: 76px;
}
.company-articles-column--title {
    width: 190px;
}
.company-articles-column--keyword {
    width: 140px;
}
.company-articles-column--member {
    width: 80px;
}
.company-articles-column--cover {
    width: 110px;
}
.company-articles-column--date {
    width: 108px;
}
.company-articles-column--docs {
    width: 100px;
}
.company-articles-column--status {
    width: 90px;
}
.company-articles-column--progress {
    width: 96px;
}
.company-articles-column--actions {
    width: 96px;
}
.main-content table.app-standard-table thead:first-child tr:first-child > th:first-child {
    border-start-start-radius: 15px;
}
.main-content table.app-standard-table thead:first-child tr:first-child > th:last-child {
    border-start-end-radius: 15px;
}
.main-content table.app-standard-table tbody:last-child tr:last-child > td:first-child {
    border-end-start-radius: 15px;
}
.main-content table.app-standard-table tbody:last-child tr:last-child > td:last-child {
    border-end-end-radius: 15px;
}
/* ==========================================================================
   Single task responsive layout
   ========================================================================== */
.task-single-page, .task-single-layout, .task-single-main, .task-single-sidebar {
    min-width: 0;
}
.task-single-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
}
.task-single-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}
.task-single-actions .btn-sidebar-duplicate, .task-single-actions .btn-sidebar-delete {
    min-height: 44px;
    margin: 0;
}
.task-single-page .task-property-value, .task-single-page .task-property-value > *, .task-single-page .task-info-value {
    min-width: 0;
}
.task-single-page :is(#view-desc-editor, .comment-body-content, .task-info-value, .task-file-name) {
    overflow-wrap: anywhere;
}
/* Shared activity and comment panel */
.comment-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}
.comment-panel.seo-topic-comments-section {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--color-border);
}
.comment-panel__header, .comment-panel .comment-panel__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--color-text-primary);
    font-family: "Sarabun", sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
}
.comment-panel__icon, .comment-panel__header > svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: var(--color-text-muted);
}
.comment-panel__title {
    margin: 0;
    color: inherit;
    font: inherit;
}
.comment-panel__list {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 24px;
    padding-right: 8px;
}
.seo-topic-comments-list.comment-panel__list, .task-detail-activity-thread.comment-panel__list, .comment-panel > #comments-list.comment-panel__list {
    max-height: 400px;
    overflow-y: auto;
}
.comment-panel__list.is-mention-open {
    position: relative;
    z-index: 100;
    overflow: visible;
}
/* Quill Bubble places its selection toolbar inside the editor. Temporarily
   release the comment list's scroll clipping while that toolbar is open so
   the controls are not reduced to only the small tooltip arrow in drawers. */
.comment-panel__list.is-format-toolbar-open {
    position: relative;
    z-index: 100200;
    overflow: visible !important;
}
.comment-panel__item.is-format-toolbar-open, .comment-panel__item.is-editing {
    position: relative;
    z-index: 100201;
    overflow: visible !important;
}
.comment-panel__item.is-format-toolbar-open .comment-edit-mode, .comment-panel__item.is-format-toolbar-open .ql-container.ql-bubble, .comment-panel__item.is-editing .comment-edit-mode, .comment-panel__item.is-editing .ql-container.ql-bubble {
    position: relative;
    overflow: visible !important;
}
body > .ql-mention-list-container {
    width: min(340px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
}
body .ql-mention-list-container {
    z-index: 99999;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
body .ql-mention-list {
    max-height: 220px;
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    list-style: none;
}
body .ql-mention-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        color 0.15s ease,
        background-color 0.15s ease;
}
body .ql-mention-list-item:hover, body .ql-mention-list-item.selected {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
body .ql-mention-list-item .mention-avatar {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}
body .ql-mention-list-item .mention-avatar--everyone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 12px;
}
body .ql-mention-list-item .mention-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.3;
}
body .ql-mention-list-item .mention-nickname {
    font-size: 13px;
    font-weight: 600;
}
body .ql-mention-list-item .mention-fullname {
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 400;
}
.comment-panel__empty {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px dashed var(--color-border);
    border-radius: 16px;
    color: var(--color-text-muted);
    font-family: "Sarabun", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    text-align: center;
}
.comment-panel__item, .comment-panel .comment-panel__item {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0;
    padding: 10px 4px;
    border-bottom: 1px solid var(--color-border);
    font-family: "Sarabun", sans-serif;
}
.comment-panel__item:last-child {
    border-bottom: 0;
}
.comment-panel__item img {
    display: block;
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    object-fit: cover;
}
.comment-panel__item .comment-text-wrap {
    min-width: 0;
    font-size: 13px;
    line-height: 1.55;
}
.comment-panel__item :is(.task-detail-comment-author, .publishing-comment__author, .seo-contents-show__layout-32) {
    flex: 0 0 auto;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
}
.comment-panel__item :is(.task-detail-comment-body, .publishing-comment__body, .seo-contents-show__inline-quill-style) {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    color: var(--color-text-secondary);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.comment-panel__item .comment-time {
    color: var(--color-text-muted);
    font-size: 13px;
    white-space: nowrap;
}
.comment-panel__footer {
    min-width: 0;
}
.comment-panel__composer-row, .comment-panel .comment-panel__composer-row {
    display: flex;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 12px;
}
.comment-panel__composer, .comment-panel .comment-panel__composer {
    position: relative;
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    padding: 0;
    overflow: visible;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}
.comment-panel__composer:focus-within, .comment-panel .comment-panel__composer:focus-within {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.08);
}
.comment-panel__editor, .comment-panel__editor.ql-container.ql-snow, .comment-panel__editor.ql-container.ql-bubble, .comment-panel .comment-panel__editor.ql-container.ql-snow, .comment-panel .comment-panel__editor.ql-container.ql-bubble {
    width: 100%;
    overflow: visible;
    border: 0 !important;
    background: transparent;
    color: var(--color-text-primary);
    font-family: "Sarabun", sans-serif;
    font-size: 13px !important;
}
.comment-panel__editor .ql-editor, .comment-panel .comment-panel__editor .ql-editor {
    min-height: 46px !important;
    max-height: 160px;
    padding: 12px 15px !important;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: "Sarabun", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
}
.comment-panel__editor .ql-editor.ql-blank::before {
    right: 16px;
    left: 16px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-style: normal;
}
/* Quill's clipboard and Bubble link editor are implementation helpers.
   Keep them out of the embedded offcanvas layout even if the CDN theme
   stylesheet is delayed or unavailable inside the detail iframe. */
.comment-panel .ql-clipboard, .comment-edit-mode .ql-clipboard {
    position: absolute !important;
    top: 50% !important;
    left: -100000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.comment-panel .ql-bubble .ql-tooltip, .comment-edit-mode .ql-bubble .ql-tooltip {
    position: absolute;
}
.comment-panel .ql-bubble .ql-tooltip-editor, .comment-edit-mode .ql-bubble .ql-tooltip-editor {
    display: none;
}
.comment-panel .ql-bubble .ql-tooltip.ql-editing .ql-tooltip-editor, .comment-edit-mode .ql-bubble .ql-tooltip.ql-editing .ql-tooltip-editor {
    display: block;
}
.comment-panel .ql-tooltip.ql-bubble, .comment-edit-mode .ql-tooltip.ql-bubble {
    z-index: 100300;
}
.comment-panel__submit, .comment-panel .comment-panel__submit {
    position: static;
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.comment-panel__submit:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 6px 16px rgba(var(--color-primary-rgb), 0.22);
}
.comment-panel__submit:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}
.comment-panel__submit svg, .comment-panel__submit i {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 20px;
}
.comment-panel__hint, .comment-panel .comment-panel__hint {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 8px 0 0;
    padding-left: 4px;
    color: var(--color-text-muted);
    font-family: "Sarabun", sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
}
.comment-panel__hint i {
    width: 14px;
    flex: 0 0 14px;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1;
    text-align: center;
}
.comment-panel__menu-trigger {
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}
.comment-panel__menu-trigger:hover, .comment-panel__menu-trigger[aria-expanded="true"] {
    background: var(--color-bg-base);
    color: var(--color-text-primary);
}
.comment-panel__menu-trigger i {
    font-size: 14px;
}
.comment-panel__menu {
    position: fixed;
    z-index: 2147483000;
    display: none;
    min-width: 110px;
    max-width: 110px;
    padding: 7px;
    overflow: visible;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}
.comment-panel__menu.is-open {
    display: grid;
    gap: 2px;
}
.comment-panel__menu-action, .comment-panel .comment-panel__menu-action {
    display: flex;
    width: 100%;
    min-height: 36px;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-primary);
    font-family: "Sarabun", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.comment-panel__menu-action:hover {
    background: var(--color-bg-base);
}
.comment-panel__menu-action--danger, .comment-panel .comment-panel__menu-action--danger {
    color: var(--color-danger, var(--color-primary));
}
.comment-panel__menu-action i {
    width: 16px;
    flex: 0 0 16px;
    text-align: center;
}
audio {
    height: 35px;
}
/* ==========================================================================
   Responsive
   Desktop: 992px and up
   Tablet: 768px to 991px (also supplies shared rules inherited by Mobile)
   Mobile: 767px and down
   ========================================================================== */
/* Task sharing to employee chat */
.task-list-share-button {
    color: var(--color-primary);
}
.task-list-share-button {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--color-primary) 22%, var(--color-border));
    border-radius: 9px;
    background: color-mix(in srgb, var(--color-primary) 7%, var(--color-bg-surface));
    cursor: pointer;
    transition:
        border-color 0.16s ease,
        background 0.16s ease,
        transform 0.16s ease;
    font-size: 12px;
}
.task-list-share-button:hover {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 12%, var(--color-bg-surface));
}
body.task-share-modal-open {
    overflow: hidden;
}
.task-share-modal[hidden] {
    display: none;
}
.task-share-modal {
    position: fixed;
    inset: 0;
    z-index: 10080;
    display: grid;
    place-items: center;
    padding: 24px;
}
.task-share-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    opacity: 0;
    transition: opacity 0.18s ease;
    backdrop-filter: blur(2px);
}
.task-share-dialog {
    position: relative;
    width: min(880px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-bg-surface);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}
.task-share-modal.is-open .task-share-modal__backdrop, .task-share-modal.is-open .task-share-dialog {
    opacity: 1;
}
.task-share-modal.is-open .task-share-dialog {
    transform: none;
}
.task-share-dialog__header, .task-share-dialog__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
}
.task-share-dialog__header {
    border-bottom: 1px solid var(--color-border);
}
.task-share-dialog__header h2 {
    max-width: 700px;
    margin: 5px 0 0;
    overflow: hidden;
    color: var(--color-text-primary);
    font-size: 20px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.task-share-dialog__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
}
.task-share-dialog__close {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
}
.task-share-dialog__close:hover {
    background: var(--color-bg-base);
    color: var(--color-text-primary);
}
.task-share-dialog__body {
    display: grid;
    min-height: 350px;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
}
.task-share-picker, .task-share-selected-panel {
    min-width: 0;
    padding: 20px 22px;
}
.task-share-picker {
    border-right: 1px solid var(--color-border);
}
.task-share-search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 13px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg-surface);
    color: var(--color-text-muted);
}
.task-share-search:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 12%, transparent);
}
.task-share-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text-primary);
    font: inherit;
}
.task-share-member-list, .task-share-selected-list {
    margin-top: 14px;
    overflow: auto;
}
.task-share-member-list {
    max-height: 295px;
}
.task-share-member {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 54px;
    margin-bottom: 4px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition:
        background 0.14s ease,
        border-color 0.14s ease;
}
.task-share-member:hover {
    background: var(--color-bg-base);
}
.task-share-member.is-selected {
    border-color: color-mix(in srgb, var(--color-primary) 24%, var(--color-border));
    background: color-mix(in srgb, var(--color-primary) 7%, var(--color-bg-surface));
}
.task-share-member input {
    width: 17px;
    height: 17px;
    accent-color: var(--color-primary);
}
.task-share-member__avatar, .task-share-selected-member__avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}
.task-share-member__name {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: var(--color-text-primary);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.task-share-member__check {
    color: var(--color-primary);
    opacity: 0;
}
.task-share-member.is-selected .task-share-member__check {
    opacity: 1;
}
.task-share-selected-panel {
    background: color-mix(in srgb, var(--color-bg-base) 70%, var(--color-bg-surface));
}
.task-share-selected-panel__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--color-text-primary);
}
.task-share-selected-panel__heading span {
    padding: 3px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-primary) 10%, var(--color-bg-surface));
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
}
.task-share-selected-list {
    max-height: 305px;
}
.task-share-selected-member {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 9px 10px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg-surface);
}
.task-share-selected-member span {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: var(--color-text-primary);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.task-share-selected-member button {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
}
.task-share-selected-member button:hover {
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.task-share-selected-empty, .task-share-member-empty, .task-share-loading {
    display: flex;
    min-height: 160px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    color: var(--color-text-muted);
    text-align: center;
}
.task-share-member-empty.is-error {
    color: var(--color-error);
}
.task-share-note-wrap {
    padding: 18px 24px;
    border-top: 1px solid var(--color-border);
}
.task-share-note-wrap label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 700;
}
.task-share-note-wrap label span {
    color: var(--color-text-muted);
    font-weight: 400;
}
.task-share-note-wrap textarea {
    width: 100%;
    min-height: 58px;
    resize: vertical;
    padding: 11px 13px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    outline: 0;
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
    font: inherit;
}
.task-share-note-wrap textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, transparent);
}
.task-share-dialog__footer {
    border-top: 1px solid var(--color-border);
    padding-block: 16px;
}
.task-share-dialog__footer > div {
    display: flex;
    gap: 10px;
}
.task-share-dialog__hint {
    color: var(--color-text-muted);
    font-size: 12px;
}
.task-share-button {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.task-share-button--secondary {
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
}
.task-share-button--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}
.task-share-button:disabled {
    border-color: var(--color-border);
    background: var(--color-bg-base);
    color: var(--color-text-muted);
    cursor: not-allowed;
}
.message-bubble.task-share-bubble, .mini-chat-message__bubble.task-share-bubble {
    max-width: min(520px, 100%);
    min-width: 0;
    padding: 0 !important;
    overflow: hidden;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--color-text-primary) !important;
}
body.chat-page .chat-layout .chat-messages {
    overflow-x: hidden !important;
}
body.chat-page .chat-layout .chat-task-share-message {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
body.chat-page .chat-layout .chat-task-share-message.other .chat-message-stack {
    width: min(580px, calc(100% - 40px));
}
body.chat-page .chat-layout .chat-task-share-message.me .chat-message-stack {
    width: min(580px, 100%);
    margin-left: auto;
}
body.chat-page .chat-layout .chat-task-share-message .chat-message-stack, body.chat-page .chat-layout .chat-task-share-message .chat-message-row {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}
body.chat-page .chat-layout .chat-task-share-message .chat-message-row {
    width: 100%;
}
body.chat-page .chat-layout .chat-task-share-message .task-share-bubble {
    width: 0;
    max-width: 520px;
    min-width: 0;
    flex: 1 1 auto;
}
.task-share-card {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 13px;
    background: var(--color-bg-surface);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    color: var(--color-text-primary);
}
.task-share-card__accent {
    height: 4px;
    background: var(--task-share-accent, var(--color-primary));
}
.task-share-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 16px 8px;
    color: var(--color-text-secondary);
    font-size: 12px;
    font-weight: 700;
}
.task-share-card__mark {
    display: inline-grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 6px;
    background: color-mix(in srgb, var(--color-primary) 14%, var(--color-bg-surface));
    color: var(--color-primary);
    font-size: 10px;
}
.task-share-card__note {
    margin: 2px 16px 10px;
    padding: 8px 10px;
    border-left: 3px solid color-mix(in srgb, var(--color-primary) 45%, transparent);
    border-radius: 0 7px 7px 0;
    background: var(--color-bg-base);
    color: var(--color-text-secondary);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.task-share-card__title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 16px 12px;
}
.task-share-card__checkbox {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 2px;
    border: 1.5px solid var(--color-text-muted);
    border-radius: 50%;
}
.task-share-card__title {
    min-width: 0;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.task-share-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 16px 14px 44px;
}
.task-share-card__meta > span {
    max-width: 100%;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 25px;
    padding: 3px 8px;
    border-radius: 7px;
    background: var(--color-bg-base);
    color: var(--color-text-secondary);
    font-size: 11px;
}
.task-share-card__status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--task-share-status, var(--color-text-muted-2));
}
.task-share-card__footer {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 16px;
    border-top: 1px solid var(--color-border);
}
.task-share-card__assignees {
    display: flex;
    align-items: center;
    padding-left: 5px;
}
.task-share-card__assignees img, .task-share-card__assignees span {
    width: 26px;
    height: 26px;
    margin-left: -5px;
    border: 2px solid var(--color-bg-surface);
    border-radius: 50%;
    object-fit: cover;
}
.task-share-card__assignees span {
    display: grid;
    place-items: center;
    background: var(--color-bg-base);
    color: var(--color-text-muted);
    font-size: 9px;
}
.task-share-card__footer button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
    border-radius: 8px;
    background: color-mix(in srgb, var(--color-primary) 7%, var(--color-bg-surface));
    color: var(--color-primary);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    max-width: 100%;
    white-space: normal;
    cursor: pointer;
}
.task-share-card__footer button:hover:not(:disabled) {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}
.task-share-card.is-unavailable {
    opacity: 0.72;
}
.task-share-card__footer button:disabled {
    cursor: default;
}
/* Prevent iOS/WebKit from enlarging the page when a chat composer receives
   focus. iOS automatically zooms editable controls whose computed font size
   is below 16px; keep the existing 14px appearance on other platforms. */
/* Shared rich-text comments -------------------------------------------------
   Keep Quill's block structure after a comment is sent, and use the same
   selection toolbar behavior as the chat composer on every comment panel. */
.comment-panel__editor.ql-container.ql-bubble, .comment-panel .comment-panel__editor.ql-container.ql-bubble {
    width: 100%;
    overflow: visible;
    border: 0 !important;
    background: transparent;
    color: var(--color-text-primary);
    font-family: var(--font-readable, "Sarabun", sans-serif);
    font-size: 13px !important;
}
.comment-panel .view-edit-quill.ql-container.ql-bubble, .comment-panel .detail-edit-quill.ql-container.ql-bubble {
    width: 100%;
    min-width: 0;
    overflow: visible;
    border: 1px solid var(--color-border) !important;
    border-radius: 12px;
    background: #fff;
    color: var(--color-text-primary);
    font-family: var(--font-readable, "Sarabun", sans-serif);
    font-size: 13px !important;
}
.comment-panel .comment-text-wrap, .comment-panel__item .comment-text-wrap, .comment-single-line .comment-text-wrap, .seo-contents-show__comment-text-wrap-style {
    display: grid !important;
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 5px;
    overflow: visible !important;
    cursor: default;
}
.comment-panel .comment-text-wrap :is(.task-detail-comment-author, .tasks-view__layout-20, .publishing-comment__author, .seo-contents-show__layout-32) {
    grid-column: 1;
    grid-row: 1;
}
.comment-panel .comment-text-wrap :is(.task-detail-comment-separator, .tasks-view__layout-21, .publishing-comment__separator, .seo-contents-show__layout-33) {
    grid-column: 2;
    grid-row: 1;
}
.comment-panel .comment-text-wrap .comment-time {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
}
.comment-panel .comment-rich-content, .comment-panel__item .comment-rich-content, .comment-single-line .comment-text-wrap .comment-rich-content, .comment-single-line .comment-text-wrap.expanded .comment-rich-content {
    display: block !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 3px;
    overflow: visible !important;
    color: var(--color-text-secondary);
    line-height: 1.6;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.comment-rich-content > :first-child {
    margin-top: 0 !important;
}
.comment-rich-content > :last-child {
    margin-bottom: 0 !important;
}
.comment-rich-content p {
    display: block !important;
    margin: 0 0 0.45em !important;
    padding: 0 !important;
}
.comment-rich-content :is(ol, ul) {
    display: block !important;
    margin: 0.35em 0 0.55em 1.4em !important;
    padding: 0 !important;
}
.comment-rich-content li {
    display: list-item !important;
    margin: 0.16em 0 !important;
}
.comment-rich-content blockquote {
    display: block !important;
    margin: 0.45em 0 !important;
    padding: 0.25em 0 0.25em 0.75em !important;
    border-left: 3px solid color-mix(in srgb, var(--color-primary) 55%, var(--color-border));
    color: var(--color-text-muted);
}
.comment-rich-content pre {
    display: block !important;
    max-width: 100%;
    margin: 0.45em 0 !important;
    padding: 8px 10px !important;
    overflow-x: auto !important;
    border-radius: 8px;
    background: #111827;
    color: #f8fafc;
    white-space: pre-wrap !important;
}
.comment-rich-content a {
    color: var(--color-info);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.comment-panel .ql-bubble .ql-tooltip, .comment-edit-mode .ql-bubble .ql-tooltip {
    z-index: 2147483000 !important;
    max-width: min(420px, calc(100vw - 24px));
    pointer-events: auto;
}
.topbar-notes-button > i {
    font-size: 18px;
}
.system-notes-panel {
    position: fixed;
    z-index: 12000;
    inset: 0;
    visibility: hidden;
    pointer-events: none;
}
.system-notes-panel.is-open {
    visibility: visible;
    pointer-events: auto;
}
.system-notes-panel__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: color-mix(in srgb, var(--color-text-primary) 46%, transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.system-notes-panel.is-open .system-notes-panel__backdrop {
    opacity: 1;
}
.system-notes-panel__drawer {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: min(650px, 100vw);
    height: 100dvh;
    flex-direction: column;
    overflow: hidden;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform 0.25s ease;
}
.system-notes-panel.is-open .system-notes-panel__drawer {
    transform: translateX(0);
}
.system-notes-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--color-line);
}
.system-notes-panel__header span {
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}
.system-notes-panel__header h2 {
    margin: 2px 0 3px;
    color: var(--color-text-primary);
    font-size: 21px;
}
.system-notes-panel__header p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 12px;
}
.system-notes-panel__close {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--color-bg-base);
    color: var(--color-text-muted);
    cursor: pointer;
}
.system-notes-panel__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-line);
}
.system-notes-panel__toolbar > span {
    color: var(--color-text-muted);
    font-size: 11px;
}
.notes-live-search {
    position: relative;
    display: flex;
    align-items: center;
}
.notes-live-search > i {
    position: absolute;
    left: 12px;
    z-index: 1;
    color: var(--color-text-muted);
    font-size: 12px;
    pointer-events: none;
}
.notes-live-search input {
    width: 100%;
    height: 38px;
    padding: 0 38px 0 34px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--filter-control-radius);
    outline: 0;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-primary);
    font: inherit;
    font-size: 12px;
}
.notes-live-search input:focus {
    border-color: var(--color-primary);
    background: var(--color-bg-surface);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, transparent);
}
.notes-live-search input::-webkit-search-cancel-button {
    appearance: none;
}
.notes-live-search button {
    position: absolute;
    right: 7px;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
}
.notes-live-search button:hover {
    background: var(--color-bg-base);
    color: var(--color-primary);
}
.notes-live-search button[hidden] {
    display: none;
}
.notes-live-search--system {
    margin: 12px 20px 0;
}
.notes-live-search--chat {
    margin-bottom: 10px;
}
.system-notes-panel__new, .chat-note-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: var(--color-white);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.system-notes-panel__new {
    min-height: 38px;
    padding: 8px 13px;
}
.chat-note-create {
    width: 100%;
    min-height: 36px;
    margin-bottom: 10px;
    padding: 7px 12px;
}
.system-notes-panel__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    flex: 1 1 auto;
    gap: 10px;
    min-height: 0;
    padding: 16px 20px 24px;
    overflow-y: auto;
}
.system-notes-panel__body.is-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}
.system-notes-panel__body.is-loading .notes-loading {
    min-height: 0;
}
.system-notes-panel__body > .notes-empty {
    width: 100%;
    grid-column: 1 / -1;
    align-self: center;
    justify-self: center;
}
.note-editor {
    display: grid;
    gap: 12px;
    margin: 16px 20px 0;
    padding: 15px 15px 0;
    border: 1px solid color-mix(in srgb, var(--color-primary) 18%, var(--color-line));
    border-radius: var(--radius-lg);
    background: var(--color-primary-light);
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
.system-notes-panel__drawer.is-editing > :is(.system-notes-panel__toolbar, .notes-live-search--system, .system-notes-panel__body) {
    display: none;
}
.system-notes-panel__drawer.is-editing .note-editor {
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 20px;
    overflow-y: auto;
}
.note-editor--chat {
    margin: 0 0 12px;
}
.note-editor label {
    display: grid;
    gap: 5px;
}
.note-editor label > span {
    color: var(--color-text-secondary);
    font-size: 11px;
    font-weight: 700;
}
.note-editor label > :is(input, textarea) {
    width: 100%;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-md);
    outline: 0;
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
    font: inherit;
    font-size: 12px;
}
.note-editor label > input {
    height: 38px;
    padding: 0 11px;
}
.note-editor label > textarea {
    min-height: 120px;
    padding: 10px 11px;
    line-height: 1.55;
    resize: vertical;
}
.note-editor label > :is(input, textarea):focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, transparent);
}
.note-editor .ql-toolbar.ql-snow {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 7px;
    border-color: var(--color-line-strong);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: var(--color-bg-surface-soft);
}
.note-editor .ql-toolbar.ql-snow .ql-formats {
    display: inline-flex;
    align-items: center;
    margin-right: 3px;
}
.note-editor .ql-toolbar.ql-snow button {
    width: 27px;
    height: 27px;
    padding: 4px;
}
.note-editor .ql-toolbar.ql-snow .ql-picker-label {
    height: 27px;
    color: var(--color-text-secondary);
}
.note-editor .note-rich-editor.ql-container.ql-snow {
    min-height: 160px;
    border-color: var(--color-line-strong);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
    font: inherit;
}
.note-editor .note-rich-editor .ql-editor {
    min-height: 160px;
    max-height: 300px;
    padding: 11px 12px;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.65;
}
.note-editor .note-rich-editor .ql-editor.ql-blank::before {
    right: 12px;
    left: 12px;
    color: var(--color-text-muted);
    font-style: normal;
}
.note-editor .ql-snow :is(.ql-stroke, .ql-fill) {
    transition: stroke 0.15s ease, fill 0.15s ease;
}
.note-editor .ql-snow .ql-picker-options {
    border-color: var(--color-line);
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-md);
}
.note-editor .ql-snow :is(button:hover, button.ql-active) .ql-stroke,
.note-editor .ql-snow .ql-picker-label:hover .ql-stroke,
.note-editor .ql-snow .ql-picker-label.ql-active .ql-stroke {
    stroke: var(--color-primary);
}
.note-editor .ql-snow :is(button:hover, button.ql-active) .ql-fill {
    fill: var(--color-primary);
}
.note-editor__actions {
    position: sticky;
    z-index: 3;
    bottom: 0;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid color-mix(in srgb, var(--color-primary) 14%, var(--color-line));
    background: var(--color-primary-light);
}
.note-editor__draft-status {
    align-self: center;
    margin-right: auto;
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 600;
}
.note-button {
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    height: fit-content;
}
.note-button--primary {
    background: var(--color-primary);
    color: var(--color-white);
}
.note-button--secondary {
    border-color: var(--color-line-strong);
    background: var(--color-bg-surface);
    color: var(--color-text-secondary);
}
.note-button:disabled {
    opacity: 0.55;
    cursor: wait;
}
.note-card {
    padding: 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: var(--color-bg-surface-soft);
}
.note-card > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.note-card > header > div:first-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.note-card > header strong {
    color: var(--color-text-primary);
    font-size: 13px;
    overflow-wrap: anywhere;
}
.note-card > header small {
    color: var(--color-text-muted);
    font-size: 10px;
}
.note-card__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 3px;
}
.note-card__actions button {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
}
.note-card__actions button:hover {
    background: var(--color-bg-base);
    color: var(--color-primary);
}
.note-card__actions .note-card__drag {
    cursor: grab;
    touch-action: none;
}
.note-card__actions .note-card__drag:active {
    cursor: grabbing;
}
.note-card--drag-chosen {
    border-color: var(--color-primary);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--color-primary) 16%, transparent);
}
.note-card--drag-ghost {
    opacity: 0.35;
}
.note-card--dragging {
    cursor: grabbing;
}
.note-card__content {
    margin-top: 10px;
    color: var(--color-text-secondary);
    font-size: 12px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.note-card__content.is-collapsed {
    position: relative;
    max-height: 120px;
    overflow: hidden;
}
.note-card__content.is-collapsed::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 52px;
    background: linear-gradient(to bottom, transparent, var(--color-bg-surface-soft));
    content: "";
    pointer-events: none;
}
.note-card__content.is-expanded {
    max-height: none;
    overflow: visible;
}
.note-card__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    gap: 6px;
    background: unset;
    margin: 8px auto 0;
    border: 0;
    color: var(--color-text-muted);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.note-card__content :is(h1, h2, h3) {
    margin: 10px 0 5px;
    color: var(--color-text-primary);
    line-height: 1.35;
}
.note-card__content h1 {
    font-size: 18px;
}
.note-card__content h2 {
    font-size: 16px;
}
.note-card__content h3 {
    font-size: 14px;
}
.note-card__content :is(p, ul, ol, blockquote, pre) {
    margin: 0 0 7px;
}
.note-card__content :is(p, ul, ol, blockquote, pre):last-child {
    margin-bottom: 0;
}
.note-card__content :is(ul, ol) {
    padding-left: 20px;
}
.note-card__content ul {
    list-style: disc outside;
}
.note-card__content ol {
    list-style: decimal outside;
}
.note-card__content li {
    display: list-item;
}
.note-card__content blockquote {
    padding-left: 10px;
    border-left: 3px solid var(--color-primary);
    color: var(--color-text-muted);
}
.note-card__content a {
    color: var(--color-primary);
}
.chat-notes-list {
    display: grid;
    gap: 9px;
}
.note-card--chat {
    padding: 12px;
}
.notes-loading, .notes-empty {
    display: grid;
    min-height: 170px;
    place-items: center;
    gap: 6px;
    padding: 20px;
    color: var(--color-text-muted);
    font-size: 12px;
    text-align: center;
}
.notes-loading {
    display: flex;
    justify-content: center;
}
.notes-empty > i {
    color: var(--color-primary);
    font-size: 25px;
}
.notes-empty > strong {
    color: var(--color-text-primary);
    font-size: 13px;
}
.notes-empty > span {
    font-size: 11px;
}
.notes-empty--compact {
    min-height: 130px;
    padding: 14px 5px;
}
.system-note-reader[hidden] {
    display: none;
}
.system-note-reader {
    position: fixed;
    z-index: 4;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-surface);
}
.system-note-reader__header {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-bg-surface);
}
.system-note-reader__back,
.system-note-reader__edit,
.system-note-reader__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--color-text-secondary);
    font: inherit;
    cursor: pointer;
}
.system-note-reader__back {
    min-height: 35px;
    gap: 10px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: var(--color-bg-base);
    font-size: 12px;
    font-weight: 700;
}
.system-note-reader__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.system-note-reader__edit {
    min-height: 35px;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 700;
}
.system-note-reader__edit[hidden] {
    display: none;
}
.system-note-reader__close {
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    border-radius: var(--radius-md);
    background: var(--color-bg-base);
    font-size: 16px;
}
.system-note-reader__back:hover,
.system-note-reader__close:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.system-note-reader__edit:hover {
    background: var(--color-primary-hover);
    color: var(--color-white);
}
.system-note-reader__body {
    width: min(780px, 100%);
    flex: 1 1 auto;
    margin: 0 auto;
    padding: 36px 28px 56px;
    overflow-y: auto;
}
.system-note-reader__heading {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--color-line);
}
.system-note-reader__heading > span {
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}
.system-note-reader__heading h2 {
    margin: 6px 0 5px;
    color: var(--color-text-primary);
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.system-note-reader__heading time {
    color: var(--color-text-muted);
    font-size: 12px;
}
.system-note-reader__content {
    margin-top: 22px;
    color: var(--color-text-secondary);
    font-size: 13px;
    line-height: 1.7;
}
.system-note-reader__content :is(h1, h2, h3) {
    margin-top: 14px;
}
.system-note-reader__content h1 {
    font-size: 19px;
}
.system-note-reader__content h2 {
    font-size: 17px;
}
.system-note-reader__content h3 {
    font-size: 15px;
}
.system-note-reader__content:is(.is-collapsed, .is-expanded) {
    max-height: none;
    overflow: visible;
}
.chat-info-action-btn.is-active {
    color: var(--color-primary);
}
.chat-info-action-btn.is-active .icon-circle {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 5px 14px color-mix(in srgb, var(--color-primary) 20%, transparent);
}
body.system-notes-open {
    overflow: hidden;
}
/* ========================================================================== 
   Unified intrinsic table sizing
   Tables fill their available desktop surface. Columns remain content-sized,
   and a wrapper scrolls only when the row's real minimum content cannot fit.
   ========================================================================== */
.main-content :is(table.app-standard-table.task-configuration-table--projects, table.app-standard-table, table.line-member-table, table.trash-management-table, table.trash-overview-table):not(.company-articles-table, .maintenance-data-table) {
    --app-table-min-width: 0px;
    --mobile-table-min-width: 0px;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    table-layout: auto !important;
}
.main-content :is(table.app-standard-table.task-configuration-table--projects, table.app-standard-table, table.line-member-table, table.trash-management-table, table.trash-overview-table):not(.company-articles-table, .maintenance-data-table) :is(col, th, td) {
    width: auto !important;
    min-width: 0 !important;
}
.main-content :is(table.app-standard-table.task-configuration-table--projects, table.app-standard-table, table.trash-management-table):not(.company-articles-table, .maintenance-data-table) :is(.table-checkbox-cell, .publishing-col--select, .trash-management-checkbox-column) {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
}
.main-content :is(table.app-standard-table.task-configuration-table--projects, table.app-standard-table):not(.company-articles-table, .maintenance-data-table) :is(.table-actions-heading, .table-actions-cell) {
    width: 1% !important;
    min-width: max-content !important;
    white-space: nowrap;
}
.main-content :is(.table-responsive, .table-container, .table-wrapper, .table-scroll-wrapper, .table-scroll-container, .list-table-container, .maintenance-list-table-container, .website-records-table-container, .publishing-table-scroll, .tricks-table-scroll, .leave-table-wrap, .holiday-table-wrap, .roles-table-wrap, .members-table-wrap, .task-configuration-table-wrap, .app-horizontal-scroll, .departments-table-scroll, .line-member-table-wrap, .trash-management-table-wrap, .card:has(> table.app-standard-table)) {
    max-width: 100%;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}
/* ================================================================
   Event calendar
   ================================================================ */
body.calendar-page {
    overflow-x: hidden;
    background: #f4f6f9;
}
body.calendar-page .main-content {
    padding: 16px;
}
body.event-calendar-modal-open {
    overflow: hidden;
}
.event-calendar-page {
    min-height: calc(100vh - var(--topbar-height) - 32px);
    background: transparent;
    color: var(--color-text-primary);
}
.event-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0;
    border-bottom: 0;
    background: transparent;
    margin-bottom: 24px;
}
.event-calendar-page > .event-calendar-header .event-calendar-heading {
    display: block;
}
.event-calendar-page > .event-calendar-header .event-calendar-heading__icon {
    display: none;
}
.event-calendar-page > .event-calendar-header .event-calendar-heading h1 {
    margin: 0 0 5px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}
.event-calendar-page > .event-calendar-header .event-calendar-heading p {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}
.event-calendar-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}
.event-calendar-heading--standard {
    display: block;
}
.event-calendar-heading.event-calendar-heading--standard h1 {
    margin: 0 0 5px;
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}
.event-calendar-heading.event-calendar-heading--standard p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 400;
}
.event-calendar-heading__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.event-calendar-heading__icon svg {
    width: 22px;
    height: 22px;
}
.event-calendar-heading h1 {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 21px;
    font-weight: 700;
}
.event-calendar-heading p {
    margin: 3px 0 0;
    color: var(--color-text-muted);
    font-size: 12.5px;
}
.event-calendar-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}
.event-calendar-trash-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid #dce2e9;
    border-radius: 10px;
    background: #fff;
    color: #596579;
    font-size: 12.5px;
    font-weight: 650;
    text-decoration: none;
    transition: 0.18s ease;
}
.event-calendar-trash-link:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.event-calendar-add, .event-calendar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: 0.18s ease;
}
.event-calendar-add {
    min-height: 42px;
    padding: 0 17px;
    background: var(--color-primary);
    color: #fff;
}
.event-calendar-add:hover, .event-calendar-button--primary:hover {
    background: var(--color-primary-hover);
}
.event-calendar-toolbar {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 70px;
    padding: 20px;
    border: 1px solid var(--color-line);
    border-radius: 16px;
    background: #fff;
}
.event-calendar-navigation, .event-calendar-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}
.event-calendar-navigation {
    flex: 0 0 auto;
}
.event-calendar-tools {
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
}
.event-calendar-icon-button, .event-calendar-today, select.event-calendar-scope, .event-calendar-view-switch button {
    min-height: 48px;
    border: 1px solid #dfe5ec;
    background: #fff;
    color: #556174;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}
.event-calendar-icon-button {
    width: 48px;
    border-radius: 9px;
}
.event-calendar-icon-button:hover, .event-calendar-today:hover {
    border-color: #c8d0db;
    background: #f7f9fb;
    color: var(--color-text-primary);
}
.event-calendar-today {
    padding: 0 20px;
    border-radius: 9px;
}
.event-calendar-date-jump {
    position: relative;
    margin-left: 7px;
}
.event-calendar-period-trigger {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 9px;
    padding: 0 15px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--filter-control-radius);
    background: transparent;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.16s ease;
    list-style: none;
    user-select: none;
}
.event-calendar-period-trigger::-webkit-details-marker {
    display: none;
}
.event-calendar-period-trigger__icon {
    display: inline-flex;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #fff;
    color: var(--color-primary);
    font-size: 12px;
}
.event-calendar-period-trigger__label {
    color: #566174;
    font-size: 11.5px;
    font-weight: 650;
    white-space: nowrap;
}
.event-calendar-period-trigger__chevron {
    color: #8a95a5;
    font-size: 10px;
    transition: transform 0.16s ease;
}
.event-calendar-date-jump.is-open .event-calendar-period-trigger__chevron {
    transform: rotate(180deg);
}
.event-calendar-period {
    min-width: 120px;
    color: var(--color-text-primary);
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}
.event-calendar-date-jump__popover {
    position: absolute;
    z-index: 80;
    top: calc(100% + 9px);
    left: 0;
    width: 370px;
    padding: 16px;
    border: 1px solid #dfe5ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}
.event-calendar-date-jump__heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 13px;
}
.event-calendar-date-jump__heading strong {
    color: #263145;
    font-size: 13px;
}
.event-calendar-date-jump__heading span {
    color: #8a95a5;
    font-size: 10.5px;
}
.event-calendar-date-jump__fields {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 110px;
    gap: 9px;
}
.event-calendar-date-jump__fields label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}
.event-calendar-date-jump__fields label > span {
    color: #657185;
    font-size: 10.5px;
    font-weight: 650;
}
.event-calendar-date-jump__fields .ts-wrapper {
    width: 100%;
}
.event-calendar-date-jump__fields .ts-control {
    border-radius: var(--filter-control-radius);
}
.event-calendar-date-jump__fields :is(select, input) {
    width: 100%;
    height: var(--filter-control-height);
    min-height: var(--filter-control-height);
    padding: 0 10px;
    border: 1px solid #dce2e9;
    border-radius: var(--filter-control-radius);
    outline: 0;
    background: #fff;
    color: #283347;
    font-family: var(--font-body);
    font-size: 12px;
}
.event-calendar-date-jump__fields :is(select, input):focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 7%, transparent);
}
.event-calendar-date-jump__submit {
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 13px;
    border: 0;
    border-radius: var(--filter-control-radius);
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.event-calendar-search {
    position: relative;
    display: flex;
    flex: 1 1 420px;
    align-items: center;
    width: auto;
    min-width: 280px;
    max-width: 520px;
    height: 48px;
    padding-left: 16px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--filter-control-radius);
    background: #fff;
    color: #929baa;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}
.event-calendar-search:focus-within {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--color-primary-light);
}
.event-calendar-search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 28px 0 8px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 12.5px;
}
.event-calendar-search input::-webkit-search-cancel-button {
    display: none;
    -webkit-appearance: none;
    appearance: none;
}
.event-calendar-search input::-ms-clear, .event-calendar-search input::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}
.event-calendar-search button {
    position: absolute;
    right: 7px;
    display: none;
    border: 0;
    background: transparent;
    color: #8f99a8;
    font-size: 19px;
    cursor: pointer;
}
.event-calendar-search button.is-visible {
    display: block;
}
.event-calendar-scope-wrap {
    flex: 0 0 190px;
    width: 190px;
}
select.event-calendar-scope {
    width: 100%;
    min-height: 48px;
    padding: 0 36px 0 16px;
    border-radius: var(--filter-control-radius);
    outline: 0;
}
.event-calendar-scope-wrap > .ts-wrapper {
    width: 100%;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
}
.event-calendar-scope-wrap .ts-control {
    width: 100%;
    min-height: 48px;
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--color-line-strong) !important;
    border-radius: var(--filter-control-radius) !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: 12.5px;
}
.event-calendar-scope-wrap .ts-wrapper.focus .ts-control {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 4px var(--color-primary-light) !important;
}
.event-calendar-scope-wrap .ts-dropdown {
    min-width: 100%;
}
.event-calendar-view-switch {
    display: flex;
    padding: 3px;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    background: #f4f6f8;
}
.event-calendar-view-switch button {
    min-width: 54px;
    min-height: 40px;
    border: 0;
    border-radius: 7px;
    background: transparent;
}
.event-calendar-view-switch button.is-active {
    background: #fff;
    box-shadow: 0 1px 4px rgba(29, 39, 58, 0.11);
    color: var(--color-primary);
}
.event-calendar-canvas {
    position: relative;
    min-height: calc(100vh - var(--topbar-height) - 155px);
    padding: 18px 0 16px;
}
.calendar-trash-page .trash-management-heading-icon {
    display: none;
}
.calendar-trash-page .trash-management-header {
    margin-bottom: 24px;
}
.event-calendar-search-results {
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 32, 51, 0.04);
}
.event-calendar-search-results__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--color-line);
}
.event-calendar-search-results__header h3 {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 16px;
}
.event-calendar-search-results__header p {
    margin: 4px 0 0;
    color: var(--color-text-muted);
    font-size: 11.5px;
}
.event-calendar-search-results__header > span {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
}
.event-calendar-search-results__list {
    display: flex;
    flex-direction: column;
}
.event-calendar-search-result {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 390px) 18px;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 16px 20px 16px 24px;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    background: #fff;
    color: inherit;
    font-family: var(--font-body);
    text-align: left;
    cursor: pointer;
    transition: background 0.16s ease;
}
.event-calendar-search-result:last-child {
    border-bottom: 0;
}
.event-calendar-search-result::before {
    position: absolute;
    top: 13px;
    bottom: 13px;
    left: 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--event-color, var(--color-primary));
    content: "";
}
.event-calendar-search-result:hover {
    background: #fafbfc;
}
.event-calendar-search-result__body, .event-calendar-search-result__meta {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.event-calendar-search-result__body {
    gap: 4px;
}
.event-calendar-search-result__body strong {
    overflow: hidden;
    color: #273145;
    font-size: 13.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.event-calendar-search-result__body small {
    overflow: hidden;
    color: #8993a2;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.event-calendar-search-result__meta {
    gap: 5px;
    color: #687488;
    font-size: 10.5px;
}
.event-calendar-search-result__meta > span {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.event-calendar-search-result__meta i {
    width: 13px;
    flex: 0 0 auto;
    color: var(--color-primary);
    text-align: center;
}
.event-calendar-search-result__arrow {
    color: #a1aab7;
    font-size: 10px;
}
.event-calendar-search-results__empty {
    display: flex;
    min-height: 360px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    padding: 30px;
    color: #909aa9;
    text-align: center;
}
.event-calendar-search-results__empty > i {
    margin-bottom: 7px;
    color: #c2c9d2;
    font-size: 30px;
}
.event-calendar-search-results__empty strong {
    color: #4d586b;
    font-size: 14px;
}
.event-calendar-search-results__empty span {
    font-size: 11.5px;
}
.event-calendar-loading {
    position: absolute;
    z-index: 20;
    top: 28px;
    left: 50%;
    display: flex;
    visibility: hidden;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid #e2e7ed;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 7px 22px rgba(20, 31, 50, 0.12);
    color: var(--color-text-muted);
    font-size: 12px;
    opacity: 0;
    transform: translate(-50%, -8px);
    transition: 0.18s ease;
}
.event-calendar-loading.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
}
.event-calendar-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--color-primary-border-strong);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: event-calendar-spin 0.7s linear infinite;
}
@keyframes event-calendar-spin {
    to {
        transform: rotate(360deg);
    }
}
.event-calendar-month {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #e1e7ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(30, 43, 64, 0.04);
}
.event-calendar-weekday {
    padding: 11px 10px;
    border-bottom: 1px solid #e6ebf0;
    background: #f8fafc;
    color: #687487;
    font-size: 11.5px;
    font-weight: 650;
    text-align: center;
}
.event-calendar-weekday.is-weekend {
    color: var(--color-primary-hover);
}
.event-calendar-day-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    min-height: 124px;
    padding: 8px;
    border: 0;
    border-right: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
    outline: 0;
    background: #fff;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}
.event-calendar-day-cell:nth-child(7n + 7) {
    border-right: 0;
}
.event-calendar-day-cell:nth-last-child(-n + 7) {
    border-bottom: 0;
}
.event-calendar-day-cell:hover, .event-calendar-day-cell:focus-visible {
    background: #fbfcfe;
}
.event-calendar-day-cell.is-outside {
    background: #fafbfd;
    color: #b4bdc9;
}
.event-calendar-day-number {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    font-size: 12.5px;
    font-weight: 600;
}
.event-calendar-day-cell.is-today .event-calendar-day-number {
    background: var(--color-primary);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--color-primary) 20%, transparent);
    color: #fff;
}
.event-calendar-day-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.event-calendar-chip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    min-width: 0;
    height: 24px;
    padding: 0 7px 0 9px;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    background: color-mix(in srgb, var(--event-color, var(--color-primary)) 10%, white);
    color: color-mix(in srgb, var(--event-color, var(--color-primary)) 82%, #111827);
    font-family: var(--font-body);
    font-size: 10.5px;
    text-align: left;
    cursor: pointer;
}
.event-calendar-chip::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: var(--event-color, var(--color-primary));
    content: "";
}
.event-calendar-chip:hover {
    filter: saturate(1.2) brightness(0.98);
}
.event-calendar-chip__time {
    flex: 0 0 auto;
    font-weight: 700;
}
.event-calendar-chip__title {
    overflow: hidden;
    font-weight: 550;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.event-calendar-more {
    display: block;
    width: fit-content;
    padding-left: 7px;
    border: 0;
    background: transparent;
    color: #7b8797;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}
.event-calendar-more:hover, .event-calendar-more:focus-visible {
    color: var(--color-primary);
}
.event-calendar-agenda {
    display: grid;
    grid-template-columns: 1fr minmax(0, 760px);
    justify-content: center;
    gap: 30px;
    min-height: 560px;
    padding: 28px;
    border: 1px solid #e1e7ee;
    border-radius: 14px;
    background: #fff;
}
.event-calendar-agenda__summary {
    display: flex;
    align-self: start;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 18px;
    border-radius: 13px;
    background: var(--color-primary-subtle);
}
.event-calendar-agenda__summary strong {
    color: var(--color-primary);
    font-size: 38px;
    line-height: 1;
}
.event-calendar-agenda__summary span {
    color: #4f5b6d;
    font-size: 12px;
    line-height: 1.35;
}
.event-calendar-agenda__summary em {
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--color-primary-border-strong);
    color: var(--color-primary-hover);
    font-size: 11.5px;
    font-style: normal;
}
.event-calendar-agenda__timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.event-calendar-agenda-event {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    align-items: stretch;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: var(--font-body);
    text-align: left;
    cursor: pointer;
}
.event-calendar-agenda-event__time {
    position: relative;
    padding: 18px 24px 18px 0;
    border-right: 1px solid #e4e8ee;
    color: #566174;
    font-size: 11.5px;
    font-weight: 650;
    text-align: right;
}
.event-calendar-agenda-event__time i {
    position: absolute;
    top: 22px;
    right: -5px;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--event-color, var(--color-primary));
    box-shadow: 0 0 0 1px var(--event-color, var(--color-primary));
}
.event-calendar-agenda-event__card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 20px;
    padding: 15px 18px;
    border: 1px solid color-mix(in srgb, var(--event-color, var(--color-primary)) 20%, #e5e7eb);
    border-left: 4px solid var(--event-color, var(--color-primary));
    border-radius: 10px;
    background: color-mix(in srgb, var(--event-color, var(--color-primary)) 4%, white);
    transition: 0.16s ease;
}
.event-calendar-agenda-event:hover .event-calendar-agenda-event__card {
    box-shadow: 0 7px 18px rgba(30, 42, 62, 0.08);
}
.event-calendar-agenda-event__card strong {
    color: var(--color-text-primary);
    font-size: 13.5px;
}
.event-calendar-agenda-event__card small {
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 11.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.event-calendar-agenda-event__card > span {
    margin-top: 4px;
    color: #8791a1;
    font-size: 10.5px;
}
.event-calendar-empty {
    display: flex;
    min-height: 360px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9099a8;
    text-align: center;
}
.event-calendar-empty > span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 13px;
    border-radius: 18px;
    background: #f3f5f8;
    color: #a3acb9;
    font-size: 24px;
}
.event-calendar-empty h3 {
    margin: 0 0 4px;
    font-size: 14px;
}
.event-calendar-empty p {
    margin: 0;
    font-size: 11.5px;
}
.event-calendar-year {
    display: grid;
    grid-template-columns: repeat(4, minmax(210px, 1fr));
    gap: 14px;
}
.event-calendar-year-month {
    padding: 15px;
    border: 1px solid #e2e7ed;
    border-radius: 12px;
    background: #fff;
}
.event-calendar-year-month > button {
    width: 100%;
    margin-bottom: 10px;
    border: 0;
    background: transparent;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
.event-calendar-year-month > button:hover {
    color: var(--color-primary);
}
.event-calendar-mini-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    text-align: center;
}
.event-calendar-mini-grid > span, .event-calendar-mini-grid > button {
    display: grid;
    place-items: center;
    min-width: 0;
    height: 25px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #596579;
    font-family: var(--font-body);
    font-size: 10px;
}
.event-calendar-mini-grid > button {
    position: relative;
    cursor: pointer;
}
.event-calendar-mini-grid > button:hover {
    background: #f1f4f7;
}
.event-calendar-mini-grid > button.has-events::after {
    position: absolute;
    bottom: 2px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--event-color, var(--color-primary));
    content: "";
}
.event-calendar-mini-grid > button.is-today {
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
}
.event-calendar-mini-grid > button.is-today::after {
    background: #fff;
}
.event-calendar-mini-weekday {
    color: #a0a9b6 !important;
    font-weight: 650;
}
.event-calendar-error {
    display: flex;
    min-height: 460px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #e1e7ee;
    border-radius: 14px;
    background: #fff;
    color: var(--color-text-muted);
    font-size: 12px;
}
.event-calendar-error > i {
    color: var(--color-warning);
    font-size: 28px;
}
.event-calendar-error strong {
    color: var(--color-text-primary);
    font-size: 14px;
}
.event-calendar-error button {
    margin-top: 7px;
    padding: 7px 13px;
    border: 0;
    border-radius: 8px;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-body);
    cursor: pointer;
}
.event-calendar-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: flex;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition:
        visibility 0.2s,
        opacity 0.2s ease;
}
.event-calendar-modal.is-open {
    visibility: visible;
    opacity: 1;
}
.event-calendar-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(3px);
}
.event-calendar-modal__dialog {
    position: relative;
    display: flex;
    width: min(100%, 680px);
    max-height: min(900px, calc(100vh - 48px));
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
    transform: translateY(14px) scale(0.985);
    transition: transform 0.22s ease;
}
.event-calendar-modal.is-open .event-calendar-modal__dialog {
    transform: translateY(0) scale(1);
}
.event-calendar-modal__dialog > form {
    display: flex;
    min-height: 0;
    flex-direction: column;
}
.event-calendar-modal__header {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px 17px;
    border-bottom: 1px solid #e8ecf1;
}
.event-calendar-modal__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--color-primary);
    font-size: 9.5px;
    font-weight: 750;
    text-transform: uppercase;
}
.event-calendar-modal__header h2 {
    margin: 0;
    color: #172033;
    font-size: 18px;
    font-weight: 700;
}
.event-calendar-modal__close {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: #f2f4f7;
    color: #778294;
    font-family: Arial, sans-serif;
    font-size: 22px;
    cursor: pointer;
}
.event-calendar-modal__close:hover {
    background: #e9edf2;
    color: #313b4d;
}
.event-calendar-modal__body {
    min-height: 0;
    padding: 20px 24px 24px;
    overflow-y: auto;
}
.event-calendar-form-error {
    display: none;
    margin-bottom: 15px;
    padding: 10px 12px;
    border: 1px solid var(--color-primary-border-strong);
    border-radius: 9px;
    background: var(--color-primary-subtle);
    color: var(--color-primary-hover);
    font-size: 11.5px;
}
.event-calendar-form-error.is-visible {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.event-calendar-field {
    margin-bottom: 16px;
}
[data-calendar-participants-field][hidden], [data-calendar-list-participants-field][hidden] {
    display: none !important;
}
.event-calendar-field > .event-calendar-privacy-option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #dce2e9;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}
.event-calendar-privacy-option:has(input:checked) {
    border-color: color-mix(in srgb, var(--color-primary) 30%, white);
    background: var(--color-primary-light);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 7%, transparent);
}
.event-calendar-privacy-option:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 12%, transparent);
}
.event-calendar-field .event-calendar-privacy-option__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eef2f7;
    color: var(--color-text-muted);
    font-size: 14px;
}
.event-calendar-privacy-option:has(input:checked) .event-calendar-privacy-option__icon {
    background: color-mix(in srgb, var(--color-primary) 9%, white);
    color: var(--color-primary);
}
.event-calendar-field .event-calendar-privacy-option__copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    color: inherit;
}
.event-calendar-privacy-option__copy strong {
    color: #263145;
    font-size: 12.5px;
    font-weight: 650;
}
.event-calendar-privacy-option__copy small {
    color: #7b8798;
    font-size: 10.5px;
    font-weight: 400;
    line-height: 1.4;
}
.event-calendar-privacy-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.event-calendar-field .event-calendar-privacy-option__switch {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #cbd5e1;
    color: transparent;
    transition: background 0.18s ease;
}
.event-calendar-privacy-option__switch::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
    content: "";
    transition: transform 0.18s ease;
}
.event-calendar-privacy-option input:checked + .event-calendar-privacy-option__switch {
    background: var(--color-primary);
}
.event-calendar-privacy-option input:checked + .event-calendar-privacy-option__switch::after {
    transform: translateX(18px);
}
.event-calendar-privacy-option input:focus-visible + .event-calendar-privacy-option__switch {
    outline: 3px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
    outline-offset: 2px;
}
.event-calendar-field > label, .event-calendar-participant-label label {
    display: block;
    margin-bottom: 6px;
    color: #374155;
    font-size: 11.5px;
    font-weight: 650;
}
.event-calendar-field label > span, .event-calendar-participant-label label > span {
    color: var(--color-primary);
}
.event-calendar-field > input, .event-calendar-field > textarea {
    width: 100%;
    border: 1px solid #dce2e9;
    border-radius: 9px;
    outline: 0;
    background: #fff;
    color: #1d2739;
    font-family: var(--font-body);
    font-size: 12.5px;
    transition: 0.15s ease;
}
.event-calendar-field > input {
    height: 40px;
    padding: 0 12px;
}
.event-calendar-field > input[type="datetime-local"] {
    cursor: pointer;
}
.event-calendar-field > textarea {
    min-height: 84px;
    padding: 10px 12px;
    line-height: 1.55;
    resize: vertical;
}
.event-calendar-field .ql-toolbar.ql-snow {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 7px 9px;
    border: 1px solid #dce2e9 !important;
    border-radius: 9px 9px 0 0;
    background: #f8fafb;
    font-family: var(--font-body);
}
.event-calendar-field .ql-toolbar.ql-snow .ql-formats {
    margin-right: 8px;
}
.event-calendar-rich-editor.ql-container.ql-snow {
    min-height: 132px;
    border: 1px solid #dce2e9;
    border-top: 0;
    border-radius: 0 0 9px 9px;
    background: #fff;
    color: #1d2739;
    font-family: var(--font-body);
    font-size: 12.5px;
}
.event-calendar-rich-editor .ql-editor {
    min-height: 130px;
    padding: 11px 12px;
    line-height: 1.65;
}
.event-calendar-rich-editor.is-uploading {
    cursor: progress;
}
.event-calendar-rich-editor .ql-editor img, .event-calendar-rich-editor.is-fallback img, .event-calendar-detail-description img, .overtime-team-entry-list__description img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border: 1px solid #e2e7ed;
    border-radius: 10px;
}
.event-calendar-rich-editor .ql-editor.ql-blank::before {
    color: #98a1af;
    font-family: var(--font-body);
    font-style: normal;
}
.event-calendar-rich-editor.is-fallback {
    min-height: 132px;
    padding: 11px 12px;
    border: 1px solid #dce2e9;
    border-radius: 9px;
    outline: 0;
    background: #fff;
    color: #1d2739;
    font-size: 12.5px;
    line-height: 1.65;
}
.event-calendar-rich-editor.is-fallback:empty::before {
    color: #98a1af;
    content: attr(data-placeholder);
}
.event-calendar-field > input:focus, .event-calendar-field > textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 7%, transparent);
}
.event-calendar-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.event-calendar-recurrence {
    margin-bottom: 16px;
    padding: 13px 14px;
    border: 1px solid #dce2e9;
    border-radius: 12px;
    background: #f8fafc;
}
.event-calendar-recurrence[hidden], .event-calendar-recurrence__grid > [hidden], .event-calendar-recurrence__note[hidden] {
    display: none !important;
}
.event-calendar-recurrence__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.event-calendar-recurrence__summary {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}
.event-calendar-recurrence__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    font-size: 13px;
}
.event-calendar-recurrence__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
}
.event-calendar-recurrence__heading strong {
    color: #263145;
    font-size: 12.5px;
    font-weight: 650;
}
.event-calendar-recurrence__heading small, .event-calendar-recurrence__note {
    color: #7b8798;
    font-size: 10.5px;
    line-height: 1.45;
}
.event-calendar-recurrence__grid .event-calendar-field {
    margin-bottom: 0;
}
.event-calendar-recurrence__grid {
    margin-top: 12px;
}
.event-calendar-recurrence__toggle {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    cursor: pointer;
}
.event-calendar-recurrence__toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.event-calendar-recurrence__switch {
    position: relative;
    display: block;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #cbd5e1;
    transition:
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}
.event-calendar-recurrence__switch::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
    content: "";
    transition: transform 0.18s ease;
}
.event-calendar-recurrence__toggle input:checked + .event-calendar-recurrence__switch {
    background: var(--color-primary);
}
.event-calendar-recurrence__toggle input:checked + .event-calendar-recurrence__switch::after {
    transform: translateX(18px);
}
.event-calendar-recurrence__toggle input:focus-visible + .event-calendar-recurrence__switch {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 12%, transparent);
}
.event-calendar-field > select {
    width: 100%;
    height: 40px;
    padding: 0 36px 0 12px;
    border: 1px solid #dce2e9;
    border-radius: 9px;
    outline: 0;
    background: #fff;
    color: #1d2739;
    font-family: var(--font-body);
    font-size: 12.5px;
}
.event-calendar-recurrence__grid .ts-wrapper {
    width: 100%;
    min-width: 0;
}
.event-calendar-recurrence__grid .ts-control {
    width: 100%;
    min-height: 40px;
    padding: 8px 38px 8px 12px;
    border: 1px solid #dce2e9 !important;
    border-radius: 9px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #1d2739;
    font-size: 12.5px;
}
.event-calendar-recurrence__grid .ts-wrapper.focus .ts-control {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 7%, transparent) !important;
}
.event-calendar-recurrence__note {
    margin: 10px 0 0;
}
.event-calendar-colors {
    display: flex;
    align-items: center;
    gap: 9px;
}
.event-calendar-color {
    cursor: pointer;
}
.event-calendar-color input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.event-calendar-color > span:not(.sr-only) {
    display: block;
    width: 24px;
    height: 24px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--ui-color);
    box-shadow: 0 0 0 1px #d8dee6;
    transition: 0.15s ease;
}
.event-calendar-color input:checked + span {
    box-shadow: 0 0 0 2px var(--ui-color);
    transform: scale(1.08);
}
.event-calendar-participant-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.event-calendar-participant-label > span {
    color: #798496;
    font-size: 10.5px;
}
.event-calendar-participant-picker {
    overflow: hidden;
    border: 1px solid #dce2e9;
    border-radius: 10px;
}
.event-calendar-participant-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px;
    border-bottom: 1px solid #e8ecf1;
    background: #f8fafb;
}
.event-calendar-participant-tools > label {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 0 8px;
    color: #8b95a4;
}
.event-calendar-participant-tools input {
    width: 100%;
    height: 30px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #253045;
    font-family: var(--font-body);
    font-size: 11.5px;
}
.event-calendar-participant-tools > button {
    flex: 0 0 auto;
    padding: 5px 7px;
    border: 0;
    background: transparent;
    color: #6d788a;
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
}
.event-calendar-participant-tools > button:hover {
    color: var(--color-primary);
}
.event-calendar-participant-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 190px;
    padding: 6px;
    overflow-y: auto;
    grid-gap: 8px;
}
.event-calendar-participant {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 7px 8px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid var(--color-line-strong);
}
.event-calendar-participant[hidden] {
    display: none;
}
.event-calendar-participant:hover {
    background: #f6f8fa;
}
.event-calendar-participant:has(input:checked) {
    background: var(--color-primary-subtle);
}
.event-calendar-participant > input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
.event-calendar-participant__avatar, .event-calendar-participant__avatar .avatar {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 11px;
}
.event-calendar-participant__identity {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}
.event-calendar-participant__identity strong, .event-calendar-participant__identity small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.event-calendar-participant__identity strong {
    color: #303a4c;
    font-size: 11.5px;
    font-weight: 600;
}
.event-calendar-participant__identity small {
    color: #929cab;
    font-size: 9.5px;
}
.event-calendar-participant__check {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 1px solid #cfd6df;
    border-radius: 5px;
    color: transparent;
}
.event-calendar-participant__check svg {
    opacity: 0;
    transition: opacity 0.15s ease;
}
.event-calendar-participant input:checked ~ .event-calendar-participant__check {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}
.event-calendar-participant input:checked ~ .event-calendar-participant__check svg {
    opacity: 1;
}
.event-calendar-reminder-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    color: #7b8696;
    font-size: 10.5px;
}
.event-calendar-reminder-note i {
    color: var(--color-primary);
}
.event-calendar-modal__footer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 24px;
    border-top: 1px solid #e8ecf1;
    background: #fbfcfd;
}
.event-calendar-button {
    min-height: 38px;
    padding: 0 14px;
}
.event-calendar-button--secondary {
    border: 1px solid #d9e0e8;
    background: #fff;
    color: #566174;
}
.event-calendar-button--secondary:hover {
    background: #f3f5f7;
    color: #273144;
}
.event-calendar-button--primary {
    background: var(--color-primary);
    color: #fff;
}
.event-calendar-button--danger {
    margin-right: auto;
    border: 1px solid var(--color-primary-border-strong);
    background: #fff;
    color: var(--color-primary-hover);
}
.event-calendar-button--danger:hover {
    background: var(--color-primary-subtle);
}
.event-calendar-button:disabled {
    opacity: 0.55;
    cursor: wait;
}
.event-calendar-detail-accent {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
}
.event-calendar-detail-header {
    padding-top: 25px;
}
.event-calendar-detail-header h2 {
    max-width: 520px;
    line-height: 1.35;
}
.event-calendar-detail-time {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f7f9fb;
}
.event-calendar-detail-time > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 1px 4px rgba(25, 38, 58, 0.08);
}
.event-calendar-detail-time div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.event-calendar-detail-time small {
    color: #8993a2;
    font-size: 9.5px;
}
.event-calendar-detail-time strong {
    color: #2c3648;
    font-size: 12px;
}
.event-calendar-detail-description {
    margin: 17px 0;
    color: #4e596c;
    font-size: 12.5px;
    line-height: 1.7;
    white-space: pre-wrap;
}
.event-calendar-detail-description.is-empty {
    color: #9aa3b0;
}
.event-calendar-detail-section {
    padding-top: 16px;
    border-top: 1px solid #e8ecf1;
}
.event-calendar-detail-section__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.event-calendar-detail-section__heading h3 {
    margin: 0;
    color: #313b4d;
    font-size: 12.5px;
}
.event-calendar-detail-section__heading span {
    color: #8993a2;
    font-size: 10.5px;
}
.event-calendar-detail-participants {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}
.event-calendar-detail-person {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 8px;
    border: 1px solid #e7ebf0;
    border-radius: 9px;
}
.event-calendar-detail-person > span {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 32px;
    height: 32px;
    overflow: hidden;
    border-radius: 50%;
    background: #eef2f6;
    color: #6f7a8c;
    font-size: 11px;
    font-weight: 700;
}
.event-calendar-detail-person img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.event-calendar-detail-person div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.event-calendar-detail-person strong, .event-calendar-detail-person small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.event-calendar-detail-person strong {
    color: #364054;
    font-size: 11.5px;
}
.event-calendar-detail-person small {
    color: #929baa;
    font-size: 9.5px;
}
.event-calendar-detail-created {
    margin-top: 14px;
    color: #919aa8;
    font-size: 10.5px;
}
.event-calendar-detail-created strong {
    color: #667184;
}
.event-calendar-modal__footer > div {
    display: flex;
    gap: 8px;
}
.event-calendar-modal__footer .event-calendar-draft-actions {
    align-items: center;
    margin-right: auto;
}
.event-calendar-clear-draft {
    padding: 5px 2px;
    border: 0;
    background: transparent;
    color: #7b8697;
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
}
.event-calendar-clear-draft:hover:not(:disabled) {
    color: var(--color-primary-hover);
}
.event-calendar-clear-draft:disabled {
    opacity: 0.35;
    cursor: default;
}
#calendar-draft-status {
    color: #8b95a4;
    font-size: 9.5px;
    white-space: nowrap;
}
#calendar-draft-status.is-saved {
    color: #059669;
}
.event-calendar-detail-description :is(p, ul, ol, blockquote, pre) {
    margin: 0 0 8px;
}
.event-calendar-detail-description :is(ul, ol) {
    padding-left: 22px;
}
.event-calendar-detail-description blockquote {
    padding-left: 11px;
    border-left: 3px solid #d8dee7;
    color: #687386;
}
.event-calendar-detail-description a {
    color: #2563eb;
    text-decoration: underline;
}
.event-calendar-modal__footer.is-readonly .event-calendar-button--danger, .event-calendar-modal__footer.is-readonly #calendar-edit-event {
    display: none;
}
/* Event editor and event detail use right-side offcanvas panels. */
#calendar-form-modal, #calendar-list-form-modal {
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
}
#calendar-form-modal .event-calendar-modal__dialog--form, #calendar-list-form-modal .event-calendar-modal__dialog--form {
    width: min(100%, 750px);
    height: 100dvh;
    max-height: 100dvh;
    box-shadow: -18px 0 55px rgba(15, 23, 42, 0.2);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
#calendar-form-modal.is-open .event-calendar-modal__dialog--form, #calendar-list-form-modal.is-open .event-calendar-modal__dialog--form {
    transform: translateX(0);
}
#calendar-form-modal .event-calendar-modal__body, #calendar-list-form-modal .event-calendar-modal__body {
    flex: 1 1 auto;
}
#calendar-detail-modal {
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
}
#calendar-detail-modal .event-calendar-modal__dialog--detail {
    width: min(100%, 750px);
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: -18px 0 55px rgba(15, 23, 42, 0.2);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
#calendar-detail-modal.is-open .event-calendar-modal__dialog--detail {
    transform: translateX(0);
}
#calendar-detail-modal .event-calendar-detail-body {
    flex: 1 1 auto;
}
/* Member profile offcanvas */
body.member-profile-offcanvas-open {
    overflow: hidden;
}
.member-profile-offcanvas {
    position: fixed;
    inset: 0;
    z-index: 1400;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.24s;
}
.member-profile-offcanvas.is-open {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}
.member-profile-offcanvas__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(5px);
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.22s ease;
}
.member-profile-offcanvas.is-open .member-profile-offcanvas__backdrop {
    opacity: 1;
}
.member-profile-offcanvas__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    width: min(100%, 720px);
    height: 100dvh;
    overflow: hidden;
    flex-direction: column;
    border-top: 3px solid var(--color-primary);
    background: #fff;
    box-shadow: -20px 0 60px rgba(15, 23, 42, 0.2);
    outline: none;
    transform: translateX(102%);
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.member-profile-offcanvas.is-open .member-profile-offcanvas__panel {
    transform: translateX(0);
}
.member-profile-offcanvas__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 30px 20px;
    border-bottom: 1px solid var(--color-line);
}
.member-profile-offcanvas__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.member-profile-offcanvas__title {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}
.member-profile-offcanvas__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition:
        background-color 0.16s ease,
        color 0.16s ease;
}
.member-profile-offcanvas__close:hover, .member-profile-offcanvas__close:focus-visible {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.member-profile-offcanvas__content {
    min-height: 0;
    overflow-y: auto;
    flex: 1;
    padding: 28px 30px;
}
.member-profile-offcanvas__loading, .member-profile-offcanvas__error {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: var(--color-text-secondary);
    text-align: center;
}
.member-profile-offcanvas__loading[hidden], .member-profile-offcanvas__error[hidden], .member-profile-offcanvas__body[hidden] {
    display: none;
}
.member-profile-offcanvas__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-primary-subtle);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: member-profile-spin 0.75s linear infinite;
}
@keyframes member-profile-spin {
    to {
        transform: rotate(360deg);
    }
}
.member-profile-offcanvas__error > i {
    color: var(--color-warning);
    font-size: 28px;
}
.member-profile-offcanvas__error strong {
    color: var(--color-text-primary);
    font-size: 16px;
}
.member-profile-offcanvas__error button {
    margin-top: 6px;
    padding: 9px 16px;
    border: 0;
    border-radius: 9px;
    background: var(--color-primary);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.member-profile-offcanvas__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 30px;
    border-top: 1px solid var(--color-line);
    background: #fff;
}
.member-profile-panel {
    display: grid;
    gap: 22px;
}
.member-profile-panel__hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--color-primary-subtle);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-primary-subtle) 0%, #fff 100%);
}
.member-profile-panel__avatar {
    flex: 0 0 86px;
    width: 86px;
    height: 86px;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
}
.member-profile-panel__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.member-profile-panel__identity {
    min-width: 0;
}
.member-profile-panel__name {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
}
.member-profile-panel__english-name {
    margin: 3px 0 0;
    color: var(--color-text-secondary);
    font-size: 14px;
}
.member-profile-panel__badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.member-profile-panel__role {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
}
.member-profile-panel__section {
    padding-top: 2px;
}
.member-profile-panel__section + .member-profile-panel__section {
    padding-top: 22px;
    border-top: 1px solid var(--color-line);
}
.member-profile-panel__section-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
}
.member-profile-panel__section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.member-profile-panel__section-icon--contact {
    background: #eff6ff;
    color: #2563eb;
}
.member-profile-panel__section-heading h3, .member-profile-panel__section-heading p {
    margin: 0;
}
.member-profile-panel__section-heading h3 {
    color: var(--color-text-primary);
    font-size: 16px;
    font-weight: 700;
}
.member-profile-panel__section-heading p {
    margin-top: 2px;
    color: var(--color-text-secondary);
    font-size: 12px;
}
.member-profile-panel__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}
.member-profile-panel__detail {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: #fff;
}
.member-profile-panel__detail dt {
    margin-bottom: 5px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 500;
}
.member-profile-panel__detail dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--color-text-primary);
    font-size: 14px;
    font-weight: 600;
}
.member-profile-panel__detail a {
    color: #2563eb;
    text-decoration: none;
}
.member-profile-panel__detail a:hover {
    text-decoration: underline;
}
/* Shared rich-text image upload: paste, drag/drop and Quill image button. */
.ql-container {
    position: relative;
}
.ql-editor img, .comment-rich-content img, .task-detail-description img, .trick-detail-note__content img, .event-calendar-detail-description img, .publishing-editor-wrap img, .company-articles-overview-rich-text img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 12px 0;
    border-radius: 10px;
    object-fit: contain;
}
.ql-editor.editor-image-drop-active {
    background: color-mix(in srgb, var(--color-primary) 4.5%, transparent);
}
.ql-container.editor-image-is-uploading::after {
    content: "กำลังอัปโหลดรูปภาพ...";
    position: absolute;
    z-index: 6;
    right: 12px;
    bottom: 10px;
    padding: 6px 10px;
    color: var(--color-primary, var(--color-primary));
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid color-mix(in srgb, var(--color-primary) 18%, transparent);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
}
.ql-toolbar .ql-image {
    cursor: pointer;
}
/* Dashboard event summary and grouped offcanvas. */
.hub-dashboard-event-cluster {
    display: flex;
    min-width: 0;
    align-items: stretch;
    gap: 8px;
}
.event-calendar-detail-privacy {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-top: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 10.5px;
    font-weight: 600;
}
.event-calendar-detail-privacy[hidden] {
    display: none !important;
}
.event-calendar-chip__privacy {
    flex: 0 0 auto;
    color: var(--event-color, var(--color-primary));
    font-size: 8px;
}
.hub-dashboard-event-widget {
    position: relative;
    width: 300px;
    min-width: 280px;
    overflow: hidden;
    border: 1px solid var(--color-primary-border-strong);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.06);
}
.hub-dashboard-event-widget button {
    font: inherit;
}
.hub-dashboard-event-widget__featured {
    display: grid;
    width: 100%;
    padding: 11px 13px;
    align-items: center;
    grid-template-columns: 55px minmax(0, 1fr) 16px;
    gap: 10px;
    border: 0;
    background: linear-gradient(135deg, #fff 0%, var(--color-primary-subtle) 100%);
    color: var(--color-text-primary);
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease;
}
.hub-dashboard-event-widget__featured:hover {
    background: var(--color-primary-subtle);
}
.hub-dashboard-event-widget__icon {
    display: grid;
    width: 55px;
    height: 55px;
    place-items: center;
    border-radius: 10px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    font-size: 22px;
}
.hub-dashboard-event-widget__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.hub-dashboard-event-widget.is-sliding {
    animation: hub-dashboard-event-slide-down 0.46s ease-in-out;
    will-change: transform, opacity;
}
@keyframes hub-dashboard-event-slide-down {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    45% {
        opacity: 0;
        transform: translateY(14px);
    }
    50% {
        opacity: 0;
        transform: translateY(-11px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.hub-dashboard-event-widget__eyebrow {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-size: 9px;
    font-weight: 750;
}
.hub-dashboard-event-widget__content > strong, .hub-dashboard-event-widget__content > small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hub-dashboard-event-widget__content > strong {
    margin-top: 2px;
    color: #172033;
    font-size: 13px;
}
.hub-dashboard-event-widget__content > small {
    margin-top: 1px;
    color: #718096;
    font-size: 10.5px;
}
.hub-dashboard-event-widget__chevron {
    color: var(--color-primary);
    font-size: 10px;
}
.hub-dashboard-event-shortcuts {
    display: grid;
    width: 88px;
    flex: 0 0 88px;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 7px;
}
.hub-dashboard-event-shortcuts button {
    display: flex;
    width: 100%;
    min-width: 0;
    padding: 0 9px;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    background: #fff;
    color: #596579;
    font-size: 11px;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}
.hub-dashboard-event-shortcuts button:first-child {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.hub-dashboard-event-shortcuts button:hover {
    border-color: var(--color-primary-border-strong);
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}
.hub-dashboard-event-shortcuts button > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.hub-dashboard-event-shortcuts button > span svg {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
}
.hub-dashboard-event-shortcuts strong {
    display: grid;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    place-items: center;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 9.5px;
}
#dashboard-event-modal {
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
}
#dashboard-event-modal .event-calendar-modal__dialog--detail {
    width: min(100%, 750px);
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: -18px 0 55px rgba(15, 23, 42, 0.2);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
#dashboard-event-modal.is-open .event-calendar-modal__dialog--detail {
    transform: translateX(0);
}
.dashboard-event-modal [hidden] {
    display: none !important;
}
.dashboard-event-modal__header {
    align-items: center;
    padding-top: 25px;
}
.dashboard-event-modal__header > div {
    min-width: 0;
    flex: 1 1 auto;
}
.dashboard-event-modal__header h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dashboard-event-modal__back {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
    color: var(--color-text-muted);
    cursor: pointer;
}
.dashboard-event-modal__back:hover {
    border-color: var(--color-primary-border-strong);
    color: var(--color-primary);
}
.dashboard-event-modal__body {
    flex: 1 1 auto;
}
.dashboard-event-list-view__intro {
    margin: 0 0 14px;
    color: #7c8798;
    font-size: 11px;
}
.dashboard-event-groups {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dashboard-event-group {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}
.dashboard-event-group > summary {
    display: flex;
    min-height: 54px;
    padding: 10px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f8fafc;
    list-style: none;
    cursor: pointer;
}
.dashboard-event-group > summary::-webkit-details-marker {
    display: none;
}
.dashboard-event-group > summary > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.dashboard-event-group > summary strong {
    color: #263247;
    font-size: 12.5px;
}
.dashboard-event-group > summary small {
    color: #8a95a5;
    font-size: 10px;
}
.dashboard-event-group > summary > i {
    color: var(--color-text-muted-2);
    font-size: 10px;
    transition: transform 0.18s ease;
}
.dashboard-event-group[open] > summary > i {
    transform: rotate(180deg);
}
.dashboard-event-group__items {
    display: flex;
    padding: 8px;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid #edf2f7;
}
.dashboard-event-item {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 62px;
    padding: 9px 10px 9px 13px;
    align-items: center;
    grid-template-columns: 72px minmax(0, 1fr) auto 12px;
    gap: 10px;
    overflow: hidden;
    border: 1px solid #edf0f4;
    border-radius: 9px;
    background: #fff;
    color: #334155;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}
.dashboard-event-item::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--dashboard-event-color, var(--color-primary));
    content: "";
}
.dashboard-event-item:hover {
    border-color: color-mix(in srgb, var(--dashboard-event-color, var(--color-primary)) 28%, #e2e8f0);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.dashboard-event-item__time {
    color: var(--dashboard-event-color, var(--color-primary));
    font-size: 10.5px;
    font-weight: 650;
    white-space: nowrap;
}
.dashboard-event-item__main {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.dashboard-event-item__main strong, .dashboard-event-item__main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dashboard-event-item__main strong {
    color: #273247;
    font-size: 12px;
}
.dashboard-event-item__main small {
    margin-top: 2px;
    color: #8490a1;
    font-size: 10px;
}
.dashboard-event-item__people {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #7b8798;
}
.dashboard-event-item__people > small {
    font-size: 9.5px;
    white-space: nowrap;
}
.dashboard-event-item__avatars {
    display: flex;
    padding-left: 8px;
}
.dashboard-event-item__avatars > span {
    display: grid;
    margin-left: -8px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
}
.dashboard-event-item__avatars .avatar {
    flex: 0 0 auto;
}
.dashboard-event-item > i {
    color: #a4adba;
    font-size: 9px;
}
.dashboard-event-empty {
    display: flex;
    min-height: 330px;
    padding: 30px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    color: #8290a3;
    text-align: center;
}
.dashboard-event-empty > span {
    display: grid;
    width: 56px;
    height: 56px;
    margin-bottom: 13px;
    place-items: center;
    border-radius: 17px;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    font-size: 22px;
}
.dashboard-event-empty strong {
    color: #263247;
    font-size: 14px;
}
.dashboard-event-empty p {
    max-width: 330px;
    margin: 4px 0 0;
    font-size: 11px;
}
.dashboard-event-detail-view__empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 16px;
    border: 1px dashed #dbe2ea;
    border-radius: 9px;
    color: #8a95a5;
    font-size: 11px;
    text-align: center;
}
.dashboard-event-modal__footer > div {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dashboard-event-modal__footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}
#dashboard-event-modal[aria-busy="true"] .dashboard-event-detail-view {
    opacity: 0.65;
}
/* Attendance table cells intentionally wrap long employee/location/reason text. */
.main-content .attendance-table th, .main-content .attendance-table td {
    white-space: normal;
}
/* ======================== Company articles ======================== */
.company-articles-page {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
    color: var(--color-text-primary);
}
.company-articles-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}
.company-articles-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 7px;
    color: var(--color-primary);
    font-size: 12px;
}
.company-articles-header h1 {
    margin: 0;
    line-height: 1.15;
}
.company-articles-header p:not(.company-articles-eyebrow) {
    margin: 8px 0 0;
    color: var(--color-text-muted);
    font-size: 15px;
}
.company-articles-header__actions, .company-articles-dialog__footer, .company-articles-offcanvas__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.company-articles-header__actions {
    flex-wrap: wrap;
}
.company-articles-header__actions .company-articles-button {
    text-decoration: none;
}
.company-articles-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--color-primary);
    border-radius: 11px;
    padding: 9px 16px;
    background: var(--color-primary);
    box-shadow: 0 7px 17px color-mix(in srgb, var(--color-primary) 16%, transparent);
    color: var(--color-white);
    font: inherit;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: 0.18s ease;
}
.company-articles-button:hover {
    background: var(--color-primary-hover);
}
.company-articles-button:disabled {
    opacity: 0.55;
    pointer-events: none;
}
.company-articles-button--secondary {
    border-color: var(--color-line-strong);
    background: var(--color-white);
    box-shadow: none;
    color: var(--color-text-primary);
}
.company-articles-button--secondary:hover {
    border-color: var(--color-text-muted-2);
    background: var(--color-bg-surface-soft);
}
.company-articles-button.company-articles-button--export {
    border-color: var(--color-success);
    background: var(--color-success-light);
    box-shadow: none;
    color: var(--color-success);
}
.company-articles-button.company-articles-button--export:hover {
    border-color: var(--color-success);
    background: var(--color-success);
    box-shadow: 0 7px 17px color-mix(in srgb, var(--color-success) 18%, transparent);
    color: var(--color-white);
}
.company-articles-button.company-articles-button--import {
    border-color: color-mix(in srgb, var(--color-info) 52%, var(--color-line-strong));
    background: color-mix(in srgb, var(--color-info) 9%, var(--color-white));
    box-shadow: none;
    color: var(--color-info);
}
.company-articles-button.company-articles-button--import:hover {
    border-color: var(--color-info);
    background: var(--color-info);
    box-shadow: 0 7px 17px color-mix(in srgb, var(--color-info) 18%, transparent);
    color: var(--color-white);
}
.company-articles-button--download {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    box-shadow: none;
    color: var(--color-primary);
    text-decoration: none;
}
.company-articles-button--download:hover {
    border-color: var(--color-primary-hover);
    background: var(--color-primary);
    color: var(--color-white);
}
.company-articles-button--delete {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    box-shadow: none;
    color: var(--color-primary);
}
.company-articles-button--delete:hover {
    border-color: var(--color-primary-hover);
    background: var(--color-primary);
    color: var(--color-white);
}
.company-articles-button--upload {
    border-color: var(--color-success);
    background: color-mix(in srgb, var(--color-success) 70%, var(--color-text-primary));
    box-shadow: 0 7px 17px color-mix(in srgb, var(--color-success) 16%, transparent);
}
.company-articles-button--upload:hover {
    background: color-mix(in srgb, var(--color-success) 70%, var(--color-text-primary));
}
.company-articles-toolbar {
    display: grid;
    grid-template-columns: minmax(330px, 1fr) minmax(220px, 300px) auto;
    align-items: center;
    gap: 22px;
    margin-bottom: 16px;
    border: 1px solid var(--color-line);
    border-radius: 15px;
    padding: 14px 17px;
    background: var(--color-white);
    box-shadow: var(--shadow-card-soft);
}
.company-articles-period {
    display: flex;
    align-items: center;
    gap: 12px;
}
.company-articles-period__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--color-primary) 8%, var(--color-white));
    color: var(--color-primary);
    font-size: 18px;
}
.company-articles-period div {
    display: grid;
    gap: 1px;
}
.company-articles-period div span {
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 700;
}
.company-articles-period strong {
    font-size: 17px;
}
.company-articles-month-picker {
    display: grid;
    min-width: 0;
    align-items: center;
}
.company-articles-month-picker :is(input, select) {
    height: var(--filter-control-height);
    min-height: var(--filter-control-height);
    box-sizing: border-box;
}
.company-articles-period-navigation {
    display: grid;
    width: fit-content;
    max-width: 100%;
    grid-template-columns: var(--filter-control-height) auto var(--filter-control-height);
    align-items: center;
    gap: 12px;
}
.company-articles-period-navigation > :is(a, span) {
    display: grid;
    width: var(--filter-control-height);
    height: var(--filter-control-height);
    place-items: center;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--filter-control-radius);
    padding: 0;
    background: var(--color-white);
    color: var(--color-text-muted);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.company-articles-period-navigation > a:hover, .company-articles-period-navigation > a:focus-visible {
    border-color: var(--color-primary);
    outline: none;
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.company-articles-period-navigation > .is-disabled {
    border-color: var(--color-line);
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted-2);
    cursor: not-allowed;
    opacity: 0.58;
}
.company-articles-month-picker input, .company-articles-month-picker select, .company-articles-field input, .company-articles-field textarea, .company-articles-field select, .company-articles-dialog__body input, .company-articles-dialog__body select, .company-articles-option-row input, .company-articles-option-add input {
    width: 100%;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--filter-control-radius);
    padding: 9px 11px;
    background: var(--color-white);
    color: var(--color-text-primary);
    font: inherit;
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}
.company-articles-month-picker input:focus, .company-articles-month-picker select:focus, .company-articles-field input:focus, .company-articles-field textarea:focus, .company-articles-field select:focus, .company-articles-dialog__body input:focus, .company-articles-dialog__body select:focus, .company-articles-option-row input:focus, .company-articles-option-add input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 9%, transparent);
}
.company-articles-summary {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.company-articles-summary :is(a, button) {
    display: inline-flex;
    min-height: var(--filter-control-height);
    align-items: center;
    gap: 7px;
    border: 1px solid var(--color-line-strong);
    border-radius: 9px;
    padding: 7px 20px;
    background: var(--color-white);
    color: var(--color-text-muted);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}
.company-articles-summary :is(a, button):hover, .company-articles-summary button.is-active {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.company-articles-summary .company-articles-summary__delete {
    color: var(--color-primary);
}
.company-articles-status-summary {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-height: 0;
    margin-bottom: 0;
    overflow: hidden;
    padding: 0 2px;
    opacity: 0;
    transform: translateY(-12px);
    transform-origin: top;
    visibility: hidden;
    transition:
        max-height 0.48s cubic-bezier(0.2, 0.8, 0.2, 1),
        margin-bottom 0.35s ease,
        padding 0.35s ease,
        opacity 0.28s ease,
        transform 0.38s ease,
        visibility 0s linear 0.48s;
}
.company-articles-status-summary.is-open {
    max-height: 1600px;
    margin-bottom: 16px;
    padding: 2px;
    overflow: visible;
    opacity: 1;
    transform: none;
    visibility: visible;
    transition-delay: 0s;
}
.company-articles-status-summary.is-open article {
    animation: company-articles-summary-card-in 0.42s both cubic-bezier(0.2, 0.8, 0.2, 1);
}
.company-articles-status-summary.is-open article:nth-child(2) {
    animation-delay: 0.04s;
}
.company-articles-status-summary.is-open article:nth-child(3) {
    animation-delay: 0.07s;
}
.company-articles-status-summary.is-open article:nth-child(4) {
    animation-delay: 0.1s;
}
.company-articles-status-summary.is-open article:nth-child(5) {
    animation-delay: 0.13s;
}
.company-articles-status-summary.is-open article:nth-child(6) {
    animation-delay: 0.16s;
}
.company-articles-status-summary.is-open article:nth-child(7) {
    animation-delay: 0.19s;
}
.company-articles-status-summary.is-open article:nth-child(8) {
    animation-delay: 0.22s;
}
.company-articles-status-summary.is-open article:nth-child(9) {
    animation-delay: 0.25s;
}
@keyframes company-articles-summary-card-in {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.company-articles-status-summary article {
    min-width: 0;
    border: 1px solid var(--color-line-strong);
    border-radius: 16px;
    padding: 22px 20px;
    background: var(--color-white);
    box-shadow: var(--shadow-card-soft);
}
.company-articles-status-summary .company-articles-status-summary__total {
    position: relative;
    display: grid;
    min-width: 0;
    grid-row: span 3;
    align-content: center;
    gap: 28px;
    isolation: isolate;
    overflow: hidden;
    padding: 30px;
    background: linear-gradient(135deg, var(--color-text-primary), color-mix(in srgb, var(--color-text-primary) 84%, var(--color-white)));
    color: var(--color-white);
}
.company-articles-status-summary .company-articles-status-summary__total::before {
    position: absolute;
    z-index: -1;
    top: -72px;
    right: -52px;
    width: 185px;
    height: 185px;
    border: 28px solid color-mix(in srgb, var(--color-white) 5%, transparent);
    border-radius: 50%;
    content: "";
}
.company-articles-status-summary .company-articles-status-summary__total::after {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    width: 72%;
    height: 58%;
    background:
        linear-gradient(135deg, transparent 48%, color-mix(in srgb, var(--color-white) 4%, transparent) 49%, color-mix(in srgb, var(--color-white) 4%, transparent) 51%, transparent 52%),
        linear-gradient(45deg, transparent 48%, color-mix(in srgb, var(--color-white) 3%, transparent) 49%, color-mix(in srgb, var(--color-white) 3%, transparent) 51%, transparent 52%);
    background-size: 34px 34px;
    content: "";
    mask-image: linear-gradient(to left, var(--color-text-primary), transparent);
}
.company-articles-status-summary__total > span {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--color-text-muted-2) 13%, transparent);
    font-size: 21px;
}
.company-articles-status-summary article > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px 10px;
    height: 100%;
}
.company-articles-status-summary small {
    overflow: hidden;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.company-articles-status-summary strong {
    grid-row: 1 / 3;
    grid-column: 2;
    color: var(--color-text-primary);
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
}
.company-articles-status-summary em {
    color: var(--color-text-muted);
    font-size: 12px;
    font-style: normal;
    white-space: nowrap;
}
.company-articles-status-summary__total small, .company-articles-status-summary__total em {
    color: color-mix(in srgb, var(--color-white) 78%, transparent);
}
.company-articles-status-summary__total strong {
    color: var(--color-white);
}
.company-articles-status-summary__assigned {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 7px;
    margin: 15px 0 0;
    border-top: 1px solid color-mix(in srgb, var(--color-white) 13%, transparent);
    padding-top: 14px;
    color: color-mix(in srgb, var(--color-white) 78%, transparent);
    font-size: 11px;
    line-height: 1.45;
}
.company-articles-status-summary__assigned i {
    color: var(--color-white);
}
.company-articles-status-summary .company-articles-status-summary__item {
    position: relative;
    padding-left: 40px;
}
.company-articles-status-summary__dot {
    position: absolute;
    top: 29px;
    left: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--progress-scale-color, var(--color-text-muted-2));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--progress-scale-color, var(--color-text-muted-2)) 12%, transparent);
}
.company-videos-category-summary {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    padding: 12px;
    background: var(--color-white);
}
.company-videos-category-summary form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(220px, 280px);
    gap: 10px;
}
.company-videos-summary-search {
    display: flex;
    min-width: 0;
    height: var(--filter-control-height);
    min-height: var(--filter-control-height);
    align-items: center;
    gap: 10px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--filter-control-radius);
    padding: 0 14px;
    background: var(--color-white);
    color: var(--color-text-muted);
}
.company-videos-summary-search:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.company-videos-summary-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text-primary);
    font: inherit;
    font-size: 13px;
}
.company-videos-summary-search input::placeholder {
    color: var(--color-text-muted-2);
}
.company-videos-summary-select .company-videos-choice-trigger {
    min-height: var(--filter-control-height);
    background: var(--color-white);
}
.company-videos-choice-panel--category .task-inline-choice-option > .fa-video {
    color: var(--color-text-muted);
}
.company-videos-choice-panel--category .task-inline-choice-option.is-selected > .fa-video {
    color: var(--color-primary);
}
.company-videos-status-summary article {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.company-videos-status-summary article:hover, .company-videos-status-summary article.is-active {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--color-primary) 10%, transparent);
    transform: translateY(-2px);
}
.company-videos-summary-card-link {
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: inherit;
}
.company-videos-summary-card-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.company-articles-bulk-bar {
    display: flex;
    min-height: 43px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--color-line);
    padding: 15px;
    background: var(--color-bg-surface-soft);
}
.company-articles-bulk-bar > div {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--color-text-muted);
    font-size: 11px;
}
.company-articles-bulk-bar > div i {
    color: var(--color-text-muted-2);
}
.company-articles-bulk-bar > button {
    display: inline-flex;
    min-height: 29px;
    align-items: center;
    gap: 6px;
    border: 1px solid color-mix(in srgb, var(--color-primary) 15%, var(--color-white));
    border-radius: 8px;
    padding: 4px 9px;
    background: var(--color-primary-light);
    color: var(--color-error);
    font: inherit;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
}
.company-articles-bulk-bar > button:hover {
    background: color-mix(in srgb, var(--color-primary) 8%, var(--color-white));
}
.company-articles-bulk-bar > button:disabled {
    border-color: var(--color-text-muted-2);
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted-2);
    cursor: not-allowed;
}
.main-content .company-articles-table .company-articles-heading--center, .main-content .company-articles-table .company-articles-cell--center {
    text-align: center;
}
.main-content .company-articles-table th, .main-content .company-articles-table td {
    padding-right: 8px;
    padding-left: 8px;
}
.main-content .company-articles-table .table-actions-heading, .main-content .company-articles-table .table-actions-cell {
    width: 96px;
    min-width: 96px;
    padding-right: 10px !important;
    padding-left: 6px !important;
}
.main-content .company-articles-table .company-articles-member-cell .company-articles-inline-editor {
    justify-content: center;
}
.main-content .company-articles-table tbody tr {
    cursor: pointer;
}
.main-content .company-articles-table tbody tr.is-selected {
    background: var(--color-primary-light);
}
.main-content .company-articles-table tbody tr:has(:focus-visible) {
    background: var(--color-bg-surface-soft);
}
.main-content .company-articles-table tbody.is-sorting .company-articles-row {
    user-select: none;
}
.main-content .company-articles-table .company-articles-row.is-dragging {
    background: var(--color-primary-light);
    opacity: 0.45;
}
.main-content .company-articles-table .company-articles-row.is-chosen {
    box-shadow: inset 3px 0 0 var(--color-primary);
}
.company-articles-drag-cell {
    width: 74px;
    min-width: 74px;
    text-align: center;
}
.company-articles-select-drag {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}
.company-articles-drag-handle, .company-articles-drag-disabled {
    display: inline-grid;
    place-items: center;
    border: none;
    border-radius: 8px;
    padding: 0;
    color: var(--color-text-secondary);
    font-size: 12px;
}
.company-articles-drag-handle {
    cursor: grab;
    touch-action: none;
    user-select: none;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.company-articles-drag-handle > i {
    pointer-events: none;
}
.company-articles-drag-handle:hover, .company-articles-drag-handle:focus-visible {
    border-color: var(--color-primary);
    outline: none;
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.company-articles-drag-handle:active {
    cursor: grabbing;
}
.company-articles-drag-disabled {
    border-color: var(--color-line);
    background: var(--color-bg-surface-soft);
}
.company-articles-table-title, .company-articles-table-keyword {
    display: -webkit-box;
    overflow: hidden;
    color: var(--color-text-primary);
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
}
.company-articles-table-title.is-empty, .company-articles-table-keyword.is-empty {
    color: var(--color-text-muted-2);
}
.main-content .company-articles-table .company-articles-sequence {
    color: var(--color-text-muted-2);
    font-weight: 700;
    text-align: center;
}
.company-articles-check {
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    cursor: pointer;
}
.company-articles-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.company-articles-check span {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border: 1.5px solid var(--color-line-strong);
    border-radius: 5px;
    background: var(--color-white);
    transition: 0.15s ease;
}
.company-articles-check input:checked + span, .company-articles-check input:indeterminate + span {
    border-color: var(--color-primary);
    background: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.company-articles-check input:checked + span::after {
    color: var(--color-white);
    font-family: "Font Awesome 6 Free";
    font-size: 9px;
    font-weight: 900;
    content: "\f00c";
}
.company-articles-check input:indeterminate + span::after {
    width: 8px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-white);
    content: "";
}
.company-articles-inline {
    width: 100%;
    min-width: 0;
    min-height: 32px;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 4px 6px;
    background: transparent;
    color: var(--color-text-primary);
    font: inherit;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    text-overflow: ellipsis;
}
.company-articles-inline:hover {
    border-color: var(--color-line-strong);
    background-color: var(--color-white);
}
.company-articles-inline:focus {
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.company-articles-inline--number {
    width: 48px;
    padding-inline: 2px;
    text-align: center;
    font-weight: 700;
    -moz-appearance: textfield;
}
.company-articles-inline--number::-webkit-inner-spin-button, .company-articles-inline--number::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}
.company-articles-inline--date {
    width: 128px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.company-articles-inline.is-saving {
    opacity: 0.55;
}
.company-articles-inline.is-saved {
    border-color: var(--color-success);
    background: var(--color-success-light);
}
.company-articles-inline.is-error {
    border-color: var(--color-error);
    background: var(--color-error-light);
}
.company-articles-select-edit, .company-articles-service-select {
    display: flex;
    align-items: center;
    gap: 3px;
}
.company-articles-select-edit > button, .company-articles-service-select > button {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--color-text-muted-2);
    cursor: pointer;
    opacity: 0;
    transition:
        opacity 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease;
}
.company-articles-row:hover .company-articles-select-edit > button, .company-articles-select-edit > button:focus-visible, .company-articles-service-select > button {
    opacity: 1;
}
.company-articles-select-edit > button:hover, .company-articles-service-select > button:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.company-articles-inline-editor {
    display: flex;
    min-width: 0;
    align-items: center;
}
.company-articles-inline-editor--center {
    justify-content: center;
}
.company-articles-inline-value {
    display: inline-flex;
    max-width: 100%;
    min-width: 0;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--color-text-primary);
    font: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition:
        color 0.16s ease,
        background-color 0.16s ease,
        border-color 0.16s ease;
}
.company-articles-inline-value--strong {
    justify-content: center;
    font-weight: 700;
}
.company-articles-inline-value.is-empty {
    color: var(--color-text-muted-2);
}
.company-articles-inline-editor > .company-articles-inline-control {
    display: none;
    min-width: 0;
}
.company-articles-inline-editor.is-editing > [data-inline-display] {
    display: none;
}
.company-articles-inline-editor.is-editing > .company-articles-inline-control {
    display: flex;
    width: 100%;
}
.company-articles-inline-editor--center.is-editing > .company-articles-inline-control {
    justify-content: center;
}
.company-articles-inline-editor.is-editing .company-articles-inline {
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.company-articles-member-picker {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}
.company-articles-member-avatar {
    width: 100%;
    height: 100%;
    flex: 0 0 100%;
    border-radius: 50%;
    object-fit: cover;
}
.company-articles-member-avatar[hidden] {
    display: none;
}
.company-articles-member-picker .company-articles-inline {
    flex: 1 1 auto;
}
.company-articles-member-value {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    height: 34px;
    justify-content: center;
    border-radius: 50%;
}
.company-articles-member-value:hover, .company-articles-member-value:focus-visible, .company-articles-member-value.is-editing {
    border-color: var(--color-primary);
    border-radius: 50%;
}
.company-articles-member-empty {
    color: var(--color-text-muted-2);
    font-size: 13px;
}
.company-articles-member-empty[hidden] {
    display: none;
}
.company-articles-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.company-articles-date-value {
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.company-articles-inline-control > .thai-date-field {
    width: 140px;
    max-width: 140px;
}
.company-articles-choice-panel {
    z-index: 10040;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 260px;
    transform-origin: top left;
    animation: company-articles-choice-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.company-articles-choice-panel.is-member-picker {
    width: 300px;
    max-height: min(390px, calc(100vh - 24px));
}
.company-articles-choice-panel .task-inline-choice-dot {
    background: var(--progress-scale-color, var(--color-text-muted));
    color: var(--progress-scale-color, var(--color-text-muted));
}
.company-articles-choice-option.is-member {
    grid-template-columns: 30px minmax(0, 1fr) 18px;
    min-height: 44px;
}
.company-articles-choice-placeholder {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted-2);
}
.company-articles-choice-manage {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 1px;
    border: 0;
    border-top: 1px solid var(--color-line);
    padding: 7px 8px 1px;
    background: var(--color-white);
    color: var(--color-text-muted);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.company-articles-choice-manage:hover, .company-articles-choice-manage:focus-visible {
    color: var(--color-primary);
    outline: none;
}
.company-articles-row.is-inline-saving {
    opacity: 0.58;
    pointer-events: none;
}
.company-articles-row.is-details-updated > td {
    animation: company-articles-row-updated 1.8s ease;
}
@keyframes company-articles-row-updated {
    20% {
        background: var(--color-success-light);
    }
}
@keyframes company-articles-choice-in {
    from {
        opacity: 0;
        transform: translateY(-5px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.company-articles-cover-cell {
    display: grid;
    width: fit-content;
    margin: 0 auto;
    grid-template-columns: 50px 30px;
    align-items: center;
    gap: 7px;
}
.company-articles-cover-thumb {
    width: 50px;
    height: 50px;
    overflow: hidden;
    border: 1px solid var(--color-line-strong);
    border-radius: 9px;
    padding: 0;
    background: var(--color-bg-surface-soft);
    cursor: pointer;
}
.company-articles-cover-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.company-articles-cover-cell__actions {
    display: grid;
    gap: 4px;
}
.company-articles-cover-cell__actions :is(a, button) {
    display: grid;
    width: 28px;
    height: 23px;
    place-items: center;
    border: 1px solid var(--color-line-strong);
    border-radius: 6px;
    padding: 0;
    background: var(--color-white);
    color: var(--color-text-muted);
    font-size: 10px;
    text-decoration: none;
    cursor: pointer;
}
.company-articles-cover-cell__actions :is(a, button):hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.company-articles-cell-button {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--color-line-strong);
    border-radius: 8px;
    padding: 4px 8px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    font: inherit;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}
.company-articles-cell-button:hover {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 8%, var(--color-white));
    color: var(--color-primary);
}
.company-articles-cell-button.is-empty {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-error);
}
.company-articles-cell-button.is-empty:hover {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 8%, var(--color-white));
}
.company-articles-cell-button.is-complete {
    border-color: var(--color-success);
    background: var(--color-success-light);
    color: var(--color-success);
}
.company-articles-cell-button.is-complete:hover {
    border-color: var(--color-success);
    background: color-mix(in srgb, var(--color-success) 8%, var(--color-white));
    color: var(--color-success);
}
.company-articles-cell-button--cover.is-empty {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.company-articles-cell-button--cover.is-empty:hover {
    border-color: var(--color-primary-hover);
    background: var(--color-primary);
    color: var(--color-white);
}
.company-articles-status-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.company-articles-status-cell .company-articles-inline-editor {
    flex: 0 0 auto;
}
.company-articles-status-cell .company-articles-select-edit {
    width: 100%;
    justify-content: center;
}
.company-articles-status-cell .company-articles-status-value, .company-articles-status-cell .company-articles-inline {
    border-color: var(--progress-scale-color, var(--color-text-muted-2));
    border-radius: 999px;
    padding: 5px 12px;
    background: color-mix(in srgb, var(--progress-scale-color, var(--color-text-muted-2)) 8%, var(--color-white));
    color: var(--progress-scale-color, var(--color-text-muted));
    font-size: 11px;
    font-weight: 400;
    text-align: center;
}
.company-articles-status-cell .company-articles-status-value {
    justify-content: center;
}
.company-articles-progress {
    display: grid;
    width: 100%;
    max-width: 108px;
    margin: 0 auto;
    grid-template-columns: 1fr 32px;
    align-items: center;
    gap: 7px;
}
.company-articles-progress span {
    position: relative;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--color-line-strong);
}
.company-articles-progress span::after {
    position: absolute;
    inset: 0;
    width: var(--progress);
    border-radius: inherit;
    background: var(--progress-scale-color, var(--color-text-muted-2));
    content: "";
    transition: width 0.3s ease;
}
.company-articles-progress b {
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.company-articles-link-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.company-articles-link-icon {
    display: inline-grid;
    position: relative;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-success);
    border-radius: 8px;
    padding: 0;
    background: var(--color-success-light);
    color: var(--color-success);
    font: inherit;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.company-articles-link-icon.is-complete:hover, .company-articles-link-icon.is-complete:focus-visible {
    background: color-mix(in srgb, var(--color-success) 8%, var(--color-white));
    color: var(--color-success);
    outline: none;
}
.company-articles-link-icon.is-empty {
    border-color: var(--color-error);
    background: var(--color-error-light);
    color: var(--color-error);
}
.company-articles-link-icon__add {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
    line-height: 1;
    pointer-events: none;
    transform: translate(-50%, -50%);
    visibility: hidden;
}
.company-articles-link-icon.is-empty:hover, .company-articles-link-icon.is-empty:focus-visible {
    border-color: var(--color-primary-hover);
    background: var(--color-primary);
    color: var(--color-white);
    outline: none;
}
.company-articles-link-icon.is-empty:hover .company-articles-link-icon__default, .company-articles-link-icon.is-empty:focus-visible .company-articles-link-icon__default {
    opacity: 0;
    visibility: hidden;
}
.company-articles-link-icon.is-empty:hover .company-articles-link-icon__add, .company-articles-link-icon.is-empty:focus-visible .company-articles-link-icon__add {
    opacity: 1;
    visibility: visible;
}
.main-content .company-articles-actions {
    justify-content: flex-end;
}
.main-content .company-articles-action {
    padding: 0;
}
.main-content .company-articles-table .company-articles-empty-table {
    padding: 50px;
    color: var(--color-text-muted-2);
    text-align: center;
}
.company-articles-table-footer {
    display: flex;
    min-height: 45px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid var(--color-line);
    padding: 9px 15px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted-2);
    font-size: 11px;
}
.company-articles-table-footer i {
    margin-right: 5px;
    color: var(--color-text-muted-2);
}
#inlineSaveStatus {
    color: #168252;
}
.company-articles-empty {
    display: grid;
    min-height: 390px;
    place-items: center;
    align-content: center;
    border: 1px dashed var(--color-line-strong);
    border-radius: 16px;
    padding: 40px;
    background: var(--color-white);
    text-align: center;
}
.company-articles-empty > span {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border-radius: 20px;
    background: color-mix(in srgb, var(--color-primary) 8%, var(--color-white));
    color: var(--color-primary);
    font-size: 28px;
}
.company-articles-empty h2 {
    margin: 17px 0 3px;
    font-size: 20px;
}
.company-articles-empty p {
    margin: 0 0 18px;
    color: var(--color-text-muted);
}
.company-articles-setup-warning {
    display: grid;
    max-width: 650px;
    min-height: 390px;
    margin: 30px auto;
    place-items: center;
    align-content: center;
    border: 1px solid color-mix(in srgb, var(--color-primary) 15%, var(--color-white));
    border-radius: 18px;
    padding: 42px;
    background: var(--color-white);
    box-shadow: var(--shadow-card);
    text-align: center;
}
.company-articles-setup-warning__icon {
    display: grid;
    width: 68px;
    height: 68px;
    margin-bottom: 15px;
    place-items: center;
    border-radius: 20px;
    background: color-mix(in srgb, var(--color-primary) 8%, var(--color-white));
    color: var(--color-primary);
    font-size: 27px;
}
.company-articles-setup-warning h1 {
    margin: 0 0 7px;
    font-size: 24px;
}
.company-articles-setup-warning > p:not(.company-articles-eyebrow) {
    margin: 0 0 18px;
    color: var(--color-text-muted);
}
.company-articles-setup-warning > div {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 11px;
    padding: 12px 15px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    text-align: left;
}
.company-articles-setup-warning ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}
.company-articles-setup-warning li {
    border: 1px solid var(--color-line);
    border-radius: 7px;
    padding: 4px 7px;
    background: var(--color-white);
}
body.company-articles-layer-open {
    overflow: hidden;
}
.company-articles-dialog[aria-hidden="true"], .company-articles-offcanvas[aria-hidden="true"] {
    display: none;
}
.company-articles-dialog, .company-articles-offcanvas {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 2100;
    visibility: hidden;
    opacity: 0;
    transition:
        visibility 0.2s,
        opacity 0.2s ease;
}
.select-option-manager-dialog {
    z-index: 22000;
}
.company-articles-dialog.is-open, .company-articles-offcanvas.is-open {
    visibility: visible;
    opacity: 1;
}
.company-articles-dialog__backdrop, .company-articles-offcanvas__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: color-mix(in srgb, var(--color-text-primary) 48%, transparent);
    backdrop-filter: blur(2px);
    cursor: default;
}
.company-articles-dialog {
    display: grid;
    place-items: center;
    padding: 20px;
}
.company-articles-dialog__panel {
    position: relative;
    width: min(510px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow: auto;
    border-radius: 17px;
    background: var(--color-white);
    box-shadow: 0 30px 70px color-mix(in srgb, var(--color-text-primary) 24%, transparent);
    transform: translateY(10px) scale(0.985);
    transition: transform 0.2s ease;
}
.company-articles-dialog.is-open .company-articles-dialog__panel {
    transform: none;
}
.company-articles-dialog__panel--image {
    width: min(610px, 100%);
}
.company-articles-dialog__panel--options {
    width: min(650px, 100%);
}
.select-option-manager-dialog .company-articles-dialog__panel {
    display: flex;
    flex-direction: column;
    width: min(1120px, 100%);
    height: min(88vh, 900px);
    max-height: calc(100vh - 40px);
    overflow: hidden;
}
.select-option-manager-dialog__frame {
    display: block;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    border: 0;
    background: var(--color-bg-surface-soft);
}
.select-option-manager-dialog__loading {
    display: grid;
    flex: 1 1 auto;
    place-items: center;
    color: var(--color-text-muted);
    font-size: 14px;
}
.select-option-manager-dialog__header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.select-option-manager-dialog__header-actions > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--color-line-strong);
    border-radius: 8px;
    color: var(--color-text-secondary);
    font-size: 12px;
    text-decoration: none;
}
.select-option-manager-dialog__header-actions > a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.select-option-manager-dialog__header-actions > button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    cursor: pointer;
}
.select-option-manager-dialog__frame[hidden], .select-option-manager-dialog__loading[hidden] {
    display: none;
}
.company-articles-dialog__panel > header, .company-articles-offcanvas__panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--color-line);
    padding: 18px 20px;
    background: var(--color-white);
}
.company-articles-dialog__panel > header span, .company-articles-offcanvas__panel > header span {
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 900;
}
.company-articles-dialog__panel > header h2, .company-articles-offcanvas__panel > header h2 {
    margin: 2px 0 0;
    color: var(--color-text-primary);
    font-size: 20px;
    line-height: 1.2;
}
.company-articles-dialog__panel > header > button, .company-articles-offcanvas__panel > header > button {
    display: grid;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    cursor: pointer;
}
.company-articles-dialog__body {
    padding: 20px;
}
.company-articles-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.company-articles-dialog__body :where(label), .company-articles-field {
    display: grid;
    gap: 6px;
}
.company-articles-dialog__body :where(label) > span, .company-articles-field > span {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 800;
}
.company-articles-dialog__body :where(label) > span, .company-articles-field > span {
    font-weight: 600;
}
.company-articles-month-create {
    display: grid;
    gap: 7px;
}
.company-articles-month-create > .thai-date-field, .company-articles-month-picker > .thai-date-field {
    width: 100%;
    min-height: var(--filter-control-height);
    --thai-date-field-radius: var(--filter-control-radius);
}
.company-articles-dialog__hint {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 12px;
}
.company-articles-dialog__panel--excel {
    width: min(640px, calc(100vw - 32px));
}
.company-articles-import-intro {
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--color-line);
    border-radius: 13px;
    padding: 14px;
    background: var(--color-bg-surface-soft);
}
.company-articles-import-intro > span {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 12px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 20px;
}
.company-articles-import-intro > div {
    min-width: 0;
}
.company-articles-import-intro strong {
    color: var(--color-text-primary);
    font-size: 15px;
}
.company-articles-import-intro p {
    margin: 3px 0 0;
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.5;
}
.company-articles-import-steps {
    display: grid;
    gap: 9px;
    margin: 16px 0;
    padding-left: 24px;
    color: var(--color-text-secondary);
    font-size: 12px;
    line-height: 1.55;
}
.company-articles-import-steps a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}
.company-articles-import-picker {
    position: relative;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 2px 11px;
    min-height: 82px;
    border: 1.5px dashed var(--color-line-strong);
    border-radius: 13px;
    padding: 14px;
    background: var(--color-white);
    cursor: pointer;
    transition: 0.18s ease;
}
.company-articles-import-picker:hover, .company-articles-import-picker:focus-within, .company-articles-import-picker.is-dragging {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.company-articles-import-picker.is-dragging {
    transform: scale(0.995);
}
.company-articles-import-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.company-articles-dialog__body .company-articles-import-picker > span {
    display: grid;
    width: 42px;
    height: 42px;
    grid-row: 1 / 3;
    place-items: center;
    border-radius: 11px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 17px;
}
.company-articles-import-picker strong {
    overflow: hidden;
    color: var(--color-text-primary);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.company-articles-import-picker small {
    color: var(--color-text-muted);
    font-size: 11px;
}
.company-articles-import-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 11px;
    line-height: 1.5;
}
.company-articles-import-errors {
    max-height: 180px;
    margin-top: 12px;
    overflow-y: auto;
    border: 1px solid var(--color-primary);
    border-radius: 10px;
    padding: 11px 13px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 11px;
    line-height: 1.5;
}
.company-articles-import-errors strong {
    display: block;
    margin-bottom: 5px;
}
.company-articles-import-errors ul {
    margin: 0;
    padding-left: 18px;
}
.company-articles-dialog__footer {
    margin-top: 18px;
}
.company-articles-offcanvas__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(660px, 96vw);
    height: 100%;
    overflow-y: auto;
    background: var(--color-white);
    box-shadow: -25px 0 60px color-mix(in srgb, var(--color-text-primary) 20%, transparent);
    transform: translateX(102%);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.company-articles-offcanvas__panel--details {
    width: min(800px, 96vw);
}
.company-articles-offcanvas__panel--overview {
    width: min(760px, 96vw);
    background: var(--color-bg-surface-soft);
}
.company-articles-offcanvas.is-open .company-articles-offcanvas__panel {
    transform: none;
}
.company-articles-offcanvas__panel > header {
    position: sticky;
    top: 0;
    z-index: 3;
    gap: 8px;
    box-shadow: 0 1px 0 var(--color-line);
}
.company-articles-offcanvas__panel > header > div:first-child {
    margin-right: auto;
}
.company-articles-offcanvas__panel > header > .company-articles-overview-edit-toggle {
    display: inline-flex;
    width: auto;
    min-width: 0;
    height: 35px;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.company-articles-offcanvas__panel > header > .company-articles-overview-edit-toggle[hidden] {
    display: none;
}
.company-articles-offcanvas__panel > header > .company-articles-overview-edit-toggle span {
    color: inherit;
    font-size: 11px;
    font-weight: 700;
}
.company-articles-offcanvas__panel > header > .company-articles-overview-edit-toggle.is-cancel {
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
}
.company-articles-offcanvas__body {
    display: grid;
    gap: 15px;
    padding: 20px 22px 28px;
}
.company-articles-field textarea {
    min-height: 84px;
    resize: vertical;
    line-height: 1.55;
}
.company-articles-field--wide {
    grid-column: 1 / -1;
}
.company-articles-offcanvas__footer {
    position: sticky;
    bottom: -28px;
    margin: 7px -22px -28px;
    border-top: 1px solid var(--color-line);
    padding: 14px 22px;
    background: color-mix(in srgb, var(--color-white) 96%, transparent);
}
.company-articles-offcanvas__panel--details .company-articles-offcanvas__body {
    gap: 12px;
    background: var(--color-bg-surface-soft);
}
.company-articles-offcanvas__panel--details .company-articles-field {
    border: 1px solid var(--color-line);
    border-radius: 12px;
    padding: 12px;
    background: var(--color-white);
}
.company-articles-offcanvas__panel--details .company-articles-field:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 4.5%, transparent);
}
.company-articles-offcanvas__panel--details .company-articles-field input, .company-articles-offcanvas__panel--details .company-articles-field textarea, .company-articles-offcanvas__panel--details .company-articles-field select {
    border-color: var(--color-line-strong);
    background: var(--color-bg-surface-soft);
}
.company-articles-offcanvas__panel--details .company-articles-form-grid {
    align-items: stretch;
}
.company-articles-offcanvas__panel--details .company-articles-form-grid > .company-articles-field {
    align-content: start;
}
.company-articles-offcanvas__panel--details .company-articles-form-grid textarea {
    min-height: 84px;
    height: 84px;
}
.company-articles-service-select {
    width: 100%;
    gap: 8px;
}
.company-articles-service-select > select {
    min-width: 0;
    min-height: 42px;
    flex: 1 1 auto;
}
.company-articles-service-select > .task-enhanced-select {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
}
.company-articles-service-select > .company-articles-form-choice {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
}
.company-articles-service-select .task-enhanced-select__trigger {
    width: 100%;
    min-height: 42px;
}
.company-articles-service-select > button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid var(--color-line-strong);
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
}
.company-articles-cover-preview {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 20px;
    overflow: hidden;
    border: 1.5px dashed var(--color-line-strong);
    border-radius: 13px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted-2);
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        transform 0.18s ease;
}
.company-articles-cover-preview.is-dragging {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
    transform: scale(0.995);
}
.company-articles-cover-preview i {
    font-size: 35px;
}
.company-articles-cover-preview img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}
.company-articles-cover-preview.is-view-only {
    border-style: solid;
    cursor: zoom-out;
}
.company-articles-file-picker {
    display: flex;
    margin-top: 13px;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--color-line-strong);
    border-radius: 10px;
    padding: 11px 13px;
    color: var(--color-text-muted);
    cursor: pointer;
}
.company-articles-file-picker input {
    display: none;
}
.company-articles-cover-actions {
    display: flex;
    align-items: center;
}
.company-articles-cover-actions > span {
    flex: 1 1 auto;
}
.company-articles-cover-actions > [hidden], .company-articles-file-picker[hidden], .company-articles-editor-cover__controls > [hidden], .company-articles-overview-editor-cover__actions > [hidden] {
    display: none;
}
.company-articles-editor-cover {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    padding: 12px;
    background: var(--color-white);
}
.company-articles-editor-cover__preview {
    display: grid;
    width: 150px;
    aspect-ratio: 1;
    place-items: center;
    align-content: center;
    gap: 7px;
    overflow: hidden;
    border: 1px dashed var(--color-line-strong);
    border-radius: 10px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted-2);
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.company-articles-editor-cover__preview small {
    color: inherit;
    font-size: 11px;
}
.company-articles-editor-cover__preview.is-dragging {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
    transform: scale(0.98);
}
.company-articles-editor-cover__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.company-articles-editor-cover__controls {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    gap: 8px;
}
.company-articles-editor-cover__controls strong, .company-articles-editor-cover__controls > span {
    width: 100%;
}
.company-articles-editor-cover__controls > span {
    color: var(--color-text-muted);
    font-size: 11px;
}
.company-articles-editor-cover__controls label input {
    display: none;
}
.company-articles-form-choice {
    position: relative;
    width: 100%;
    min-width: 0;
}
.company-articles-form-choice__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    opacity: 0;
    pointer-events: none;
}
.company-articles-form-choice__trigger {
    display: grid;
    width: 100%;
    min-height: 42px;
    grid-template-columns: 10px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--color-line-strong);
    border-radius: 9px;
    padding: 7px 11px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-primary);
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}
.company-articles-form-choice__trigger:hover, .company-articles-form-choice__trigger:focus-visible, .company-articles-form-choice__trigger.is-editing {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.company-articles-form-choice__trigger > span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.company-articles-form-choice__trigger > i:last-child {
    color: var(--color-text-muted-2);
    font-size: 9px;
}
.company-articles-form-choice.is-member .company-articles-form-choice__trigger {
    grid-template-columns: 30px minmax(0, 1fr) 12px;
}
.company-articles-form-choice.is-member .company-articles-choice-placeholder {
    width: 30px;
    height: 30px;
}
.company-articles-form-choice.is-member .task-inline-member-avatar {
    width: 30px;
    height: 30px;
}
.company-articles-overview-editor {
    display: grid;
    gap: 12px;
}
.company-articles-overview-editor__hero {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    border: 1px solid var(--color-line);
    border-radius: 16px;
    padding: 14px;
    background: linear-gradient(135deg, var(--color-white) 40%, color-mix(in srgb, var(--color-primary) 8%, var(--color-white)));
    box-shadow: var(--shadow-card-soft);
}
.company-articles-overview-editor-cover {
    position: relative;
    min-height: 180px;
}
.company-articles-overview-editor-cover .company-articles-editor-cover__preview {
    width: 100%;
    height: 100%;
    min-height: 180px;
    border-style: solid;
}
.company-articles-overview-editor-cover__actions {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: flex;
    gap: 5px;
}
.company-articles-overview-editor-cover__actions :is(label, button) {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--color-line-strong);
    border-radius: 8px;
    padding: 0;
    background: color-mix(in srgb, var(--color-white) 90%, transparent);
    color: var(--color-primary);
    cursor: pointer;
}
.company-articles-overview-editor-cover__actions label input {
    display: none;
}
.company-articles-overview-editor__hero-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 13px;
}
.company-articles-overview-editor__badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.company-articles-overview-editor__badges label, .company-articles-overview-editor__title {
    display: grid;
    gap: 5px;
}
.company-articles-overview-editor :is(label > span, .company-articles-overview-editor__title > span) {
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 600;
}
.company-articles-overview-editor__title textarea {
    min-height: 74px;
    color: var(--color-text-primary);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
}
.company-articles-overview-meta--editor > label {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 4px 9px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    padding: 11px;
    background: var(--color-white);
}
.company-articles-overview-meta--editor > label > i {
    display: grid;
    width: 30px;
    height: 30px;
    grid-row: 1 / 3;
    place-items: center;
    border-radius: 8px;
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.company-articles-overview-meta--editor > label > :is(input, .company-articles-form-choice) {
    grid-column: 2;
}
.company-articles-overview-meta--editor .company-articles-form-choice__trigger > span:nth-child(2) {
    color: var(--color-text-primary);
    font-size: 13px;
}
.company-articles-overview-section--editor > header {
    background: var(--color-bg-surface-soft);
}
.company-articles-overview-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.company-articles-overview-editor-grid > label, .company-articles-overview-editor-list > label {
    display: grid;
    gap: 6px;
    border-right: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    padding: 13px 14px;
    background: var(--color-white);
}
.company-articles-overview-editor-grid > label:nth-child(2n) {
    border-right: 0;
}
.company-articles-overview-editor-grid > label:nth-last-child(-n + 2) {
    border-bottom: 0;
}
.company-articles-overview-editor-list > label {
    grid-template-columns: 150px minmax(0, 1fr);
    border-right: 0;
}
.company-articles-overview-editor-list > label:last-child {
    border-bottom: 0;
}
.company-articles-overview-editor :is(input, textarea, select) {
    width: 100%;
    border: 1px solid var(--color-line-strong);
    border-radius: 9px;
    padding: 9px 11px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-primary);
    font: inherit;
    font-size: 14px;
}
.company-articles-overview-editor textarea {
    min-height: 84px;
    resize: vertical;
}
.company-articles-overview-editor-rich {
    overflow: hidden;
    margin: 14px;
    border: 1px solid var(--color-line-strong);
    border-radius: 10px;
    background: var(--color-white);
}
.company-articles-overview-editor-rich > .ql-toolbar.ql-snow {
    background: var(--color-bg-surface-soft);
}
.company-articles-overview-editor-rich > .ql-container.ql-snow {
    border: 0 !important;
}
.company-articles-overview-editor-rich .ql-editor {
    min-height: 180px;
    font-size: 14px;
    line-height: 1.65;
}
.company-articles-overview-editor__docs {
    display: grid;
    grid-template-columns: 30px 140px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    padding: 11px;
    background: var(--color-white);
}
.company-articles-overview-editor__docs > i {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.company-articles-offcanvas__panel--overview .company-articles-offcanvas__body {
    gap: 16px;
}
.company-articles-overview-hero {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: stretch;
    gap: 18px;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 16px;
    padding: 14px;
    background: linear-gradient(135deg, var(--color-white) 40%, color-mix(in srgb, var(--color-primary) 8%, var(--color-white)));
    box-shadow: var(--shadow-card-soft);
}
.company-articles-overview-cover {
    min-height: 132px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--color-bg-surface-soft);
}
.company-articles-overview-cover img, .company-articles-overview-cover > span {
    width: 100%;
    height: 100%;
    min-height: 132px;
}
.company-articles-overview-cover img {
    display: block;
    object-fit: cover;
}
.company-articles-overview-cover > span {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    color: var(--color-text-muted-2);
}
.company-articles-overview-cover > span i {
    font-size: 28px;
}
.company-articles-overview-cover > span small {
    font-size: 10px;
}
.company-articles-overview-hero__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}
.company-articles-overview-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.company-articles-overview-badges span {
    border: 1px solid color-mix(in srgb, var(--color-primary) 15%, var(--color-white));
    border-radius: 999px;
    padding: 3px 8px;
    background: color-mix(in srgb, var(--color-primary) 8%, var(--color-white));
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 700;
}
.company-articles-overview-badges span[data-progress] {
    border-color: var(--progress-scale-color, var(--color-text-muted-2));
    background: color-mix(in srgb, var(--progress-scale-color, var(--color-text-muted-2)) 8%, var(--color-white));
    color: var(--progress-scale-color, var(--color-text-muted));
}
.company-articles-overview-hero__content > small {
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 700;
}
.company-articles-overview-hero h3 {
    margin: 4px 0 13px;
    color: var(--color-text-primary);
    font-size: 20px;
    line-height: 1.4;
}
.company-articles-overview-progress {
    display: grid;
    width: min(260px, 100%);
    grid-template-columns: 1fr 36px;
    align-items: center;
    gap: 8px;
}
.company-articles-overview-progress > span {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--color-line-strong);
}
.company-articles-overview-progress > span i {
    display: block;
    width: var(--progress);
    height: 100%;
    border-radius: inherit;
    background: var(--progress-scale-color, var(--color-text-muted-2));
}
.company-articles-overview-progress b {
    color: var(--color-text-muted);
    font-size: 11px;
}
.company-articles-overview-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.company-articles-overview-meta > div {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 1px 9px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    padding: 11px;
    background: var(--color-white);
}
.company-articles-overview-meta > div > i {
    display: grid;
    width: 40px;
    height: 40px;
    grid-row: 1 / 3;
    place-items: center;
    border-radius: 8px;
    background: color-mix(in srgb, var(--color-primary) 8%, var(--color-white));
    color: var(--color-primary);
}
.company-articles-overview-meta span {
    color: var(--color-text-muted-2);
    font-size: 10px;
}
.company-articles-overview-meta b {
    overflow: hidden;
    color: var(--color-text-primary);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.company-articles-overview-member {
    display: flex;
    align-items: center;
    gap: 6px;
}
.company-articles-overview-member img {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 50%;
    object-fit: cover;
}
.company-articles-overview-section {
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    background: var(--color-white);
}
.company-articles-overview-section > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--color-line);
    padding: 12px 14px;
}
.company-articles-overview-section > header small {
    color: var(--color-primary);
    font-size: 9px;
    font-weight: 800;
}
.company-articles-overview-section > header h4 {
    margin: 1px 0 0;
    color: var(--color-text-primary);
    font-size: 14px;
}
.company-articles-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}
.company-articles-overview-field {
    padding: 12px 14px;
    border-right: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}
.company-articles-overview-grid .company-articles-overview-field:nth-child(2n) {
    border-right: 0;
}
.company-articles-overview-grid .company-articles-overview-field:nth-last-child(-n + 2) {
    border-bottom: 0;
}
.company-articles-overview-field dt {
    margin-bottom: 4px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 700;
}
.company-articles-overview-field dd {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.company-articles-overview-field.is-empty dd {
    color: var(--color-text-muted);
}
.company-articles-overview-list {
    display: grid;
    margin: 0;
}
.company-articles-overview-list .company-articles-overview-field {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 15px;
    border-right: 0;
}
.company-articles-overview-list .company-articles-overview-field:last-child {
    border-bottom: 0;
}
.company-articles-overview-rich-text {
    min-height: 62px;
    padding: 14px;
    color: var(--color-text-primary);
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.company-articles-overview-rich-text.is-empty {
    color: var(--color-text-muted);
}
.company-articles-overview-rich-text > :first-child {
    margin-top: 0;
}
.company-articles-overview-rich-text > :last-child {
    margin-bottom: 0;
}
.company-articles-overview-rich-text :is(ul, ol) {
    padding-left: 24px;
}
.company-articles-overview-rich-text blockquote {
    margin-left: 0;
    border-left: 3px solid var(--color-primary);
    padding-left: 12px;
    color: var(--color-text-muted);
}
.company-articles-overview-rich-text pre {
    overflow-x: auto;
    border-radius: 8px;
    padding: 12px;
    background: var(--color-bg-surface-soft);
}
.company-articles-overview-rich-text a {
    color: var(--color-primary);
}
.company-articles-overview-footer {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    padding: 8px 11px;
    background: var(--color-white);
}
.company-articles-copy-prompt {
    width: 38px;
    min-height: 38px;
    flex: 0 0 auto;
    padding: 0;
    border-color: var(--color-line-strong);
    border-radius: 9px;
    background: var(--color-bg-surface-soft);
    box-shadow: none;
    color: var(--color-text-muted-2);
}
.company-articles-copy-prompt:hover {
    border-color: var(--color-text-muted-2);
    background: var(--color-bg-elevated);
    box-shadow: none;
    color: var(--color-text-muted);
}
.company-articles-doc-link {
    display: inline-flex;
    width: fit-content;
    min-height: 32px;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    padding: 5px 10px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.company-articles-overview-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.company-articles-overview-links > span {
    color: var(--color-text-muted-2);
    font-size: 12px;
}
.company-articles-option-list {
    display: grid;
    gap: 8px;
    max-height: 410px;
    overflow-y: auto;
    padding-right: 3px;
}
.company-articles-option-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--color-line);
    border-radius: 11px;
    padding: 8px;
    background: var(--color-white);
}
.company-articles-option-row:has(> label) {
    grid-template-columns: minmax(0, 1fr) auto 40px;
}
.company-articles-option-row > label {
    display: flex;
    align-items: center;
    gap: 4px;
}
.company-articles-option-row > label input {
    width: 66px;
}
.company-articles-option-row > label span {
    font-size: 12px;
}
.company-articles-option-row button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: color-mix(in srgb, var(--color-primary) 8%, var(--color-white));
    color: var(--color-primary);
    cursor: pointer;
}
.company-articles-option-row button:hover {
    background: color-mix(in srgb, var(--color-primary) 8%, var(--color-white));
    color: var(--color-primary);
}
.company-articles-option-add {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 14px;
    border-top: 1px solid var(--color-line);
    padding-top: 14px;
}
.company-articles-option-add.is-status {
    grid-template-columns: minmax(0, 1fr) 90px auto;
}
.company-articles-option-add input[hidden] {
    display: none;
}
.company-articles-option-add input[name="progress"] {
    grid-column: 2;
}
.company-articles-option-footer {
    align-items: center;
    border-top: 1px solid var(--color-line);
    padding-top: 16px;
}
/* Company articles single-file deployment: 2026-08-20 */
/* ================================================================
   Overtime tracking
   ================================================================ */
.overtime-page {
    margin: 0 auto;
    color: var(--color-text-primary);
}
.overtime-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
.overtime-page-header h1 {
    margin: 0 0 6px;
    font-size: 30px;
    line-height: 1.25;
}
.overtime-page-header p {
    margin: 0;
    color: var(--color-text-muted);
}
.overtime-page-header__eyebrow {
    margin-bottom: 4px !important;
    color: var(--color-primary) !important;
    font-size: 12px;
    font-weight: 800;
}
.overtime-page-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.overtime-stale-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    padding: 15px 17px;
    border: 1px solid color-mix(in srgb, var(--color-warning) 32%, var(--color-line));
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--color-warning) 8%, var(--color-white));
}
.overtime-stale-alert > i {
    margin-top: 3px;
    color: var(--color-warning);
    font-size: 19px;
}
.overtime-stale-alert strong {
    display: block;
    margin-bottom: 3px;
}
.overtime-stale-alert p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.6;
}
.overtime-tracker-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--color-line);
    border-radius: 18px;
    background: var(--color-white);
    box-shadow: var(--shadow-card);
}
[data-overtime-tracker-region] {
    transition: opacity 0.16s ease;
}
[data-overtime-tracker-region].is-updating {
    opacity: 0.68;
    pointer-events: none;
}
.overtime-tracker-card__main {
    min-width: 0;
    padding: 30px 34px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 5%, var(--color-white)), var(--color-white));
}
.overtime-tracker-card__controls {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 26px;
    border-left: 1px solid var(--color-line);
    background: var(--color-bg-surface-soft);
}
.overtime-tracker-card__status {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--color-text-secondary);
    font-size: 14px;
}
.overtime-status-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--color-text-muted-2);
}
.overtime-tracker-card--running .overtime-status-dot {
    background: var(--color-success);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--color-success) 13%, transparent);
}
.overtime-tracker-card--paused .overtime-status-dot {
    background: var(--color-warning);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--color-warning) 13%, transparent);
}
.overtime-live-clock {
    margin-top: 14px;
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: clamp(42px, 5vw, 68px);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    line-height: 1.05;
}
.overtime-tracker-card__caption {
    margin: 7px 0 0;
    color: var(--color-text-muted);
    font-size: 13px;
}
.overtime-live-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}
.overtime-live-meta > span {
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: color-mix(in srgb, var(--color-white) 88%, transparent);
}
.overtime-live-meta small, .overtime-live-meta strong {
    display: block;
}
.overtime-live-meta small {
    margin-bottom: 3px;
    color: var(--color-text-muted);
    font-size: 11px;
}
.overtime-live-meta strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.overtime-current-description {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 12px;
    color: var(--color-text-secondary);
    font-size: 13px;
}
.overtime-current-description i {
    margin-top: 3px;
    color: var(--color-primary);
}
.overtime-start-form {
    display: grid;
    gap: 10px;
}
.overtime-start-form > label, .overtime-field > span {
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 700;
}
.overtime-start-form > label small, .overtime-field > span small {
    color: var(--color-text-muted);
    font-weight: 500;
}
.overtime-start-form textarea, .overtime-field :is(input, textarea), .overtime-segment-row input, .overtime-history-filter :is(input, select), .overtime-team-filter :is(input, select) {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    color: var(--color-text-primary);
    background: var(--color-white);
    font: inherit;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.overtime-start-form textarea, .overtime-field textarea {
    min-height: 86px;
    padding: 10px 12px;
    resize: vertical;
}
.overtime-field input, .overtime-segment-row input {
    height: 42px;
    padding: 0 11px;
}
.overtime-start-form textarea:focus, .overtime-field :is(input, textarea):focus, .overtime-segment-row input:focus, .overtime-history-filter :is(input, select):focus, .overtime-team-filter :is(input, select):focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, transparent);
}
.overtime-start-button {
    width: 100%;
    min-height: 46px;
    justify-content: center;
}
.overtime-control-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.overtime-control-buttons form, .overtime-control-buttons .attendance-button {
    width: 100%;
}
.overtime-control-buttons .attendance-button {
    min-height: 48px;
    justify-content: center;
}
.overtime-control-hint {
    margin: 12px 0 0;
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}
.overtime-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.overtime-summary-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-card-soft);
}
.overtime-summary-card__icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 11px;
    color: var(--color-primary);
    background: var(--color-primary-light);
    font-size: 17px;
}
.overtime-summary-card > div {
    min-width: 0;
}
.overtime-summary-card small, .overtime-summary-card strong, .overtime-summary-card p {
    display: block;
}
.overtime-summary-card small {
    margin-bottom: 2px;
    color: var(--color-text-muted);
    font-size: 12px;
}
.overtime-summary-card strong {
    overflow: hidden;
    font-size: 19px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.overtime-summary-card p {
    margin: 2px 0 0;
    color: var(--color-text-muted-2);
    font-size: 11px;
}
.overtime-summary-card--primary {
    border-color: color-mix(in srgb, var(--color-primary) 24%, var(--color-line));
    background: color-mix(in srgb, var(--color-primary) 3%, var(--color-white));
}
.overtime-history-panel {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-card);
}
.overtime-history-panel.is-loading {
    cursor: progress;
}
.overtime-history-panel.is-loading > :not(.overtime-history-offcanvas) {
    opacity: 0.55;
    pointer-events: none;
}
.overtime-history-panel__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--color-line);
}
.overtime-history-panel__header > div {
    min-width: 0;
    flex: 1 1 280px;
}
.overtime-history-panel__header h2 {
    margin: 0 0 3px;
    font-size: 19px;
}
.overtime-history-panel__header p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 13px;
}
.overtime-history-filter, .overtime-team-filter {
    display: grid;
    width: auto;
    max-width: 100%;
    align-items: end;
    justify-content: end;
    gap: 10px;
    margin-left: auto;
}
.overtime-history-filter {
    grid-template-columns: minmax(210px, 260px) minmax(170px, 210px);
}
.overtime-team-filter {
    grid-template-columns: 155px 180px 200px auto;
}
.overtime-history-filter label, .overtime-team-filter label {
    display: grid;
    gap: 4px;
}
.overtime-history-filter label > span, .overtime-team-filter label > span {
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 700;
}
.overtime-history-filter :is(input, select), .overtime-team-filter :is(input, select) {
    min-width: 0;
    height: var(--filter-control-height);
    min-height: var(--filter-control-height);
    padding: 0 11px;
    border-radius: var(--filter-control-radius);
    box-sizing: border-box;
}
.overtime-history-filter--month-only {
    grid-template-columns: minmax(210px, 260px);
}
.overtime-history-table-wrap, .overtime-team-table-wrap {
    box-sizing: border-box;
    width: calc(100% - 20px);
    overflow-x: auto;
    margin-right: 10px;
    margin-left: 10px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}
.overtime-history-table, .overtime-team-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.overtime-history-table th, .overtime-team-table th {
    padding: 12px 15px;
    color: var(--color-text-muted);
    background: var(--color-bg-surface-soft);
    font-size: 11px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}
.overtime-history-table td, .overtime-team-table td {
    padding: 6px 12px;
    border-top: 1px solid var(--color-line);
    vertical-align: middle;
}
.overtime-history-table tbody tr:hover, .overtime-team-table tbody tr:hover {
    background: var(--color-bg-hover);
}
.overtime-history-table__row {
    cursor: pointer;
}
.overtime-history-table__row:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}
.overtime-history-table td > small, .overtime-history-table td > strong {
    display: block;
}
.overtime-history-table td > small {
    margin-top: 2px;
    color: var(--color-text-muted-2);
    font-size: 10px;
}
.overtime-history-table__date {
    white-space: nowrap;
}
.overtime-history-table__total {
    color: var(--color-primary);
    font-weight: 700;
    white-space: nowrap;
}
.overtime-source-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    background: var(--color-bg-elevated);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.overtime-source-badge--timer {
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.overtime-history-bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 22px;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-bg-surface-soft);
}
.overtime-history-bulk-toolbar > span {
    color: var(--color-text-muted);
    font-size: 12px;
}
.overtime-history-bulk-toolbar > span strong {
    color: var(--color-text-primary);
}
.overtime-history-table__checkbox {
    width: 44px;
    min-width: 44px;
    text-align: center !important;
}
.overtime-history-table__sequence {
    width: 68px;
    min-width: 68px;
    text-align: center !important;
    white-space: nowrap;
}
.overtime-history-table__actions-heading, .overtime-history-table__actions-cell {
    width: 1%;
    min-width: 132px;
    white-space: nowrap;
}
.overtime-history-actions {
    justify-content: flex-end;
}
.overtime-history-pagination {
    box-sizing: border-box;
    width: calc(100% - 20px);
    margin-right: 10px;
    margin-left: 10px;
    margin-bottom: 10px;
}
.overtime-stop-summary-fields {
    display: grid;
    gap: 18px;
}
.overtime-stop-summary-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}
.overtime-stop-summary-preview > span {
    padding: 13px 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: var(--color-bg-surface-soft);
}
.overtime-stop-summary-preview :is(small, strong) {
    display: block;
}
.overtime-stop-summary-preview small {
    color: var(--color-text-muted);
    font-size: 11px;
}
.overtime-stop-summary-preview strong {
    margin-top: 3px;
    color: var(--color-text-primary);
    font-size: 16px;
}
.overtime-stop-time-locked {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    background: var(--color-bg-surface-soft);
}
.overtime-stop-time-locked > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 9px;
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.overtime-stop-time-locked div {
    min-width: 0;
}
.overtime-stop-time-locked :is(small, strong, p) {
    display: block;
    margin: 0;
}
.overtime-stop-time-locked small, .overtime-stop-time-locked p, .overtime-rich-field > small {
    color: var(--color-text-muted);
    font-size: 11px;
}
.overtime-stop-time-locked strong {
    margin-top: 2px;
    color: var(--color-text-primary);
    font-size: 14px;
}
.overtime-stop-time-locked p {
    margin-top: 3px;
    line-height: 1.5;
}
.overtime-rich-field {
    margin-bottom: 0;
}
.overtime-rich-field > small {
    display: block;
    margin-top: 6px;
    line-height: 1.5;
}
.overtime-history-offcanvas {
    position: fixed;
    z-index: 2050;
    inset: 0;
    visibility: hidden;
    pointer-events: none;
}
.overtime-history-offcanvas.is-open {
    visibility: visible;
    pointer-events: auto;
}
.overtime-history-offcanvas__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    opacity: 0;
    background: color-mix(in srgb, var(--color-text-primary) 52%, transparent);
    cursor: pointer;
    transition: opacity 0.22s ease;
}
.overtime-history-offcanvas.is-open .overtime-history-offcanvas__backdrop {
    opacity: 1;
}
.overtime-history-offcanvas__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: min(750px, calc(100% - 28px));
    flex-direction: column;
    overflow: hidden;
    background: var(--color-white);
    box-shadow: var(--shadow-hover);
    transform: translateX(100%);
    transition: transform 0.24s ease;
}
.overtime-history-offcanvas.is-open .overtime-history-offcanvas__panel {
    transform: translateX(0);
}
.overtime-history-offcanvas__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--color-line);
}
.overtime-history-offcanvas__header > div {
    min-width: 0;
    flex: 1;
}
.overtime-history-offcanvas__header :is(p, h2) {
    margin: 0;
}
.overtime-history-offcanvas__header p {
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 800;
}
.overtime-history-offcanvas__header h2 {
    margin-top: 3px;
    font-size: 21px;
}
.overtime-history-offcanvas__header > div > span {
    display: block;
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 12px;
}
.overtime-history-offcanvas__header > button {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border: 0;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    background: var(--color-bg-elevated);
    cursor: pointer;
}
.overtime-history-offcanvas__body {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 22px 24px 32px;
}
.overtime-history-offcanvas__footer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 24px;
    border-top: 1px solid var(--color-line);
    background: var(--color-bg-surface-soft);
}
.overtime-detail-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px;
    border: 1px solid color-mix(in srgb, var(--color-primary) 18%, var(--color-line));
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--color-primary) 4%, var(--color-white));
}
.overtime-detail-hero > span {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: var(--radius-md);
    color: var(--color-primary);
    background: var(--color-primary-light);
    font-size: 18px;
}
.overtime-detail-hero :is(small, strong, p) {
    display: block;
    margin: 0;
}
.overtime-detail-hero small {
    color: var(--color-text-muted);
    font-size: 11px;
}
.overtime-detail-hero strong {
    margin-top: 2px;
    font-size: 18px;
}
.overtime-detail-hero p {
    margin-top: 3px;
    color: var(--color-text-secondary);
    font-size: 12px;
}
.overtime-detail-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.overtime-detail-summary article {
    padding: 14px 15px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: var(--color-bg-surface-soft);
}
.overtime-detail-summary small, .overtime-detail-summary strong {
    display: block;
}
.overtime-detail-summary small {
    color: var(--color-text-muted);
    font-size: 11px;
}
.overtime-detail-summary strong {
    margin-top: 3px;
    color: var(--color-text-primary);
    font-size: 16px;
}
.overtime-detail-section {
    margin-top: 24px;
}
.overtime-detail-section h3 {
    margin: 0 0 9px;
    font-size: 14px;
}
.overtime-detail-section > :is(p, .overtime-detail-rich-text) {
    margin: 0;
    padding: 14px;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    background: var(--color-bg-surface-soft);
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-wrap;
}
.overtime-detail-rich-text {
    overflow-wrap: anywhere;
    white-space: normal !important;
}
.overtime-detail-rich-text :is(p, ul, ol, blockquote, pre) {
    margin: 0 0 8px;
}
.overtime-detail-rich-text :is(p, ul, ol, blockquote, pre):last-child {
    margin-bottom: 0;
}
.overtime-detail-rich-text :is(ul, ol) {
    padding-left: 22px;
}
.overtime-detail-rich-text blockquote {
    padding-left: 11px;
    border-left: 3px solid var(--color-border);
    color: var(--color-text-muted);
}
.overtime-detail-rich-text a {
    color: var(--color-primary);
    text-decoration: underline;
}
.overtime-detail-timeline {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.overtime-detail-timeline li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
}
.overtime-detail-timeline li > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: var(--radius-full);
    color: var(--color-primary);
    background: var(--color-primary-light);
    font-size: 11px;
    font-weight: 800;
}
.overtime-detail-timeline :is(strong, small) {
    display: block;
}
.overtime-detail-timeline strong {
    color: var(--color-text-secondary);
    font-size: 12px;
}
.overtime-detail-timeline small {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 11px;
}
body.overtime-history-offcanvas-open {
    overflow: hidden;
}
.overtime-history-table__empty {
    padding: 44px 20px !important;
    color: var(--color-text-muted) !important;
    text-align: center !important;
}
.overtime-history-table__empty i, .overtime-history-table__empty strong, .overtime-history-table__empty span {
    display: block;
}
.overtime-history-table__empty i {
    margin-bottom: 9px;
    color: var(--color-text-muted-2);
    font-size: 26px;
}
.overtime-history-table__empty strong {
    color: var(--color-text-secondary);
}
.overtime-history-table__empty span {
    margin-top: 3px;
    font-size: 12px;
    max-width: unset !important;
}
.overtime-dialog {
    position: fixed;
    inset: 0;
    width: min(750px, calc(100% - 32px));
    max-height: calc(100vh - 40px);
    overflow: hidden;
    margin: auto;
    padding: 0;
    border: 0;
    color: var(--color-text-primary);
    background: var(--color-white);
    box-shadow: var(--shadow-hover);
}
.overtime-dialog::backdrop {
    background: color-mix(in srgb, var(--color-text-primary) 55%, transparent);
}
.overtime-dialog--manual {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(750px, 100%);
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
}
.overtime-dialog--manual[open] {
    animation: overtime-offcanvas-enter 0.22s ease-out;
}
.overtime-dialog--manual .overtime-dialog__panel {
    height: 100%;
    max-height: none;
}
.overtime-dialog--manual .overtime-dialog__body {
    min-height: 0;
    flex: 1 1 auto;
}
.overtime-dialog--manual .overtime-dialog__panel > header, .overtime-dialog--manual .overtime-dialog__panel > footer {
    flex: 0 0 auto;
}
@keyframes overtime-offcanvas-enter {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}
.overtime-dialog__panel {
    display: flex;
    max-height: calc(100vh - 40px);
    flex-direction: column;
}
.overtime-dialog__panel > header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--color-line);
}
.overtime-dialog__panel > header > span {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 11px;
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.overtime-dialog__panel > header > div {
    min-width: 0;
    flex: 1;
}
.overtime-dialog__panel > header h2, .overtime-dialog__panel > header p {
    margin: 0;
}
.overtime-dialog__panel > header h2 {
    font-size: 18px;
}
.overtime-dialog__panel > header p {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 12px;
}
.overtime-dialog__panel > header > button, .overtime-segment-row > button {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: var(--color-text-muted);
    background: var(--color-bg-elevated);
    cursor: pointer;
}
.overtime-dialog__body {
    overflow-y: auto;
    padding: 20px;
}
.overtime-field {
    display: grid;
    gap: 7px;
}
.overtime-field small {
    color: var(--color-text-muted);
    font-size: 11px;
}
.overtime-dialog__panel > footer {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 15px 20px;
    border-top: 1px solid var(--color-line);
    background: var(--color-bg-surface-soft);
}
.overtime-manual-segments {
    margin-top: 18px;
}
.overtime-manual-segments__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}
.overtime-manual-segments__heading strong {
    font-size: 13px;
}
.overtime-manual-segments__heading button {
    border: 0;
    color: var(--color-primary);
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.overtime-manual-segments [data-overtime-segment-list] {
    display: grid;
    gap: 9px;
}
.overtime-segment-row {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) minmax(0, 1fr) 38px;
    align-items: end;
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--color-line);
    border-radius: 11px;
    background: var(--color-bg-surface-soft);
}
.overtime-segment-row__number {
    align-self: center;
    color: var(--color-text-secondary);
    font-size: 12px;
    font-weight: 700;
}
.overtime-segment-row label {
    display: grid;
    gap: 4px;
}
.overtime-segment-row label > span {
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 700;
}
.overtime-segment-row > button {
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.overtime-segment-row > button:disabled {
    color: var(--color-text-muted-2);
    background: var(--color-bg-elevated);
    cursor: not-allowed;
}
.attendance-button.is-loading {
    opacity: 0.65;
    cursor: wait;
}
.overtime-team-table {
    min-width: 940px;
}
.overtime-team-table__row {
    cursor: pointer;
}
.overtime-team-table__row:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}
.overtime-member {
    display: flex;
    min-width: 210px;
    align-items: center;
    gap: 10px;
}
.overtime-member > span {
    display: flex;
    flex: 0 0 auto;
}
.overtime-member > div {
    min-width: 0;
}
.overtime-member strong {
    display: block;
}
.overtime-member strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.overtime-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    color: var(--color-primary);
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.overtime-detail-section h3 > span {
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 500;
}
.overtime-team-entry-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.overtime-team-entry-list > li {
    padding: 13px 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: var(--color-bg-surface-soft);
}
.overtime-team-entry-list__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.overtime-team-entry-list__heading > div {
    min-width: 0;
}
.overtime-team-entry-list__heading :is(strong, small) {
    display: block;
}
.overtime-team-entry-list__heading > div > strong {
    color: var(--color-text-primary);
    font-size: 13px;
}
.overtime-team-entry-list__heading small {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 11px;
}
.overtime-team-entry-list__duration {
    color: var(--color-primary);
    font-size: 13px;
    white-space: nowrap;
}
.overtime-team-entry-list__description {
    margin: 9px 0 0;
    color: var(--color-text-secondary);
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.overtime-team-entry-list__description > ul {
    list-style-type: disc;
}
.overtime-team-entry-list__description > ol {
    list-style-type: decimal;
}
.overtime-team-entry-list > .overtime-team-entry-list__empty {
    padding: 24px 14px;
    color: var(--color-text-muted);
    font-size: 12px;
    text-align: center;
}
.overtime-member-header__identity {
    display: flex;
    align-items: center;
    gap: 13px;
}
.overtime-member-header__identity > span {
    display: flex;
}
.attendance-page__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}
.qr-scan-icon {
    width: 1.2em;
    height: 1.2em;
    flex: 0 0 auto;
}
.topbar-qr-scanner-button .qr-scan-icon {
    width: 18px;
    height: 18px;
}
.topbar-qr-scanner-button .qr-scan-icon__beam {
    stroke: var(--color-primary);
}
.qr-scan-icon__beam {
    stroke-width: 2.75;
}
body.qr-scanner-open {
    overflow: hidden;
}
.qr-scanner-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    visibility: hidden;
    place-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.qr-scanner-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.qr-scanner-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: var(--color-text-primary);
    opacity: 0.58;
    cursor: pointer;
}
.qr-scanner-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 22px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-hover);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.2s ease;
}
.qr-scanner-modal.is-open .qr-scanner-dialog {
    transform: translateY(0) scale(1);
}
.qr-scanner-dialog:focus {
    outline: none;
}
.qr-scanner-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.qr-scanner-dialog__header > div {
    min-width: 0;
}
.qr-scanner-dialog__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.qr-scanner-dialog__header h2 {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 21px;
}
.qr-scanner-dialog__header p {
    margin: 4px 0 0;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.55;
}
.qr-scanner-dialog__close {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text-secondary);
    background: var(--color-bg-surface);
    cursor: pointer;
}
.qr-scanner-dialog__close:hover, .qr-scanner-dialog__close:focus-visible {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.qr-scanner-camera {
    position: relative;
    display: grid;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    place-items: center;
    border: 1px solid var(--color-line-strong);
    border-radius: 16px;
    color: var(--color-white);
    background: var(--color-text-primary);
}
.qr-scanner-camera video {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.qr-scanner-camera.is-active video {
    display: block;
}
.qr-scanner-camera__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    z-index: 1;
    align-content: center;
    justify-items: center;
    gap: 7px;
    padding: 24px;
    text-align: center;
}
.qr-scanner-camera__placeholder[hidden] {
    display: none;
}
.qr-scanner-camera__placeholder > i {
    margin-bottom: 4px;
    color: var(--color-primary);
    font-size: 30px;
}
.qr-scanner-camera__placeholder strong {
    font-size: 15px;
}
.qr-scanner-camera__placeholder span {
    color: var(--color-text-muted-2);
    font-size: 12px;
}
.qr-scanner-camera__frame {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: none;
    width: min(54%, 230px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.qr-scanner-camera.is-active .qr-scanner-camera__frame {
    display: block;
}
.qr-scanner-camera__frame > span {
    position: absolute;
    width: 32px;
    height: 32px;
    border-color: var(--color-primary);
    border-style: solid;
}
.qr-scanner-camera__frame > span:nth-child(1) {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px;
    border-radius: 9px 0 0;
}
.qr-scanner-camera__frame > span:nth-child(2) {
    top: 0;
    right: 0;
    border-width: 3px 3px 0 0;
    border-radius: 0 9px 0 0;
}
.qr-scanner-camera__frame > span:nth-child(3) {
    right: 0;
    bottom: 0;
    border-width: 0 3px 3px 0;
    border-radius: 0 0 9px;
}
.qr-scanner-camera__frame > span:nth-child(4) {
    bottom: 0;
    left: 0;
    border-width: 0 0 3px 3px;
    border-radius: 0 0 0 9px;
}
.qr-scanner-camera__frame > i {
    position: absolute;
    top: 8px;
    right: 8px;
    left: 8px;
    height: 2px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    box-shadow: 0 0 12px var(--color-primary);
    animation: qr-scanner-line 2s ease-in-out infinite;
}
.qr-scanner-camera.is-success::after {
    position: absolute;
    z-index: 3;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    color: var(--color-white);
    background: var(--color-success);
    content: "✓";
    font-size: 30px;
    font-weight: 700;
}
@keyframes qr-scanner-line {
    0%, 100% {
        top: 8px;
    }
    50% {
        top: calc(100% - 10px);
    }
}
.qr-scanner-status {
    min-height: 42px;
    margin: 12px 0;
    padding: 11px 13px;
    border-radius: 10px;
    color: var(--color-text-secondary);
    background: var(--color-bg-surface-soft);
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}
.qr-scanner-status[data-state="scanning"] {
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.qr-scanner-status[data-state="success"] {
    color: var(--color-success);
    background: var(--color-success-light);
}
.qr-scanner-status[data-state="error"] {
    color: var(--color-error);
    background: var(--color-error-light);
}
.qr-scanner-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.qr-scanner-actions .attendance-button {
    width: 100%;
    justify-content: center;
}
.qr-scanner-file {
    position: relative;
    cursor: pointer;
}
.qr-scanner-file-input {
    display: none;
}
.qr-scanner-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 13px 0 0;
    color: var(--color-text-muted);
    font-size: 11px;
    text-align: center;
}
/* ======================== Leave and WFH overview ======================== */
.leaves-page .leaves-page__button--overview {
    border: 1px solid var(--color-line-strong);
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
}
.leaves-page .leaves-page__button--overview:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.leave-overview-filter-card, .leave-overview-directory, .leave-overview-activity {
    border: 1px solid var(--color-line-strong);
    border-radius: 14px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card-soft);
}
.leave-overview-filter-card {
    margin-bottom: 16px;
    padding: 20px;
}
.leave-overview-filter-card h2, .leave-overview-directory__header h2, .leave-overview-activity__header h2, .leave-overview-activity-card h3 {
    margin: 0;
    color: var(--color-text-primary);
    font-weight: 600;
}
.leave-overview-filter-card h2, .leave-overview-directory__header h2 {
    font-size: 16px;
}
.leave-overview-filter-card p, .leave-overview-directory__header p, .leave-overview-activity-card header p {
    margin: 2px 0 0;
    color: var(--color-text-muted);
    font-size: 12px;
}
.leave-overview-filter {
    display: grid;
    grid-template-columns: auto repeat(5, minmax(0, 1fr)) auto;
    align-items: center;
    gap: 9px;
}
.leave-overview-filter--personal {
    grid-template-columns: auto repeat(4, minmax(0, 1fr)) auto;
}
.leave-overview-filter__label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--color-text-primary);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.leave-overview-filter__label i {
    color: var(--color-primary);
}
.leave-overview-filter__field {
    display: grid;
    gap: 5px;
    min-width: 0;
}
.leave-overview-filter__field > span {
    color: var(--color-text-secondary);
    font-size: 12px;
    font-weight: 600;
}
.leave-overview-filter select {
    width: 100%;
    min-height: var(--filter-control-height);
    padding: 7px 30px 7px 10px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--filter-control-radius);
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
    font: inherit;
}
.leave-overview-filter select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 7%, transparent);
    outline: none;
}
.leave-overview-filter .ts-wrapper, .leave-overview-filter .thai-date-field {
    width: 100%;
    min-width: 0;
    --thai-date-field-radius: var(--filter-control-radius);
}
.leave-overview-filter .ts-control, .leave-overview-filter .thai-date-field, .leave-overview-filter__all-period {
    height: var(--filter-control-height);
    min-height: var(--filter-control-height);
    border-radius: var(--filter-control-radius);
}
.leave-overview-filter__all-period {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--filter-control-radius);
    background: var(--color-bg-surface);
    color: var(--color-text-secondary);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.leave-overview-filter__all-period:hover, .leave-overview-filter__all-period.is-active {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.leave-overview-filter__submit, .leave-overview-filter__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    white-space: nowrap;
}
.leave-overview-filter__submit {
    gap: 7px;
    padding: 7px 13px;
}
.leave-overview-filter__reset {
    padding: 7px 5px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
}
.leave-overview-filter__reset:hover {
    color: var(--color-primary);
}
.leave-overview-filter__reset.is-hidden {
    visibility: hidden;
    pointer-events: none;
}
.leave-overview-filter__status {
    color: var(--color-text-muted);
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
}
[data-leave-overview-page].is-filtering {
    cursor: progress;
}
[data-leave-overview-page].is-filtering .leave-quota-grid,
[data-leave-overview-page].is-filtering .leave-history-card,
[data-leave-overview-page].is-filtering .leaves-overdue-alert {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.16s ease;
}
.leave-overview-results {
    transition: opacity 0.16s ease;
}
.leave-overview-results.is-loading {
    opacity: 0.5;
    pointer-events: none;
}
.leave-overview-summary {
    display: flex;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--color-line-strong);
    border-radius: 12px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card-soft);
}
.leave-overview-summary__card {
    display: flex;
    align-items: center;
    flex: 1 1 25%;
    min-width: 0;
    min-height: 68px;
    gap: 10px;
    padding: 11px 15px;
    border-right: 1px solid var(--color-line);
}
.leave-overview-summary__card.has-pending {
    background: color-mix(in srgb, var(--color-warning) 5%, var(--color-bg-surface));
}
.leave-overview-summary__card:last-child {
    border-right: 0;
}
.leave-overview-summary__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 13px;
}
.leave-overview-summary__card.has-pending .leave-overview-summary__icon {
    background: color-mix(in srgb, var(--color-warning) 12%, var(--color-bg-surface));
    color: var(--color-warning);
}
.leave-overview-summary__card > div {
    display: grid;
    min-width: 0;
    gap: 1px;
}
.leave-overview-summary__card > div > span, .leave-overview-summary__card > div > small {
    color: var(--color-text-muted);
    font-size: 12px;
}
.leave-overview-summary__card strong {
    color: var(--color-text-primary);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
}
.leave-overview-summary__card strong small {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 400;
}
.leave-overview-directory {
    overflow: hidden;
}
.leave-overview-directory__header, .leave-overview-activity__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-line);
}
.leave-overview-directory__header > span, .leave-overview-activity__header > span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 90px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.leave-overview-table-wrap {
    width: 100%;
    overflow-x: auto;
    scrollbar-color: var(--color-line-strong) transparent;
    scrollbar-width: thin;
}
.leave-overview-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}
.leave-overview-table thead {
    background: var(--color-bg-surface-soft);
}
.leave-overview-table th, .leave-overview-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-line);
    text-align: left;
    vertical-align: middle;
}
.leave-overview-table th {
    color: var(--color-text-secondary);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.leave-overview-table td {
    color: var(--color-text-primary);
    font-size: 13px;
}
.leave-overview-table tbody tr:last-child td {
    border-bottom: 0;
}
.leave-overview-table tbody tr:hover {
    background: var(--color-bg-surface-soft);
}
.leave-overview-table th:first-child {
    width: 27%;
}
.leave-overview-table th:nth-child(2) {
    width: 31%;
}
.leave-overview-table th:nth-child(3) {
    width: 12%;
}
.leave-overview-table th:nth-child(4) {
    width: 20%;
}
.leave-overview-table th:last-child {
    width: 10%;
}
.leave-overview-member {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}
.leave-overview-member > div {
    display: grid;
    min-width: 0;
}
.leave-overview-member strong, .leave-overview-member h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.leave-overview-member strong {
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
}
.leave-overview-member--link:hover strong {
    color: var(--color-primary);
}
.leave-overview-member span, .leave-overview-metric span, .leave-overview-makeup-completed {
    color: var(--color-text-muted);
    font-size: 11px;
}
.leave-overview-metric {
    display: grid;
    gap: 1px;
}
.leave-overview-metric strong {
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
}
.leave-overview-leave-balance {
    display: flex;
    align-items: center;
    gap: 18px;
}
.leave-overview-leave-balance > div {
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.leave-overview-leave-balance span, .leave-overview-leave-note {
    color: var(--color-text-muted);
    font-size: 11px;
}
.leave-overview-leave-balance strong, .leave-overview-wfh-value {
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.leave-overview-leave-balance > div:last-child strong {
    color: var(--color-success);
}
.leave-overview-leave-note {
    display: block;
    margin-top: 2px;
}
.leave-overview-entitlement {
    display: grid;
    width: min(230px, 100%);
    gap: 7px;
}
.leave-overview-entitlement > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.leave-overview-entitlement span, .leave-overview-entitlement strong {
    font-size: 11px;
    white-space: nowrap;
}
.leave-overview-entitlement span {
    color: var(--color-text-muted);
}
.leave-overview-entitlement strong {
    color: var(--color-success);
    font-weight: 600;
}
.leave-overview-entitlement progress {
    width: 100%;
    height: 5px;
    overflow: hidden;
    border: 0;
    border-radius: 90px;
    background: var(--color-bg-elevated);
    appearance: none;
}
.leave-overview-entitlement progress::-webkit-progress-bar {
    border-radius: 90px;
    background: var(--color-bg-elevated);
}
.leave-overview-entitlement progress::-webkit-progress-value {
    border-radius: 90px;
    background: var(--color-primary);
}
.leave-overview-entitlement progress::-moz-progress-bar {
    border-radius: 90px;
    background: var(--color-primary);
}
.leave-overview-makeup-status, .leave-overview-record-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 25px;
    padding: 3px 8px;
    border-radius: 90px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.leave-overview-makeup-status.is-pending, .leave-overview-record-status.is-pending, .leave-overview-record-status.is-pending_makeup {
    background: color-mix(in srgb, var(--color-warning) 11%, var(--color-bg-surface));
    color: color-mix(in srgb, var(--color-warning) 75%, var(--color-text-primary));
}
.leave-overview-makeup-status.is-complete, .leave-overview-record-status.is-approved, .leave-overview-record-status.is-recorded, .leave-overview-record-status.is-makeup_complete {
    background: var(--color-success-light);
    color: color-mix(in srgb, var(--color-success) 72%, var(--color-text-primary));
}
.leave-overview-makeup-status.is-overdue, .leave-overview-record-status.is-overdue, .leave-overview-record-status.is-rejected, .leave-overview-record-status.is-cancelled {
    background: var(--color-error-light);
    color: var(--color-error);
}
.leave-overview-makeup-status.is-clear {
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted);
}
.leave-overview-makeup-completed {
    display: block;
    margin-top: 3px;
}
.leave-overview-table__action-heading, .leave-overview-table__action-cell {
    text-align: right !important;
}
.leave-overview-table__action-cell a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.leave-overview-table__action-cell a:hover {
    color: var(--color-primary-hover);
}
.leave-overview-table__empty {
    height: 180px;
    text-align: center !important;
}
.leave-overview-table__empty i, .leave-overview-table__empty strong, .leave-overview-table__empty span {
    display: block;
}
.leave-overview-table__empty i {
    margin-bottom: 8px;
    color: var(--color-text-muted-2);
    font-size: 24px;
}
.leave-overview-table__empty strong {
    margin-bottom: 2px;
}
.leave-overview-table__empty span {
    color: var(--color-text-muted);
    font-size: 12px;
}
.leave-overview-activity {
    margin-top: 16px;
    overflow: hidden;
    scroll-margin-top: 20px;
}
.leave-overview-activity__header .leave-overview-member > div > span {
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 600;
}
.leave-overview-activity__header h2 {
    font-size: 17px;
}
.leave-overview-activity__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
    background: var(--color-bg-surface-soft);
}
.leave-overview-activity-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-line-strong);
    border-radius: 11px;
    background: var(--color-bg-surface);
}
.leave-overview-activity-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    border-bottom: 1px solid var(--color-line);
}
.leave-overview-activity-card > header > i {
    color: var(--color-primary);
    font-size: 15px;
}
.leave-overview-activity-card h3 {
    font-size: 14px;
}
.leave-overview-activity-card__list {
    max-height: 430px;
    overflow-y: auto;
}
.leave-overview-activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--color-line);
}
.leave-overview-activity-item:last-child {
    border-bottom: 0;
}
.leave-overview-activity-item__main {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.leave-overview-activity-item__main strong {
    color: var(--color-text-primary);
    font-size: 12px;
    font-weight: 600;
}
.leave-overview-activity-item__main span {
    color: var(--color-text-muted);
    font-size: 11px;
}
.leave-overview-activity-item__statuses {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 4px;
}
.leave-overview-activity-card__empty {
    display: grid;
    min-height: 120px;
    place-items: center;
    padding: 20px;
    color: var(--color-text-muted);
    font-size: 12px;
    text-align: center;
}
/* ==========================================================================
   Content Writer Portal
   ========================================================================== */
.writer-portal-body {
    min-height: 100vh;
    margin: 0;
    background: var(--color-bg-base);
    color: var(--color-text-primary);
    font-family: var(--font-body);
}

.writer-task-card__meta,
.writer-detail-header__meta,
.writer-form-actions {
    display: flex;
    align-items: center;
}

.writer-sidebar .sidebar-footer__profile {
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.writer-notification-dropdown {
    width: min(360px, calc(100vw - 28px));
}

.writer-notification-dropdown[hidden],
.writer-notification-dropdown .notification-dropdown__read-all-form.is-hidden {
    display: none;
}

.writer-notification-toast-region {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 999999;
}

.writer-notification-toast {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: min(340px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--color-primary) 18%, var(--color-line-strong));
    border-radius: var(--radius-lg);
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
    font: inherit;
    text-align: left;
    box-shadow: var(--shadow-hover);
    cursor: pointer;
}

.writer-notification-toast > i {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: var(--radius-full);
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.writer-notification-toast > span {
    display: grid;
}

.writer-notification-toast small {
    color: var(--color-primary);
    font-size: 9px;
    font-weight: 700;
}

.writer-notification-toast strong {
    margin-top: 2px;
    font-size: 12px;
}

.writer-main {
    width: min(1600px, calc(100% - 48px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.writer-main-content {
    padding: 0;
    background: var(--color-bg-base);
}

.writer-alert {
    margin-bottom: 18px;
    padding: 13px 16px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-lg);
    background: var(--color-bg-surface);
}

.writer-alert--success {
    border-color: var(--color-success);
    background: var(--color-success-light);
    color: var(--color-success);
}

.writer-alert--error {
    border-color: var(--color-error);
    background: var(--color-error-light);
    color: var(--color-error);
}

.writer-hero,
.writer-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.writer-hero {
    margin-bottom: 24px;
}

.writer-eyebrow {
    margin: 0 0 6px;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.writer-hero h1,
.writer-detail-header h1 {
    margin: 0;
    font-family: var(--font-heading);
}

.writer-hero p:not(.writer-eyebrow) {
    margin: 7px 0 0;
    color: var(--color-text-muted);
}

.writer-hero__date {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-lg);
    background: var(--color-bg-surface);
    color: var(--color-text-secondary);
}

.writer-hero__date > span {
    display: grid;
    gap: 1px;
}

.writer-hero__date small {
    color: var(--color-text-muted);
    font-size: 10px;
}

.writer-hero__date strong {
    color: var(--color-text-primary);
    font-size: 13px;
}

.writer-dashboard-filter {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-lg);
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card);
}

.writer-deadline-summary,
.writer-deadline-summary > div,
.writer-deadline-summary p,
.writer-revision-alert {
    display: flex;
    align-items: center;
}

.writer-deadline-summary {
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, var(--color-warning) 35%, var(--color-line-strong));
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--color-warning) 7%, var(--color-bg-surface));
}

.writer-deadline-summary > div {
    gap: 12px;
}

.writer-deadline-summary__icon {
    display: inline-grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--color-warning) 14%, var(--color-bg-surface));
    color: var(--color-warning);
}

.writer-deadline-summary p {
    flex-wrap: wrap;
    gap: 5px 12px;
    margin: 3px 0 0;
    font-size: 12px;
}

.writer-deadline-summary p span::before {
    content: "•";
    margin-right: 5px;
}

.writer-deadline-summary .is-overdue {
    color: var(--color-error);
}

.writer-deadline-summary .is-due-soon {
    color: var(--color-warning);
}

.writer-deadline-summary > a {
    flex: 0 0 auto;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.writer-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.writer-stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    min-height: 92px;
    padding: 17px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-lg);
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
    text-decoration: none;
    box-shadow: var(--shadow-card);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.writer-stat-card:hover,
.writer-task-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-hover);
}

.writer-stat-card:hover {
    transform: translateY(-2px);
}

.writer-stat-card.is-active {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 3%, var(--color-bg-surface));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 8%, transparent);
}

.writer-stat-card__icon,
.writer-section-heading__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-lg);
    background: var(--color-bg-subtle);
    color: var(--color-text-muted);
}

.writer-stat-card__icon--primary {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.writer-stat-card__icon--info {
    color: var(--color-info);
}

.writer-stat-card__icon--warning {
    color: var(--color-warning);
}

.writer-stat-card__icon--danger {
    background: var(--color-error-light);
    color: var(--color-error);
}

.writer-stat-card__icon--success {
    background: var(--color-success-light);
    color: var(--color-success);
}

.writer-stat-card__content {
    display: grid;
    min-width: 0;
}

.writer-stat-card strong {
    font-size: 24px;
    line-height: 1;
}

.writer-stat-card__content > span {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
}

.writer-stat-card small {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 11px;
}

.writer-stat-card__arrow {
    margin-left: auto;
    color: var(--color-text-muted-2);
    font-size: 10px;
}

.writer-analytics {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.8fr);
    gap: 16px;
    margin-bottom: 24px;
}

.writer-chart-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-lg);
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card);
}

.writer-chart-card__header,
.writer-chart-card__header > div {
    display: flex;
    align-items: center;
}

.writer-chart-card__header {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.writer-chart-card__header > div {
    min-width: 0;
    gap: 12px;
}

.writer-chart-card__header h2,
.writer-chart-card__header p {
    margin: 0;
}

.writer-chart-card__header h2 {
    font-size: 16px;
}

.writer-chart-card__header p {
    margin-top: 3px;
    color: var(--color-text-muted);
    font-size: 12px;
}

.writer-chart-card__period {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: var(--radius-full);
    background: var(--color-bg-subtle);
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 600;
}

.writer-chart-card__canvas {
    position: relative;
    min-height: 280px;
}

.writer-chart-card__empty {
    display: grid;
    height: 280px;
    place-items: center;
    align-content: center;
    gap: 6px;
    color: var(--color-text-muted);
    text-align: center;
}

.writer-chart-card__empty i {
    margin-bottom: 4px;
    color: var(--color-text-muted-2);
    font-size: 34px;
}

.writer-chart-card__empty strong {
    color: var(--color-text-secondary);
    font-size: 13px;
}

.writer-chart-card__empty span {
    max-width: 230px;
    font-size: 11px;
}

.writer-panel {
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-lg);
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card);
}

.writer-workflow-guide {
    display: grid;
    grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.8fr);
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-lg);
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card);
}

.writer-workflow-guide__heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.writer-workflow-guide__heading h2,
.writer-workflow-guide__heading p {
    margin: 0;
}

.writer-workflow-guide__heading h2 {
    font-size: 16px;
}

.writer-workflow-guide__heading p {
    margin-top: 3px;
    color: var(--color-text-muted);
    font-size: 12px;
}

.writer-workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.writer-workflow-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: var(--color-bg-subtle);
}

.writer-workflow-steps li > span {
    display: inline-grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 700;
}

.writer-workflow-steps li > div {
    display: grid;
    min-width: 0;
}

.writer-workflow-steps strong {
    font-size: 12px;
}

.writer-workflow-steps small {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 10px;
    line-height: 1.45;
}

.writer-workspace {
    overflow: hidden;
}

.writer-workspace__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--color-line);
}

.writer-workspace__header h2,
.writer-workspace__header p {
    margin: 0;
}

.writer-workspace__header h2 {
    font-size: 20px;
}

.writer-workspace__header > div > span {
    display: block;
    margin-top: 3px;
    color: var(--color-text-muted);
    font-size: 12px;
}

.writer-filter-reset {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.writer-filter-reset:hover {
    color: var(--color-primary);
}

.writer-filters {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) 170px 180px 200px auto;
    align-items: end;
    gap: 14px;
    padding: 20px;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-bg-subtle);
}

.writer-field {
    display: grid;
    gap: 7px;
    --thai-date-field-height: var(--filter-control-height);
    --thai-date-field-radius: var(--radius-md);
    --thai-date-field-font-size: 13px;
}

.writer-field > span {
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.writer-field b {
    color: var(--color-primary);
}

.writer-field input,
.writer-field select,
.writer-field textarea,
.writer-field .task-enhanced-select__trigger,
.writer-field .thai-date-field {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--color-border);
    border-radius: var(--filter-control-radius);
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
    font: inherit;
}

.writer-field input,
.writer-field select,
.writer-field .task-enhanced-select__trigger {
    height: var(--filter-control-height);
    padding: 0 12px;
}

.writer-field .task-enhanced-select__trigger {
    min-height: var(--filter-control-height);
}

.writer-field textarea {
    min-height: 108px;
    padding: 12px;
    resize: vertical;
}

.writer-field input:focus,
.writer-field select:focus,
.writer-field textarea:focus,
.writer-field .task-enhanced-select.is-open .task-enhanced-select__trigger,
.writer-field .thai-date-field:focus-visible,
.writer-field .thai-date-field[aria-expanded="true"] {
    border-color: var(--color-primary);
    outline: 3px solid var(--color-primary-light);
    box-shadow: none;
}

.writer-field--search > div {
    position: relative;
}

.writer-field--search i {
    position: absolute;
    top: 50%;
    left: 13px;
    color: var(--color-text-muted);
    transform: translateY(-50%);
}

.writer-field--search input {
    padding-left: 38px;
}

.writer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.writer-button--primary {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
}

.writer-button--primary:hover {
    border-color: var(--color-primary-hover);
    background: var(--color-primary-hover);
}

.writer-button--outline {
    border-color: var(--color-border);
    background: var(--color-bg-surface);
    color: var(--color-text-secondary);
}

.writer-filter-actions {
    display: flex;
    align-items: center;
}

.writer-filter-actions .writer-button {
    min-height: 44px;
    white-space: nowrap;
}

.writer-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 11px 20px;
    border-bottom: 1px solid var(--color-line);
    color: var(--color-text-muted);
    font-size: 11px;
}

.writer-active-filters strong {
    padding: 4px 9px;
    border-radius: var(--radius-full);
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 600;
}

.writer-task-list {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.writer-task-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) minmax(180px, auto);
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-lg);
    color: var(--color-text-primary);
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.writer-task-card.is-overdue,
.writer-task-card.needs-revision {
    border-left-width: 3px;
    border-left-color: var(--color-error);
}

.writer-task-card__number {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: var(--radius-md);
    background: var(--color-bg-subtle);
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 700;
}

.writer-task-card__main {
    min-width: 0;
}

.writer-task-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.writer-task-card__meta,
.writer-detail-header__meta {
    flex-wrap: wrap;
    gap: 14px;
    color: var(--color-text-muted);
    font-size: 12px;
}

.writer-task-card h2 {
    margin: 8px 0 3px;
    font-size: 17px;
}

.writer-task-card p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 12px;
}

.writer-task-card p strong {
    color: var(--color-text-secondary);
}

.writer-task-card__footer {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(220px, 1.1fr);
    align-items: center;
    gap: 18px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--color-line);
}

.writer-task-progress {
    display: flex;
    align-items: center;
    gap: 7px;
}

.writer-task-progress > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--color-text-muted-2);
    font-size: 10px;
    white-space: nowrap;
}

.writer-task-progress > span:not(:last-child)::after {
    width: 14px;
    height: 1px;
    margin-left: 2px;
    background: var(--color-line-strong);
    content: "";
}

.writer-task-progress i {
    display: inline-grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-full);
    background: var(--color-bg-surface);
    color: inherit;
    font-style: normal;
    font-weight: 700;
}

.writer-task-progress > span.is-current {
    color: var(--color-primary);
    font-weight: 700;
}

.writer-task-progress > span.is-current i {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
}

.writer-task-progress > span.is-complete {
    color: var(--color-success);
}

.writer-task-progress > span.is-complete i {
    border-color: var(--color-success);
    background: var(--color-success-light);
}

.writer-next-action {
    display: grid;
    gap: 1px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background: var(--color-bg-subtle);
}

.writer-next-action small {
    color: var(--color-text-muted);
    font-size: 9px;
}

.writer-next-action strong {
    overflow: hidden;
    color: var(--color-text-secondary);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.writer-task-card__side {
    display: grid;
    justify-items: end;
    gap: 8px;
    min-width: 180px;
    padding-left: 18px;
    border-left: 1px solid var(--color-line);
}

.writer-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    background: var(--color-bg-subtle);
    color: var(--color-text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.writer-status--writing {
    color: var(--color-info);
}

.writer-status--writer_review {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.writer-status--writer_revision {
    background: var(--color-error-light);
    color: var(--color-error);
}

.writer-status--posting_a,
.writer-status--final_review_c,
.writer-status--completed {
    background: var(--color-success-light);
    color: var(--color-success);
}

.writer-due,
.writer-task-card__open {
    color: var(--color-text-muted);
    font-size: 12px;
}

.writer-due.is-overdue {
    color: var(--color-error);
}

.writer-due.is-due-soon {
    color: var(--color-warning);
}

.writer-task-card__revision {
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: var(--color-bg-subtle);
    color: var(--color-text-muted);
    font-size: 10px;
}

.writer-task-card__open {
    color: var(--color-primary);
    font-weight: 600;
}

.writer-empty {
    padding: 60px 20px;
    text-align: center;
}

.writer-empty__icon {
    display: inline-grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: var(--radius-full);
    background: var(--color-bg-subtle);
    color: var(--color-text-muted-2);
    font-size: 28px;
}

.writer-empty h2 {
    margin: 14px 0 4px;
}

.writer-empty p {
    margin: 0 0 18px;
    color: var(--color-text-muted);
}

.writer-pagination {
    padding: 0 20px 20px;
}

.writer-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: var(--color-text-muted);
    font-size: 13px;
}

.writer-breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}

.writer-breadcrumb i {
    font-size: 9px;
}

.writer-detail-header {
    margin-bottom: 22px;
}

.writer-detail-header h1 {
    margin: 8px 0 12px;
}

.writer-deadline-card {
    display: grid;
    gap: 3px;
    min-width: 250px;
    padding: 14px 16px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-lg);
    background: var(--color-bg-surface);
}

.writer-deadline-card span,
.writer-deadline-card small {
    color: var(--color-text-muted);
    font-size: 12px;
}

.writer-deadline-card.is-overdue {
    border-color: var(--color-error);
    background: var(--color-error-light);
}

.writer-deadline-card.is-overdue small {
    color: var(--color-error);
}

.writer-deadline-card.is-due-soon {
    border-color: var(--color-warning);
    background: color-mix(in srgb, var(--color-warning) 7%, var(--color-bg-surface));
}

.writer-deadline-card.is-due-soon small {
    color: var(--color-warning);
}

.writer-revision-alert {
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid var(--color-error);
    border-radius: var(--radius-lg);
    background: var(--color-error-light);
}

.writer-revision-alert__icon {
    display: inline-grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: var(--radius-lg);
    background: var(--color-bg-surface);
    color: var(--color-error);
}

.writer-revision-alert > div {
    flex: 1;
}

.writer-revision-alert p {
    margin: 3px 0 0;
    color: var(--color-text-muted);
    font-size: 12px;
}

.writer-revision-alert a {
    flex: 0 0 auto;
    color: var(--color-error);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.writer-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
    align-items: start;
    gap: 20px;
}

.writer-detail-column {
    display: grid;
    gap: 20px;
}

.writer-detail-column > .writer-panel,
.writer-comments {
    padding: 22px;
}

.writer-comments {
    position: sticky;
    top: 98px;
}

.writer-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.writer-section-heading h2,
.writer-section-heading p {
    margin: 0;
}

.writer-section-heading h2 {
    font-size: 18px;
}

.writer-section-heading p {
    margin-top: 3px;
    color: var(--color-text-muted);
    font-size: 13px;
}

.writer-brief__list {
    display: grid;
    gap: 1px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: var(--color-line);
}

.writer-brief__list > div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    padding: 13px 15px;
    background: var(--color-bg-surface);
}

.writer-brief__list dt {
    color: var(--color-text-muted);
}

.writer-brief__list dd {
    margin: 0;
    font-weight: 600;
}

.writer-subtopics {
    margin-top: 20px;
}

.writer-subtopics h3 {
    margin: 0 0 10px;
    font-size: 14px;
}

.writer-rich-text {
    padding: 15px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-lg);
    background: var(--color-bg-subtle);
    line-height: 1.75;
}

.writer-rich-text > :first-child {
    margin-top: 0;
}

.writer-rich-text > :last-child {
    margin-bottom: 0;
}

.writer-submit-form,
.writer-comment-form {
    display: grid;
    gap: 16px;
}

.writer-form-actions {
    justify-content: flex-end;
    gap: 10px;
}

.writer-document-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-lg);
    background: var(--color-bg-subtle);
}

.writer-document-card > div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.writer-document-card span {
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.writer-history {
    display: grid;
    gap: 10px;
}

.writer-history article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 14px;
    padding: 13px 14px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-md);
}

.writer-history article > div {
    display: grid;
}

.writer-history span,
.writer-history small {
    color: var(--color-text-muted);
    font-size: 12px;
}

.writer-history .writer-history__result {
    width: fit-content;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.writer-history__result--approved {
    background: var(--color-success-light);
    color: var(--color-success) !important;
}

.writer-history__result--revision_requested {
    background: var(--color-error-light);
    color: var(--color-error) !important;
}

.writer-history__result--pending {
    background: var(--color-primary-light);
    color: var(--color-primary) !important;
}

.writer-history a {
    color: var(--color-primary);
    text-decoration: none;
}

.writer-history small {
    grid-column: 1 / -1;
}

.writer-comments__list {
    display: grid;
    gap: 10px;
    max-height: 520px;
    margin-bottom: 18px;
    overflow-y: auto;
}

.writer-comment {
    padding: 13px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-lg);
    background: var(--color-bg-subtle);
}

.writer-comment--revision {
    border-color: var(--color-error);
    background: var(--color-error-light);
}

.writer-comment--revision.is-resolved {
    border-color: var(--color-success);
    background: var(--color-success-light);
}

.writer-comment__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.writer-comment__header time {
    color: var(--color-text-muted);
    font-size: 11px;
}

.writer-comment__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

.writer-comment__type,
.writer-comment__revision {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.writer-comment__type {
    background: var(--color-bg-surface);
    color: var(--color-error);
}

.writer-comment.is-resolved .writer-comment__type {
    color: var(--color-success);
}

.writer-comment__revision {
    background: var(--color-bg-surface);
    color: var(--color-text-muted);
}

.writer-comment__body {
    margin-top: 8px;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.writer-comment__body p {
    margin: 0;
}

.writer-comment__resolved-at {
    display: block;
    margin-top: 7px;
    color: var(--color-success);
    font-size: 11px;
}

.writer-comments__empty {
    padding: 30px 10px;
    color: var(--color-text-muted);
    text-align: center;
}

/* ======================== Content Writer Payments ======================== */
.writer-payments-page {
    width: 100%;
    color: var(--color-text-primary);
}
.writer-payments-page__header {
    margin-bottom: 18px;
}
.writer-payments-filter {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-lg);
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card-soft);
}
.writer-payments-filter__period {
    display: flex;
    align-items: end;
    gap: 8px;
}
.writer-payments-filter__nav {
    display: inline-grid;
    width: var(--filter-control-height);
    height: var(--filter-control-height);
    flex: 0 0 var(--filter-control-height);
    place-items: center;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--filter-control-radius);
    color: var(--color-text-secondary);
    background: var(--color-bg-surface);
    cursor: pointer;
    text-decoration: none;
}
.writer-payments-filter__nav:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.writer-payments-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.writer-payments-field__label {
    color: var(--color-text-secondary);
    font-size: 12px;
    font-weight: 600;
}
.writer-payments-field__control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    height: var(--filter-control-height);
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--filter-control-radius);
    color: var(--color-text-muted);
    background: var(--color-bg-surface);
}
.writer-payments-field .task-enhanced-select__trigger {
    height: var(--filter-control-height);
    min-height: var(--filter-control-height);
    border-radius: var(--filter-control-radius);
}
.writer-payments-field__control:focus-within,
.writer-rate-settings__money:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}
.writer-payments-field__control input,
.writer-rate-settings__money input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--color-text-primary);
    background: transparent;
    font: inherit;
}
.writer-payments-field__control input[type="month"] {
    appearance: none;
    min-height: 0 !important;
    height: auto;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.writer-payments-field__control .thai-date-field {
    border: none;
    padding: 0;
}
.writer-payments-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.writer-payments-summary__card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 86px;
    padding: 16px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-lg);
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card-soft);
}
.writer-payments-summary__icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 11px;
}
.writer-payments-summary__icon--primary {
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.writer-payments-summary__icon--info {
    color: var(--color-info);
    background: color-mix(in srgb, var(--color-info) 10%, var(--color-white));
}
.writer-payments-summary__icon--success {
    color: var(--color-success);
    background: var(--color-success-light);
}
.writer-payments-summary__icon--warning {
    color: var(--color-warning);
    background: color-mix(in srgb, var(--color-warning) 11%, var(--color-white));
}
.writer-payments-summary__card > div {
    display: grid;
    min-width: 0;
    gap: 3px;
}
.writer-payments-summary__card span {
    color: var(--color-text-muted);
    font-size: 12px;
}
.writer-payments-summary__card strong {
    overflow: hidden;
    font-size: 19px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.writer-payments-panel,
.writer-payment-profile {
    border: 1px solid var(--color-line-strong);
    border-radius: 14px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card-soft);
}
.writer-payments-panel {
    overflow: hidden;
}
.writer-payments-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--color-line);
}
.writer-payments-panel__header h2,
.writer-rate-settings__intro h2,
.writer-payment-profile h2 {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 17px;
    font-weight: 600;
}
.writer-payments-panel__header p,
.writer-rate-settings__intro p,
.writer-payment-profile p {
    margin: 3px 0 0;
    color: var(--color-text-muted);
    font-size: 12px;
}
.writer-payments-panel__count,
.writer-payments-rate-source,
.writer-payment-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: var(--radius-full);
    white-space: nowrap;
}
.writer-payments-panel__count {
    padding: 5px 10px;
    color: var(--color-text-muted);
    background: var(--color-bg-surface-soft);
    font-size: 12px;
    font-weight: 600;
}
.writer-payments-table-wrap {
    width: 100%;
    overflow-x: auto;
}
.writer-payments-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    font-size: 13px;
}
.writer-payments-table th,
.writer-payments-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--color-line);
    text-align: left;
    vertical-align: middle;
}
.writer-payments-table th {
    color: var(--color-text-muted);
    background: var(--color-bg-surface-soft);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.writer-payments-table tbody tr:last-child td {
    border-bottom: 0;
}
.writer-payments-table tbody tr:hover {
    background: var(--color-bg-surface-soft);
}
.writer-payments-table__row--interactive {
    cursor: pointer;
}
.writer-payments-table__row--interactive:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}
.writer-payments-table .is-number {
    text-align: right;
    white-space: nowrap;
}
.writer-payments-table .is-action {
    text-align: right;
}
.writer-payments-table__amount {
    color: var(--color-success);
    font-size: 14px;
    font-weight: 700;
}
.writer-payments-table__subtext {
    display: block;
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 11px;
}
.writer-payments-person,
.writer-payment-article {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}
.writer-payments-person > div,
.writer-payment-article > div {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.writer-payments-person strong,
.writer-payment-article strong {
    overflow: hidden;
    color: var(--color-text-primary);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.writer-payments-person span,
.writer-payment-article span {
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.writer-payments-rate-source {
    margin-top: 3px;
    padding: 2px 7px;
    color: var(--color-text-muted);
    background: var(--color-bg-elevated);
    font-size: 10px;
}
.writer-payments-rate-source.is-custom {
    color: var(--color-info);
    background: color-mix(in srgb, var(--color-info) 10%, var(--color-white));
}
.writer-payments-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    color: var(--color-text-secondary);
    background: var(--color-bg-surface);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.writer-payments-detail-button:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.writer-payments-detail-button.is-muted {
    color: var(--color-text-muted-2);
}
.writer-payments-detail-button.is-disabled {
    border-color: var(--color-line);
    color: var(--color-text-muted-2);
    background: var(--color-bg-surface-soft);
    cursor: not-allowed;
}
.writer-payments-empty {
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 54px 20px;
    color: var(--color-text-muted);
    text-align: center;
}
.writer-payments-empty > i {
    margin-bottom: 5px;
    color: var(--color-text-muted-2);
    font-size: 32px;
}
.writer-payments-empty strong {
    color: var(--color-text-primary);
}
.writer-payments-empty span {
    font-size: 12px;
}
.writer-rate-offcanvas {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    visibility: hidden;
    pointer-events: none;
}
.writer-rate-offcanvas.is-open {
    visibility: visible;
    pointer-events: auto;
}
.writer-rate-offcanvas__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: color-mix(in srgb, var(--color-text-primary) 42%, transparent);
    opacity: 0;
    cursor: default;
    transition: opacity 0.22s ease;
}
.writer-rate-offcanvas.is-open .writer-rate-offcanvas__overlay {
    opacity: 1;
}
.writer-rate-offcanvas__panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: min(620px, 100%);
    height: 100dvh;
    flex-direction: column;
    color: var(--color-text-primary);
    background: var(--color-bg-surface);
    box-shadow: -16px 0 40px color-mix(in srgb, var(--color-text-primary) 16%, transparent);
    outline: 0;
    transform: translateX(100%);
    transition: transform 0.25s ease;
}
.writer-rate-offcanvas.is-open .writer-rate-offcanvas__panel {
    transform: translateX(0);
}
.writer-rate-offcanvas__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--color-line);
}
.writer-rate-offcanvas__header h2 {
    margin: 2px 0 0;
    color: var(--color-text-primary);
    font-size: 18px;
    font-weight: 600;
}
.writer-rate-offcanvas__header p {
    margin: 3px 0 0;
    color: var(--color-text-muted);
    font-size: 12px;
}
.writer-rate-offcanvas__eyebrow {
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.writer-rate-offcanvas__close {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text-muted);
    background: var(--color-bg-surface);
    cursor: pointer;
}
.writer-rate-offcanvas__close:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.writer-rate-offcanvas form {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
}
.writer-rate-offcanvas__body {
    min-height: 0;
    flex: 1 1 auto;
    padding: 20px 22px;
    overflow-y: auto;
}
body.writer-rate-offcanvas-open {
    overflow: hidden;
}
.writer-payment-detail-offcanvas .writer-rate-offcanvas__panel {
    width: min(960px, 100%);
}
.writer-payment-detail-offcanvas__body {
    background: var(--color-bg-base);
}
.writer-payment-detail-offcanvas .writer-payments-table-wrap {
    overflow-x: visible;
}
.writer-payment-detail-offcanvas .writer-payments-table {
    min-width: 0;
    table-layout: fixed;
}
.writer-payment-detail-offcanvas .writer-payments-table :is(th, td) {
    padding-right: 12px;
    padding-left: 12px;
}
.writer-payment-detail-offcanvas .writer-payments-table :is(th, td):nth-child(1) {
    width: 28%;
}
.writer-payment-detail-offcanvas .writer-payments-table :is(th, td):nth-child(2) {
    width: 18%;
}
.writer-payment-detail-offcanvas .writer-payments-table :is(th, td):nth-child(3) {
    width: 10%;
}
.writer-payment-detail-offcanvas .writer-payments-table :is(th, td):nth-child(4) {
    width: 15%;
}
.writer-payment-detail-offcanvas .writer-payments-table :is(th, td):nth-child(5) {
    width: 13%;
}
.writer-payment-detail-offcanvas .writer-payments-table :is(th, td):nth-child(6) {
    width: 16%;
}
.writer-payment-detail-offcanvas .writer-payment-article {
    min-width: 0;
}
.writer-payment-detail-offcanvas .writer-payments-detail-button {
    min-width: 112px;
    max-width: 100%;
    padding-right: 12px;
    padding-left: 12px;
}
.writer-payment-detail-state {
    display: grid;
    min-height: 240px;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: var(--color-text-muted);
    text-align: center;
}
.writer-payment-detail-state > i {
    color: var(--color-primary);
    font-size: 24px;
}
.writer-payment-detail-state.is-error > i {
    color: var(--color-error);
}
.writer-payment-detail-state strong {
    color: var(--color-text-primary);
    font-size: 15px;
}
.writer-payment-detail-state span {
    font-size: 12px;
}
.writer-payment-detail-state > div {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.writer-rate-settings__intro {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-lg);
    background: var(--color-bg-surface-soft);
}
.writer-rate-settings__default {
    display: grid;
    gap: 6px;
    color: var(--color-text-secondary);
    font-size: 12px;
    font-weight: 600;
}
.writer-rate-settings__money {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    color: var(--color-text-muted);
    background: var(--color-bg-surface);
}
.writer-rate-settings__list {
    display: grid;
    grid-template-columns: 1fr;
}
.writer-rate-settings__section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-line);
}
.writer-rate-settings__section-heading > div {
    display: grid;
    gap: 2px;
}
.writer-rate-settings__section-heading strong {
    font-size: 14px;
}
.writer-rate-settings__section-heading span {
    color: var(--color-text-muted);
    font-size: 11px;
}
.writer-rate-settings__section-heading > span {
    padding: 4px 8px;
    border-radius: var(--radius-full);
    background: var(--color-bg-surface-soft);
    font-weight: 600;
}
.writer-rate-settings__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 13px 0;
    border-bottom: 1px solid var(--color-line);
}
.writer-rate-settings__row > label {
    width: 210px;
    flex: 0 0 210px;
}
.writer-rate-settings__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 22px;
    border-top: 1px solid var(--color-line);
    background: var(--color-bg-surface);
}
.writer-rate-settings__footer > span {
    color: var(--color-text-muted);
    font-size: 12px;
}
.writer-payment-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
    padding: 18px;
}
.writer-payment-profile__identity {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 230px;
}
.writer-payment-profile__identity > .avatar {
    flex: 0 0 56px;
}
.writer-payment-profile__person {
    min-width: 0;
}
.writer-payment-profile__person > span {
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
}
.writer-payment-profile__metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(125px, 1fr));
    flex: 1 1 auto;
    max-width: 820px;
}
.writer-payment-profile__metrics > div {
    display: grid;
    gap: 3px;
    padding: 4px 18px;
    border-left: 1px solid var(--color-line);
}
.writer-payment-profile__metrics span {
    color: var(--color-text-muted);
    font-size: 11px;
}
.writer-payment-profile__metrics strong {
    font-size: 16px;
}
.writer-payment-profile__metrics .is-total strong {
    color: var(--color-success);
}
.writer-payment-article__icon {
    display: inline-grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 9px;
    color: var(--color-primary) !important;
    background: var(--color-primary-light);
    font-size: 14px !important;
}
.writer-payment-status {
    padding: 4px 8px;
    color: var(--color-warning);
    background: color-mix(in srgb, var(--color-warning) 10%, var(--color-white));
    font-size: 11px;
    font-weight: 600;
}
.writer-payment-status.is-complete {
    color: var(--color-success);
    background: var(--color-success-light);
}

/* Shared empty states for data tables */
.app-empty-table-shell {
    width: 100%;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.app-empty-table-card {
    border: 1px solid var(--color-line-strong) !important;
    border-radius: 12px !important;
    background: var(--color-white) !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.task-project-groups .app-empty-table-card {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

table.app-empty-table,
.app-empty-table.app-standard-table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto;
    border: 0;
    background: transparent;
}

.app-empty-table > thead,
.app-empty-table > colgroup {
    display: none;
}

.app-empty-table > tbody,
.app-empty-table > tbody > tr,
.app-empty-table > tbody > tr > .app-empty-table__cell {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

.app-empty-table > tbody > tr > .app-empty-table__cell {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 40px 24px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--color-text-muted);
    text-align: center !important;
    vertical-align: middle;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.app-empty-table > tbody > tr > .app-empty-table__cell > * {
    max-width: 520px;
    margin-right: auto;
    margin-left: auto;
}
.app-empty-table > tbody > tr > .app-empty-table__cell > button {
    margin-top: 12px;
}

.app-empty-table > tbody > tr > .app-empty-table__cell .app-empty-state,
.app-empty-table > tbody > tr > .app-empty-table__cell [class*="empty-state"],
.app-empty-table > tbody > tr > .app-empty-table__cell [class*="__empty-content"] {
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.app-empty-table__action,
.publishing-empty-action {
    width: fit-content;
    margin-top: 18px !important;
}

.publishing-empty-state {
    min-height: 390px;
    padding: 40px;
    border: 1px dashed var(--color-line-strong);
    border-radius: 16px;
    background: var(--color-white);
}

.publishing-empty-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.publishing-empty-state h2 {
    margin-top: 17px;
    font-size: 20px;
}

.publishing-empty-state p {
    margin-bottom: 0;
}

/* Company video content */
body.company-videos-overlay-open {
    overflow: hidden;
}
.main-content .app-data-table-card .company-articles-table-scroll > table.company-videos-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}
.company-videos-table th, .company-videos-table td {
    vertical-align: middle;
    overflow: hidden;
}
.main-content .company-videos-table thead th {
    overflow-wrap: normal;
    white-space: nowrap;
    padding-right: 6px;
    padding-left: 6px;
    font-size: 13px;
    font-weight: 700;
}
.company-videos-table th:first-child, .company-videos-table td:first-child {
    width: 4%;
}
.company-videos-select-drag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.company-videos-table th:nth-child(2), .company-videos-table td:nth-child(2) {
    width: 4%;
}
.company-videos-table th:nth-child(3), .company-videos-table td:nth-child(3) {
    width: 13%;
}
.company-videos-table th:nth-child(4), .company-videos-table td:nth-child(4), .company-videos-table th:nth-child(5), .company-videos-table td:nth-child(5) {
    width: 6%;
}
.company-videos-table th:nth-child(6), .company-videos-table td:nth-child(6), .company-videos-table th:nth-child(7), .company-videos-table td:nth-child(7), .company-videos-table th:nth-child(8), .company-videos-table td:nth-child(8) {
    width: 8%;
}
.company-videos-table th:nth-child(9), .company-videos-table td:nth-child(9) {
    width: 8%;
}
.company-videos-table th:nth-child(10), .company-videos-table td:nth-child(10) {
    width: 9%;
}
.company-videos-table th:nth-child(11), .company-videos-table td:nth-child(11) {
    width: 9%;
}
.company-videos-table th:nth-child(12), .company-videos-table td:nth-child(12) {
    width: 6%;
}
.main-content .company-videos-table th:nth-child(13), .main-content .company-videos-table td:nth-child(13) {
    width: 10%;
    min-width: 118px;
}
.company-videos-title a {
    color: var(--color-text-primary);
    text-decoration: none;
}
.company-videos-title a:hover {
    color: var(--color-primary);
}
.company-videos-tags, .company-videos-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.company-videos-tags {
    max-width: 100%;
    overflow: hidden;
    flex-wrap: nowrap;
}
.company-videos-tags span, .company-videos-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    padding: 3px 7px;
    background: var(--color-white);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.company-videos-muted {
    color: var(--color-text-muted-2);
}
.company-videos-member-trigger {
    display: inline-flex;
    width: 100%;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}
.company-videos-member-trigger:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.company-videos-platform-trigger {
    display: inline-flex;
    width: 100%;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--color-text-primary);
    font: inherit;
    cursor: pointer;
}
.company-videos-platform-trigger:hover, .company-videos-platform-trigger:focus-visible, .company-videos-platform-trigger.is-editing {
    outline: 0;
    color: var(--color-primary);
}
.company-videos-platform-icon-fallback {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 10px;
}
.company-videos-inline-date-form {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}
.company-videos-inline-date-form [data-video-inline-date] {
    display: none;
}
.company-videos-inline-date-form .thai-date-field {
    height: 30px;
    min-height: 30px;
    justify-content: center;
    border: 0;
    padding: 5px 2px;
    background: transparent;
    font-size: 11px;
}
.company-videos-inline-date-form .thai-date-field:hover, .company-videos-inline-date-form .thai-date-field:focus-visible, .company-videos-inline-date-form .thai-date-field[aria-expanded="true"] {
    border-color: transparent;
    outline: 0;
    background: transparent;
    color: var(--color-primary);
    box-shadow: none;
}
.company-videos-inline-date-form .thai-date-field__icon {
    display: none;
}
.company-videos-table .company-articles-cell-button--cover {
    max-width: calc(100% - 8px);
    gap: 6px;
    padding: 5px 12px;
    font-size: 10px;
    white-space: nowrap;
}
.company-videos-table .company-videos-status-trigger {
    min-width: 92px;
    justify-content: center;
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    min-height: 29px;
    border-color: var(--progress-scale-color, var(--color-line-strong));
    padding: 5px 10px;
    background: color-mix(in srgb, var(--progress-scale-color, var(--color-text-muted-2)) 8%, var(--color-white));
    color: var(--progress-scale-color, var(--color-text-muted));
    font-size: 11px;
}
.company-videos-status-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--progress-scale-color, var(--color-text-muted-2));
}
.company-videos-overview-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    padding: 20px;
    background: var(--color-white);
    color: var(--color-text-muted);
}
.company-videos-actions {
    width: max-content;
    margin-left: auto;
    flex-wrap: nowrap;
}
.company-videos-actions form {
    margin: 0;
}
.company-videos-empty {
    padding: 35px !important;
    text-align: center;
    color: var(--color-text-muted);
}
.company-videos-empty .company-articles-button {
    margin-left: 10px;
}
.company-videos-pagination {
    padding: 14px;
}
.company-videos-notice, .company-videos-error {
    margin: 0 0 16px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    padding: 12px 16px;
    background: var(--color-white);
}
.company-videos-notice {
    color: var(--color-text-primary);
}
.company-videos-error {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.company-videos-error ul {
    margin-bottom: 0;
}
.company-videos-form {
    align-content: start;
}
.company-videos-form-hero {
    display: grid;
    grid-template-columns: 225px minmax(0, 1fr);
    gap: 22px;
    border: 1px solid var(--color-line);
    border-radius: 17px;
    padding: 16px;
    background: var(--color-white);
}
.company-videos-form-hero-content {
    display: grid;
    align-content: start;
    gap: 14px;
    min-width: 0;
}
.company-videos-cover-editor {
    position: relative;
    width: 225px;
    height: 230px;
}
.company-videos-cover-preview {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    padding: 12px;
    text-align: center;
}
.company-videos-cover-upload, .company-videos-cover-remove {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: var(--color-white);
    color: var(--color-primary);
    cursor: pointer;
}
.company-videos-cover-remove {
    right: 54px;
}
.company-videos-cover-remove[hidden] {
    display: none;
}
.company-videos-cover-upload input {
    display: none;
}
.company-videos-form-grid, .company-videos-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.company-videos-field {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    padding: 12px;
    background: var(--color-white);
}
.company-videos-field > span {
    font-weight: 700;
}
.company-videos-field small {
    color: var(--color-text-muted);
    font-weight: 400;
}
.company-videos-field b {
    color: var(--color-primary);
}
.company-videos-field input:not([type="hidden"]):not([type="file"]), .company-videos-field textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--color-line-strong);
    border-radius: 9px;
    padding: 10px;
    background: var(--color-white);
    color: var(--color-text-primary);
}
.company-videos-field textarea {
    min-height: 92px;
    resize: vertical;
}
.company-videos-field--compact {
    border: 0;
    padding: 0;
}
.company-videos-choice {
    position: relative;
    min-width: 0;
}
.company-videos-choice-trigger {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--filter-control-radius);
    padding: 7px 11px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-primary);
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}
.company-videos-status-trigger {
    min-height: 34px;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
}
.company-videos-choice-trigger:hover, .company-videos-choice-trigger:focus-visible, .company-videos-choice-trigger.is-editing {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.company-videos-choice-trigger .company-videos-choice-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.company-videos-choice-trigger .fa-chevron-down {
    margin-left: auto;
    color: var(--color-text-muted-2);
}
.company-videos-choice-trigger > .video-planner-choice-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}
.company-videos-choice-panel {
    z-index: 10040;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 310px;
    max-height: min(390px, calc(100vh - 24px));
}
.company-videos-choice-panel .task-inline-member-list {
    max-height: 265px;
}
.company-videos-choice-panel .company-articles-choice-manage {
    width: 100%;
}
.company-videos-choice-panel .task-inline-choice-option {
    width: 100%;
}
.company-videos-choice-panel--members .task-inline-choice-option,
.company-videos-choice-panel--editors .task-inline-choice-option,
.company-videos-choice-panel--platforms .task-inline-choice-option {
    grid-template-columns: 30px minmax(0, 1fr) 18px;
    gap: 9px;
    min-height: 42px;
}
.company-videos-choice-panel .task-inline-member-picker-footer button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--color-line);
    border-radius: 9px;
    background: var(--color-white);
    color: var(--color-primary);
    cursor: pointer;
}
.company-videos-field--wide {
    width: 100%;
}
.company-videos-rich-editor {
    min-height: 180px;
}
.company-videos-rich-editor .ql-editor {
    min-height: 150px;
}
.company-videos-rich-editor .ql-editor img, .company-videos-rich-content img {
    display: block;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
.company-videos-reference-upload {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}
.company-videos-reference-preview {
    display: grid;
    min-height: 110px;
    place-items: center;
    align-content: center;
    gap: 7px;
    overflow: hidden;
    border: 1px dashed var(--color-line-strong);
    border-radius: 10px;
    background: var(--color-bg-surface-soft);
    color: var(--color-text-muted-2);
}
.company-videos-reference-preview.is-dragging {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}
.company-videos-reference-preview img {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: contain;
}
.company-videos-reference-actions {
    display: grid;
    gap: 8px;
}
.company-videos-reference-actions label {
    cursor: pointer;
}
.company-videos-reference-actions input[type="file"] {
    display: none;
}
.company-videos-reference-actions [hidden] {
    display: none;
}
.company-videos-cover-brief {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 220px);
    align-items: center;
    gap: 12px;
}
.company-videos-cover-brief > div {
    display: grid;
    gap: 5px;
}
.company-videos-cover-brief small {
    color: var(--color-text-muted);
}
.company-videos-cover-brief img {
    display: block;
    width: 100%;
    max-height: 150px;
    border-radius: 9px;
    object-fit: contain;
}
.company-videos-option-row:has(.company-videos-option-icon) {
    grid-template-columns: 44px minmax(0, 1fr) 40px;
}
.company-videos-option-row:has(> input[type="color"]) {
    grid-template-columns: minmax(0, 1fr) 42px 40px;
}
.company-videos-option-row:has(> input[type="color"]):has(> label) {
    grid-template-columns: minmax(0, 1fr) 42px auto 40px;
}
.company-videos-option-row > input[type="color"] {
    width: 42px;
    height: 40px;
    padding: 4px;
    cursor: pointer;
}
.company-videos-option-row > .company-videos-option-icon {
    display: block;
    cursor: pointer;
}
.company-videos-option-icon > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.company-videos-option-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.company-videos-option-icon input {
    display: none;
}
.company-videos-overview-grid > div, .company-videos-overview-section {
    display: grid;
    gap: 6px;
    border: 1px solid var(--color-line);
    border-radius: 13px;
    padding: 14px;
    background: var(--color-white);
}
.company-videos-overview-grid small {
    color: var(--color-text-muted);
}
.company-videos-overview-section h4 {
    margin: 0 0 6px;
}
.company-videos-overview-section a {
    overflow-wrap: anywhere;
    color: #0066cc;
    text-decoration: underline;
}
.company-videos-close {
    display: inline-grid;
    width: 35px;
    height: 35px;
    place-items: center;
    color: var(--color-text-muted);
}
/* Content video planner */
.video-planner {
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 16px;
    color: var(--color-text-primary);
}
.video-planner__header, .video-planner-toolbar, .video-planner-section-heading, .video-planner-insight header, .video-planner-card__top, .video-planner-card footer, .video-planner-column > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.video-planner__header h1, .video-planner-section-heading h2, .video-planner-insight h3 {
    margin: 0;
}
.video-planner__header h1 {
    font-size: 27px;
}
.video-planner__header > div:first-child > p:last-child {
    margin: 4px 0 0;
    color: var(--color-text-muted);
}
.video-planner__eyebrow, .video-planner-section-heading p {
    margin: 0 0 3px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.video-planner__header-actions, .video-planner-view-switch, .video-planner-platforms, .video-planner-people, .video-planner-platform-icons {
    display: flex;
    align-items: center;
    gap: 7px;
}
.video-planner-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--color-line-strong);
    border-radius: 11px;
    padding: 9px 15px;
    background: var(--color-white);
    color: var(--color-text-primary);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.video-planner-button--primary {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
}
.video-planner-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--color-line);
    border-radius: 16px;
    background: var(--color-white);
    box-shadow: var(--shadow-card-soft);
}
.video-planner-period {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    gap: 7px;
}
.video-planner-period > a, .video-planner-period > .thai-date-field {
    display: inline-flex;
    min-height: var(--filter-control-height);
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--filter-control-radius);
    background: var(--color-white);
    color: var(--color-text-primary);
    text-decoration: none;
}
.video-planner-period > a {
    width: var(--filter-control-height);
}
.video-planner-period > .thai-date-field {
    width: 230px;
    font-weight: 700;
}
.video-planner-period input {
    width: 230px;
    height: var(--filter-control-height);
}
.video-planner-filter {
    display: grid;
    min-width: 0;
    flex: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.video-planner-search {
    display: flex;
    min-width: 0;
    height: var(--filter-control-height);
    align-items: center;
    gap: 9px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--filter-control-radius);
    padding: 0 13px;
    background: var(--color-white);
    color: var(--color-text-muted);
}
.video-planner-search:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.video-planner-search input, .video-planner-filter select {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text-primary);
    font: inherit;
}
.video-planner-search input {
    height: 100%;
}
.video-planner-filter select {
    height: var(--filter-control-height);
    min-height: var(--filter-control-height);
    border: 1px solid var(--color-line-strong);
    border-radius: var(--filter-control-radius);
    padding: 0 10px;
}
.video-planner-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.video-planner-stat {
    display: flex;
    min-width: 0;
    min-height: 104px;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    padding: 15px;
    background: var(--color-white);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-card-soft);
}
.video-planner-stat:hover, .video-planner-stat.is-active {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-hover);
}
.video-planner-stat__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    overflow: hidden;
    border-radius: 11px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 19px;
}
.video-planner-stat__icon img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}
.video-planner-stat strong {
    display: block;
    font-size: 22px;
    line-height: 1.15;
}
.video-planner-stat p, .video-planner-stat small {
    display: block;
    margin: 3px 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.video-planner-stat small {
    color: var(--color-text-muted);
    font-size: 11px;
}
.video-planner-progress {
    display: block;
    height: 5px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--color-bg-elevated);
}
.video-planner-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--color-primary);
}
.video-planner-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 315px;
    align-items: start;
    gap: 14px;
}
.video-planner-calendar-card, .video-planner-insight, .video-planner-week, .video-planner-pipeline {
    min-width: 0;
    max-width: 100%;
    border: 1px solid var(--color-line);
    border-radius: 16px;
    background: var(--color-white);
    box-shadow: var(--shadow-card-soft);
}
.video-planner-section-heading {
    min-height: 65px;
    padding: 13px 15px;
    border-bottom: 1px solid var(--color-line);
}
.video-planner-section-heading h2 {
    font-size: 17px;
}
.video-planner-section-heading > span {
    color: var(--color-text-muted);
    font-size: 12px;
}
.video-planner-view-switch {
    padding: 3px;
    border-radius: 9px;
    background: var(--color-bg-elevated);
}
.video-planner-view-switch :is(button, a) {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    padding: 5px 11px;
    background: transparent;
    color: var(--color-text-muted);
    font: inherit;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.video-planner-view-switch button.is-active, .video-planner-view-switch :is(button, a):hover {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: var(--shadow-card);
}
.video-planner-calendar-card [data-video-planner-panel][hidden] {
    display: none;
}
.video-planner-calendar-day-view {
    display: grid;
    grid-template-columns: minmax(190px, 32%) minmax(0, 1fr);
    gap: 22px;
    min-height: 420px;
    padding: 28px;
}
.video-planner-calendar-day-view__date {
    display: flex;
    align-items: center;
    align-self: start;
    gap: 14px;
    border-radius: 16px;
    padding: 24px;
    background: color-mix(in srgb, var(--color-primary) 5%, var(--color-white));
    color: var(--color-primary);
}
.video-planner-calendar-day-view__date strong {
    font-size: 44px;
    line-height: 1;
}
.video-planner-calendar-day-view__date span {
    font-size: 14px;
    line-height: 1.5;
}
.video-planner-calendar-day-view__content h3 {
    margin-bottom: 14px;
    font-size: 18px;
}
.video-planner-calendar-day-view__items {
    display: grid;
    align-content: start;
    gap: 9px;
}
.video-planner-calendar-day-view__items .video-planner-event {
    min-height: var(--filter-control-height);
    font-size: 13px;
}
.video-planner-calendar-day-view__items .video-planner-event__platforms img {
    width: 19px;
    height: 19px;
}
.video-planner-calendar-day-view__empty {
    padding: 40px 12px;
    color: var(--color-text-muted);
    text-align: center;
}
.video-planner-calendar-year-view {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
}
.video-planner-calendar-year-view__month {
    min-width: 0;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    padding: 16px;
}
.video-planner-calendar-year-view__month > a {
    color: var(--color-text-primary);
    font-weight: 700;
    text-decoration: none;
}
.video-planner-calendar-year-view__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    margin-top: 12px;
    text-align: center;
}
.video-planner-calendar-year-view__grid :is(span, a) {
    position: relative;
    display: grid;
    min-height: 28px;
    place-items: center;
    border-radius: 7px;
    color: var(--color-text-muted);
    font-size: 11px;
    text-decoration: none;
}
.video-planner-calendar-year-view__grid .is-heading {
    font-weight: 700;
}
.video-planner-calendar-year-view__grid a:hover, .video-planner-calendar-year-view__grid a.is-today {
    background: var(--color-primary);
    color: var(--color-white);
}
.video-planner-calendar-year-view__grid a.has-content::after {
    position: absolute;
    bottom: 1px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-primary);
    content: '';
}
.video-planner-calendar-year-view__grid a.is-today.has-content::after {
    background: var(--color-white);
}
.video-planner-calendar__weekdays, .video-planner-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}
.video-planner-calendar__weekdays span {
    padding: 9px;
    border-bottom: 1px solid var(--color-line);
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}
.video-planner-day {
    min-width: 0;
    min-height: 122px;
    border-right: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    padding: 7px;
    background: var(--color-white);
}
.video-planner-day:nth-child(7n) {
    border-right: 0;
}
.video-planner-day.is-outside {
    background: var(--color-bg-surface-soft);
    opacity: 0.64;
}
.video-planner-day__number {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    margin-bottom: 5px;
    border-radius: 50%;
    color: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.video-planner-day.is-today .video-planner-day__number {
    background: var(--color-primary);
    color: var(--color-white);
}
.video-planner-day__items {
    display: grid;
    gap: 4px;
}
.video-planner-event {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    border-left: 3px solid var(--color-info);
    border-radius: 6px;
    padding: 5px 6px;
    background: color-mix(in srgb, var(--color-info) 8%, var(--color-white));
    color: var(--color-text-primary);
    font-size: 10px;
    text-decoration: none;
    width: 100%;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}
.video-planner-day__items > .video-planner-event:nth-child(n + 4) {
    display: none;
}
.video-planner-event--review {
    border-left-color: var(--color-warning);
    background: color-mix(in srgb, var(--color-warning) 9%, var(--color-white));
}
.video-planner-event--publish {
    border-left-color: var(--color-success);
    background: color-mix(in srgb, var(--color-success) 9%, var(--color-white));
}
.video-planner-event span {
    flex: 0 0 auto;
    color: var(--color-text-muted);
}
.video-planner-event strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.video-planner-event__platforms {
    display: flex;
    align-items: center;
    gap: 2px;
}
.video-planner-event__platforms img {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    object-fit: contain;
}
.video-planner-event em {
    flex: 0 0 auto;
    color: var(--color-text-muted);
    font-size: 9px;
    font-style: normal;
}
.video-planner-day__more {
    padding-left: 6px;
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 600;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.video-planner-day-dialog {
    display: none;
    position: fixed;
    z-index: 10030;
    inset: 0;
    align-items: center;
    justify-content: center;
}
.video-planner-day-dialog.is-open {
    display: flex;
}
.video-planner-day-dialog__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: color-mix(in srgb, var(--color-text-primary) 48%, transparent);
}
.video-planner-day-dialog__panel {
    position: relative;
    width: min(460px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 18px;
    border-radius: 14px;
    background: var(--color-white);
    box-shadow: var(--shadow-hover);
}
.video-planner-day-dialog__panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.video-planner-day-dialog__panel h2 {
    margin: 0;
    font-size: 18px;
}
.video-planner-day-dialog__panel header button {
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
}
.video-planner-day-dialog__items {
    display: grid;
    gap: 8px;
}
.video-planner-day-dialog__items .video-planner-event {
    display: flex;
    min-height: 38px;
    font-size: 13px;
}
.video-planner-insights {
    display: grid;
    gap: 14px;
}
.video-planner-insight {
    padding: 14px;
}
.video-planner-insight header button {
    border: 0;
    background: transparent;
    color: var(--color-primary);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}
.video-planner-donut {
    display: grid;
    width: 104px;
    height: 104px;
    place-content: center;
    margin: 14px auto;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-white) 52%, transparent 54%), var(--planner-chart, conic-gradient(var(--color-primary) 0 100%));
    text-align: center;
}
.video-planner-donut--status {
    background: radial-gradient(circle, var(--color-white) 52%, transparent 54%), var(--planner-chart, conic-gradient(var(--color-success) 0 100%));
}
.video-planner-donut strong, .video-planner-donut span {
    display: block;
}
.video-planner-donut strong {
    font-size: 22px;
}
.video-planner-donut span {
    color: var(--color-text-muted);
    font-size: 10px;
}
.video-planner-legend {
    display: grid;
    gap: 5px;
}
.video-planner-legend a {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border-radius: 7px;
    padding: 5px 6px;
    color: var(--color-text-secondary);
    font-size: 11px;
    text-decoration: none;
}
.video-planner-legend a:hover, .video-planner-legend a.is-active {
    background: color-mix(in srgb, var(--planner-option-color, var(--color-primary)) 10%, var(--color-white));
    color: var(--planner-option-color, var(--color-primary));
}
.video-planner-legend a > i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--planner-option-color, var(--color-primary));
}
.video-planner-legend--status a > i {
    background: var(--planner-option-color, var(--progress-scale-color, var(--color-text-muted-2)));
}
.video-planner-week, .video-planner-pipeline {
    scroll-margin-top: 94px;
}
.video-planner-table-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    contain: inline-size layout paint;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 18px;
}
.video-planner-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 12px;
}
.video-planner-table th, .video-planner-table td {
    border-bottom: 1px solid var(--color-line);
    padding: 12px 6px;
    text-align: center;
    vertical-align: middle;
}
.video-planner-table th:first-child, .video-planner-table td:first-child {
    text-align: left;
}
.video-planner-table td:not(:first-child) > form {
    display: flex;
    justify-content: center;
}
.video-planner-table td:not(:first-child) > button,
.video-planner-table td:not(:first-child) > .company-videos-choice {
    margin-inline: auto;
}
.video-planner-table th {
    background: var(--color-white);
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
}
.video-planner-filter__top {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 14px;
}
.video-planner-filter__top .video-planner-search {
    flex: 1;
    min-height: var(--filter-control-height);
}
.video-planner-list__pagination {
    padding: 18px;
}
.video-planner-list__name {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--color-text-primary);
    font: inherit;
    font-weight: 600;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}
.video-planner-list__name[hidden], .video-planner-list__title input[hidden] {
    display: none;
}
.video-planner-platforms {
    flex-wrap: wrap;
}
.video-planner-platforms span, .video-planner-category, .video-planner-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 99px;
    padding: 4px 8px;
    background: var(--color-bg-elevated);
    white-space: nowrap;
}
.video-planner-platforms img, .video-planner-platform-icons img {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    object-fit: contain;
}
.video-planner-people img {
    width: 25px;
    height: 25px;
    margin-left: -6px;
    border: 2px solid var(--color-white);
    border-radius: 50%;
    object-fit: cover;
}
.video-planner-people img:first-child {
    margin-left: 0;
}
.video-planner-status {
    border: 1px solid color-mix(in srgb, var(--progress-scale-color, var(--color-text-muted-2)) 35%, var(--color-white));
    border-radius: 999px;
    background: color-mix(in srgb, var(--progress-scale-color, var(--color-text-muted-2)) 9%, var(--color-white));
    color: var(--progress-scale-color, var(--color-text-muted));
}
.video-planner-table .company-videos-choice-trigger .video-planner-status {
    flex: 0 1 auto;
    padding: 3px 7px;
    font-size: 11px;
}
.video-planner-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.video-planner-empty {
    padding: 28px !important;
    color: var(--color-text-muted);
    text-align: center !important;
}
.video-planner-board {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 10px;
    overflow-x: auto;
    contain: inline-size layout paint;
    padding: 12px;
    scrollbar-width: thin;
}
.video-planner-column {
    width: 240px;
    min-width: 240px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    padding: 9px;
    background: color-mix(in srgb, var(--progress-scale-color, var(--color-text-muted-2)) 5%, var(--color-bg-surface-soft));
}
.video-planner-column > header {
    min-height: 34px;
    margin-bottom: 8px;
}
.video-planner-column > header > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}
.video-planner-column > header i {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--progress-scale-color, var(--color-text-muted-2));
}
.video-planner-column > header strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.video-planner-column > header > span {
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 99px;
    background: var(--color-white);
    color: var(--color-text-muted);
    font-size: 10px;
}
.video-planner-column__cards {
    display: grid;
    min-height: 70px;
    align-content: start;
    gap: 7px;
}
.video-planner-card {
    cursor: pointer;
    display: grid;
    gap: 7px;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    padding: 10px;
    background: var(--color-white);
    color: var(--color-text-primary);
    text-decoration: none;
    box-shadow: var(--shadow-card);
}
.video-planner-card:hover {
    border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-white));
    transform: translateY(-1px);
}
.video-planner-card > strong {
    font-size: 12px;
    line-height: 1.45;
}
.video-planner-card > span, .video-planner-card footer small {
    color: var(--color-text-muted);
    font-size: 10px;
}
.video-planner-card [data-video-drag-handle] {
    touch-action: none;
    user-select: none;
    padding: 2px 5px;
    color: var(--color-text-muted-2);
    cursor: grab;
}
.video-planner-column__add {
    width: 100%;
    margin-top: 8px;
    border: 0;
    padding: 7px;
    background: transparent;
    color: var(--color-text-muted);
    font: inherit;
    font-size: 11px;
    text-align: left;
    cursor: pointer;
}
.video-planner-column__add:hover {
    color: var(--color-primary);
}
.video-planner-list__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-muted);
    font-size: 12px;
}
.video-planner-list__add {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--color-primary);
    border-radius: 9px;
    padding: 7px 11px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.video-planner-table th:first-child, .video-planner-table td:first-child {
    width: 16%;
}
.video-planner-table th:nth-child(2), .video-planner-table td:nth-child(2) {
    width: 7%;
}
.video-planner-table th:nth-child(3), .video-planner-table td:nth-child(3) {
    width: 10%;
}
.video-planner-table th:nth-child(4), .video-planner-table td:nth-child(4) {
    width: 8%;
}
.video-planner-table th:nth-child(5), .video-planner-table td:nth-child(5) {
    width: 7%;
}
.video-planner-table th:nth-child(6), .video-planner-table td:nth-child(6), .video-planner-table th:nth-child(7), .video-planner-table td:nth-child(7), .video-planner-table th:nth-child(8), .video-planner-table td:nth-child(8) {
    width: 10%;
}
.video-planner-table th:nth-child(9), .video-planner-table td:nth-child(9) {
    width: 10%;
}
.video-planner-table th:nth-child(10), .video-planner-table td:nth-child(10), .video-planner-table th:nth-child(11), .video-planner-table td:nth-child(11), .video-planner-table th:nth-child(12), .video-planner-table td:nth-child(12) {
    width: 4%;
    text-align: center;
}
.video-planner-table tbody tr[data-video-id] {
    cursor: pointer;
}
.video-planner-table tbody tr[data-video-id]:hover {
    background: var(--color-bg-surface-soft);
}
.video-planner-list__title {
    display: flex;
    align-items: center;
    gap: 7px;
}
.video-planner-list__drag {
    flex: 0 0 auto;
    padding: 5px 2px;
    color: var(--color-text-muted-2);
    cursor: grab;
    touch-action: none;
    user-select: none;
}
.video-planner-list__title form {
    min-width: 0;
    flex: 1;
}
.video-planner-list__title input {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 7px 8px;
    background: transparent;
    color: var(--color-text-primary);
    font: inherit;
    font-weight: 600;
}
.video-planner-list__title input:focus {
    border-color: var(--color-line-strong);
    outline: 0;
    background: var(--color-white);
}
.video-planner-table .company-videos-choice-trigger {
    min-height: 34px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}
.video-planner-list__date input {
    width: 100%;
    height: 34px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--color-text-primary);
    font: inherit;
    font-size: 12px;
    text-align: center;
}
.video-planner-list__date .thai-date-field {
    height: auto;
    min-height: 32px;
    justify-content: center;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    font-size: 12px;
    text-align: center;
}
.video-planner-list__date .thai-date-field__icon {
    display: none;
}
.video-planner-list__date .thai-date-field__value span, .video-planner-list__date .thai-date-field__value small {
    display: block;
}
.video-planner-list__date .thai-date-field__value small {
    margin-top: 3px;
    color: var(--color-text-muted);
    font-size: inherit;
}
.video-planner-list__date.is-soon :is(input, .thai-date-field__value span, .thai-date-field__value small) {
    color: var(--color-warning);
}
.video-planner-list__date.is-overdue :is(input, .thai-date-field__value span, .thai-date-field__value small) {
    color: var(--color-error);
}
.video-planner-list__open {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
}
.video-planner-list__open:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.video-planner-list__empty[hidden] {
    display: none;
}
.video-planner-list__empty td {
    text-align: center;
    white-space: normal;
    padding: 28px;
    color: var(--color-text-muted);
}
.video-planner-list__draft input[name="title"] {
    border-color: var(--color-primary);
    background: var(--color-white);
    font-weight: 400;
}
.video-planner-list__draft-actions {
    display: flex;
    justify-content: center;
    gap: 4px;
}
.video-planner-list__draft-actions button {
    display: grid;
    width: 30px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--color-line-strong);
    border-radius: 7px;
    background: var(--color-white);
    color: var(--color-text-muted);
    cursor: pointer;
}
.video-planner-list__draft-actions button[type="submit"] {
    color: var(--color-success);
}
.video-planner-filter .company-videos-choice-trigger {
    min-height: var(--filter-control-height);
    background: var(--color-white);
}
.video-planner-filter__assignees {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    color: var(--color-text-muted);
}
.video-planner-filter__assignees > span,
.video-planner-filter__assignees > i {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    overflow: hidden;
    border-radius: 5px;
}
.video-planner-filter__assignees img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}
.video-planner-filter__assignees > .video-planner-filter__status-dot {
    width: 10px;
    height: 10px;
    flex-basis: 10px;
    background: var(--progress-scale-color, var(--color-text-muted-2));
}
.company-videos-choice-panel--status .task-inline-member-avatar .task-inline-choice-dot {
    width: 11px;
    height: 11px;
    background: var(--progress-scale-color, var(--color-text-muted-2));
}
.video-planner-table tr.is-dragging, .video-planner-card.is-dragging {
    opacity: 0.45;
}
/* ========================================================================== 
   Responsive breakpoints — consolidated and ordered
   Desktop min-width -> max-width large to small -> interaction/accessibility
   ========================================================================== */
/* ======================== Personal Note page and mobile app navigation ======================== */
.mobile-bottom-nav {
    display: none;
}
.system-notes-panel__header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.system-notes-panel__page-link {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-md);
    background: var(--color-bg-surface);
    color: var(--color-text-muted);
    text-decoration: none;
}
.system-notes-panel__page-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.notes-page, .notes-trash-page {
    display: grid;
    gap: 20px;
    color: var(--color-text-primary);
}
.notes-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.notes-page__heading, .notes-page__actions, .notes-trash-selection, .notes-trash-row-actions {
    display: flex;
    align-items: center;
}
.notes-page__heading {
    gap: 14px;
}
.notes-page__icon {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;
    border-radius: 15px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 20px;
}
.notes-page__icon--trash {
    background: var(--color-error-light);
    color: var(--color-error);
}
.notes-page__eyebrow {
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.notes-page__heading h1 {
    margin: 2px 0 3px;
    font-size: 26px;
}
.notes-page__heading p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 13px;
}
.notes-page__actions {
    gap: 10px;
}
.notes-page__actions form {
    margin: 0;
}
.notes-page__button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-lg);
    padding: 9px 15px;
    background: var(--color-bg-surface);
    color: var(--color-text-secondary);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.notes-page__button--primary {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
}
.notes-page__button--danger {
    border-color: var(--color-error);
    background: var(--color-error-light);
    color: var(--color-error);
}
.notes-page__toolbar, .notes-trash-card {
    border: 1px solid var(--color-line);
    border-radius: 18px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card);
}
.notes-page__toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
}
.notes-page__search {
    width: 100%;
}
.notes-page__search input {
    height: var(--filter-control-height);
    min-height: var(--filter-control-height);
    background: var(--color-bg-surface);
}
.notes-page__count {
    min-width: 88px;
    color: var(--color-text-muted);
    font-size: 12px;
    text-align: right;
}
.notes-page__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 14px;
    min-height: 280px;
}
.notes-page__grid > .notes-empty {
    grid-column: 1 / -1;
}
.notes-page-card {
    min-width: 0;
    min-height: 190px;
    padding: 18px;
    border-radius: 16px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-card);
}
.notes-page-card .note-card__heading {
    min-width: 0;
}
.notes-page-card .note-card__heading h3 {
    margin: 0 0 3px;
    overflow: hidden;
    color: var(--color-text-primary);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notes-page-card .note-card__heading small {
    color: var(--color-text-muted-2);
    font-size: 10px;
}
.notes-page-editor {
    position: fixed;
    z-index: 12000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}
.notes-page-editor[hidden] {
    display: none;
}
.notes-page-editor__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: color-mix(in srgb, var(--color-text-primary) 46%, transparent);
}
.notes-page-editor__dialog {
    position: relative;
    display: flex;
    width: min(680px, 100%);
    max-height: calc(100dvh - 40px);
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-xl);
}
.notes-page-editor__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--color-line);
}
.notes-page-editor__header span {
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.notes-page-editor__header h2 {
    margin: 3px 0 0;
    font-size: 21px;
}
.notes-page-editor__header button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--color-bg-base);
    color: var(--color-text-muted);
    cursor: pointer;
}
.notes-page-editor__form {
    margin: 0;
    padding: 18px 20px 0;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: var(--color-bg-surface);
}
body.notes-page-editor-open {
    overflow: hidden;
}
.notes-trash-card {
    overflow: hidden;
}
.notes-trash-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-line);
}
.notes-trash-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin: 0;
}
.notes-trash-search__submit {
    min-width: 76px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: var(--color-white);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.notes-trash-selection {
    justify-content: flex-end;
    gap: 13px;
    color: var(--color-text-muted);
    font-size: 12px;
}
.notes-trash-selection > span i {
    color: var(--color-success);
}
.notes-trash-selection button {
    border: 0;
    padding: 6px 0;
    background: transparent;
    color: var(--color-success);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.notes-trash-selection button:last-child {
    color: var(--color-error);
}
.notes-trash-selection button:disabled {
    color: var(--color-text-muted-2);
    cursor: not-allowed;
}
.notes-trash-table-wrap {
    overflow-x: auto;
}
.notes-trash-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}
.notes-trash-table th, .notes-trash-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-line);
    font-size: 12px;
    text-align: left;
    vertical-align: middle;
}
.notes-trash-table th {
    background: var(--color-bg-surface-soft);
    color: var(--color-text-primary);
    font-weight: 700;
}
.notes-trash-table tbody tr:last-child td {
    border-bottom: 0;
}
.notes-trash-table__check {
    width: 48px;
    text-align: center !important;
}
.notes-trash-table__check input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}
.notes-trash-table__actions-heading {
    width: 104px;
    text-align: center !important;
}
.notes-trash-title {
    display: flex;
    min-width: 180px;
    align-items: center;
    gap: 10px;
}
.notes-trash-title > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.notes-trash-excerpt {
    display: block;
    max-width: 520px;
    color: var(--color-text-muted);
}
.notes-trash-row-actions {
    justify-content: center;
    gap: 7px;
}
.notes-trash-row-actions form {
    margin: 0;
}
.notes-trash-row-actions button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--color-line-strong);
    border-radius: 10px;
    background: var(--color-bg-surface);
    cursor: pointer;
}
.notes-trash-row-actions__restore {
    color: var(--color-success);
}
.notes-trash-row-actions__delete {
    color: var(--color-error);
}
.notes-trash-pagination {
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 992px) {
    /* ======================== Sidebar Collapse System ======================== */
    body.sidebar-collapsed {
        --sidebar-width: 80px;
    }
    body.sidebar-collapsed .sidebar {
        overflow: visible;
        /* Allow tooltips to float outside */
    }
    body.sidebar-collapsed .sidebar-logo {
        padding: 24px 0 10px 0;
        justify-content: center;
        overflow: hidden;
    }
    body.sidebar-collapsed .sidebar-logo img {
        width: 40px !important;
        height: 40px !important;
        object-fit: cover !important;
        object-position: left !important;
    }
    /* Hide section headers */
    body.sidebar-collapsed .sidebar-nav__section-title {
        display: none !important;
    }
    body.sidebar-collapsed .nav-item {
        position: relative;
        width: 44px;
        height: 44px;
        font-size: 18px;
        padding: 0;
        margin: 8px auto;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-md);
    }
    body.sidebar-collapsed .nav-item svg {
        margin: 0;
        width: 20px;
        height: 20px;
    }
    /* Hide nav labels normally when collapsed */
    body.sidebar-collapsed .nav-label {
        display: none !important;
    }
    /* Global JS Tooltip Styles */
    .global-nav-tooltip {
        position: fixed;
        transform: translateY(-50%);
        background: #1e293b;
        color: #fff;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 400;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition:
            opacity 0.2s,
            visibility 0.2s;
        pointer-events: none;
        z-index: 999999;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    .global-nav-tooltip.show {
        opacity: 1;
        visibility: visible;
    }
    .global-nav-tooltip::before {
        content: "";
        position: absolute;
        right: 100%;
        top: 50%;
        transform: translateY(-50%);
        border: 5px solid transparent;
        border-right-color: #1e293b;
    }
    /* Badges adjustments */
    body.sidebar-collapsed .badge-count {
        position: absolute;
        top: -2px;
        right: -2px;
        margin: 0;
        transform: none;
        min-width: 18px;
        height: 18px;
        font-size: 8px;
        padding: 0 4px;
        z-index: 10;
    }
    body.sidebar-collapsed .nav-item:hover .badge-count {
        opacity: 0;
    }
    /* Footer (User Avatar) */
    body.sidebar-collapsed .sidebar-footer {
        justify-content: center;
        padding: 16px 0;
    }
    body.sidebar-collapsed .sidebar-footer__profile {
        width: auto;
        justify-content: center;
        gap: 0 !important;
    }
    body.sidebar-collapsed .sidebar-footer__identity {
        display: none;
    }
    /* Responsive */
    .chart-legend {
        grid-template-columns: repeat(3, 1fr);
    }
    body .chat-layout .chat-sidebar.collapsed, body .chat-layout .chat-right.collapsed {
        display: flex;
        width: 0;
        min-width: 0;
        flex-basis: 0;
        opacity: 0;
        overflow: hidden;
        border-width: 0;
    }
    .main-content .website-records-table-container {
        overflow-x: hidden;
    }
    body.chat-page .main-content {
        box-sizing: border-box;
        padding: 12px;
        background: #f1f3f6;
    }
    body.chat-page .chat-layout {
        gap: 12px;
        overflow: visible;
        background: transparent;
    }
    body.chat-page .chat-layout .chat-pane {
        border: 1px solid #e2e7ee;
        border-radius: 14px;
        box-shadow: 0 5px 18px rgba(15, 23, 42, 0.045);
    }
    body.chat-page .chat-sidebar-close {
        display: none !important;
    }
}
@media (min-width: 1025px) {
    /* The admin report has many compact columns. On desktop, keep every column
   inside the panel; smaller screens retain the horizontal table scroller. */
    .attendance-report-panel .attendance-table-wrap--horizontal, .attendance-table-wrap--desktop-fit {
        overflow-x: hidden !important;
        overflow-x: clip !important;
        scrollbar-width: none;
    }
    .attendance-report-panel .attendance-table-wrap--horizontal::-webkit-scrollbar, .attendance-table-wrap--desktop-fit::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    .attendance-report-panel .attendance-table--admin, .attendance-table-wrap--desktop-fit .attendance-table--admin {
        width: 100%;
        min-width: 0 !important;
        max-width: 100%;
        table-layout: fixed;
    }
    .attendance-table-wrap--desktop-fit .attendance-table--admin th, .attendance-table-wrap--desktop-fit .attendance-table--admin td {
        padding-right: 7px;
        padding-left: 7px;
    }
    .attendance-table-wrap--desktop-fit .attendance-table__checkbox {
        width: 42px;
        min-width: 42px;
    }
    .attendance-table-wrap--desktop-fit .attendance-table__date {
        width: 8.5%;
        min-width: 0;
    }
    .attendance-table-wrap--desktop-fit .attendance-table__employee {
        width: 14%;
        min-width: 0;
    }
    .attendance-table-wrap--desktop-fit .attendance-table__location-pair {
        width: 34%;
        min-width: 0;
    }
    .attendance-table-wrap--desktop-fit .attendance-table__time {
        width: 9%;
        min-width: 0;
        max-width: none;
    }
    .attendance-table-wrap--desktop-fit .attendance-table__gps {
        width: 18%;
        min-width: 0;
    }
    .attendance-table-wrap--desktop-fit .attendance-table--admin .attendance-table__status {
        width: 10%;
        min-width: 0;
        max-width: none;
    }
    .attendance-table-wrap--desktop-fit .attendance-table__actions-heading, .attendance-table-wrap--desktop-fit .attendance-record-management {
        width: 110px;
        min-width: 110px;
        max-width: 110px;
    }
    .attendance-table-wrap--desktop-fit .attendance-pair-text {
        max-width: 100%;
        gap: 5px;
        font-size: 12px;
    }
}
@media (max-width: 1280px) {
    .video-planner-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .main-content .app-data-table-card .company-articles-table-scroll {
        overflow-x: auto;
    }
    .main-content .app-data-table-card .app-data-table-scroll > table.company-articles-table {
        --app-data-table-min-width: 1212px;
        width: max(100%, var(--app-data-table-min-width));
        min-width: var(--app-data-table-min-width);
        max-width: none;
    }
    .main-content .company-videos-page .app-data-table-card .company-articles-table-scroll {
        overflow-x: hidden;
    }
    .main-content .app-data-table-card .app-data-table-scroll > table.company-videos-table {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .calendar-events-filter {
        grid-template-columns: minmax(260px, 1.5fr) repeat(2, 150px) minmax(145px, 0.7fr) auto;
    }
    .calendar-events-filter__actions {
        grid-column: auto;
    }
}
@media (max-width: 1250px) {
    .event-calendar-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .event-calendar-tools {
        justify-content: space-between;
        width: 100%;
    }
    .event-calendar-search {
        max-width: none;
    }
    .event-calendar-year {
        grid-template-columns: repeat(3, 1fr);
    }
    .event-calendar-day-cell {
        min-height: 112px;
    }
    .hub-dashboard__period-row .hub-dashboard-event-cluster {
        width: 100%;
        min-width: 0;
    }
    .hub-dashboard__period-row .hub-dashboard-event-widget {
        width: auto;
        min-width: 0;
        flex: 1 1 auto;
    }
}
@media (max-width: 1180px) {
    .attendance-overview-grid {
        grid-template-columns: 1fr;
    }
    .attendance-today-card__body {
        grid-template-columns: 165px minmax(0, 1fr);
    }
    .attendance-today-card:has(> .attendance-today-card__side) {
        width: 100%;
        margin-bottom: 190px;
    }
    .attendance-today-card > .attendance-today-card__side {
        top: calc(100% + 16px);
        left: 0;
        width: 100%;
        height: 174px;
        justify-content: space-between;
    }
    .attendance-today-card__side > .attendance-overall {
        position: static;
        transform: none;
    }
    .attendance-today-card__side .attendance-today-home-qr {
        width: auto;
        flex: 1 1 auto;
    }
    .attendance-today-card__times {
        grid-template-columns: repeat(3, 1fr);
    }
    .attendance-home-qr-panel {
        grid-template-columns: minmax(0, 1fr) 128px;
    }
    .attendance-location-form, .attendance-filter-form {
        grid-template-columns: repeat(2, 1fr);
    }
    .attendance-summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .attendance-location-card {
        grid-template-columns: 48px 1fr;
    }
    .attendance-location-card__actions {
        grid-column: 1 / -1;
        flex-wrap: wrap;
    }
}
@media (max-width: 1100px) {
    .attendance-report-filter-box__header {
        align-items: stretch;
        flex-direction: column;
    }
    .attendance-report-filter-box .attendance-report-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .company-articles-toolbar {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 12px;
    }
    .company-articles-summary {
        grid-column: auto;
    }
    .company-articles-status-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .company-articles-status-summary .company-articles-status-summary__total {
        grid-row: auto;
        grid-column: 1 / -1;
        min-height: 150px;
    }
    .company-articles-status-summary .company-articles-status-summary__item:last-child {
        grid-column: 1 / -1;
    }
}
@media (max-width: 1024px) {
    .system-settings-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .main-content .app-standard-table :is(th, td), .main-content :is(.line-member-table, .trash-management-table, .trash-overview-table) :is(th, td) {
        padding-right: 12px;
        padding-left: 12px;
    }
}
@media (max-width: 1023px) {
    .app-filter-offcanvas__filters .attendance-filter-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
    }
    .app-filter-offcanvas__filters .attendance-filter-form label {
        width: 100%;
        min-width: 0;
    }
    .app-filter-offcanvas__filters .attendance-filter-form input, .app-filter-offcanvas__filters .attendance-filter-form select {
        min-height: var(--filter-control-height);
        border-radius: var(--filter-control-radius);
    }
    .app-filter-offcanvas__filters .attendance-filter-form__actions {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        padding-top: 2px;
    }
    .app-filter-offcanvas__filters .attendance-filter-form__actions .attendance-button {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        justify-content: center;
    }
}
@media (max-width: 991px) {
    .video-planner-calendar-year-view {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .trash-management-page-actions {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .trash-management-page-actions > * {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }
    .trash-management-search {
        width: 100%;
        max-width: none;
        flex: 0 0 auto;
    }
    .trash-management-search .app-search-field {
        min-height: var(--filter-control-height);
        flex: 0 0 var(--filter-control-height);
    }
    .video-planner-main {
        grid-template-columns: minmax(0, 1fr);
    }
    .video-planner-insights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .video-planner-calendar-card, .video-planner-week {
        overflow-x: auto;
    }
    .video-planner-calendar {
        min-width: 760px;
    }
    .main-content .company-videos-page .app-data-table-card .company-articles-table-scroll {
        overflow-x: auto;
    }
    .main-content .app-data-table-card .app-data-table-scroll > table.company-videos-table {
        width: max(100%, 1180px);
        min-width: 1180px;
        max-width: none;
    }
    /* Content Writer Portal */
    .writer-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .writer-analytics {
        grid-template-columns: 1fr;
    }

    .writer-workflow-guide {
        grid-template-columns: 1fr;
    }

    .writer-filters {
        grid-template-columns: 1fr 1fr;
    }

    .writer-field--search {
        grid-column: 1 / -1;
    }

    .writer-filter-actions .writer-button {
        width: 100%;
    }

    .writer-task-card {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .writer-task-card__side {
        grid-column: 2;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        justify-items: start;
        min-width: 0;
        padding: 12px 0 0;
        border-top: 1px solid var(--color-line);
        border-left: 0;
    }

    .writer-task-card__open {
        justify-self: end;
    }

    .writer-payments-filter {
        grid-template-columns: 1fr auto;
    }

    .writer-payments-filter__period,
    .writer-payments-field--search {
        grid-column: 1 / -1;
    }

    .writer-payments-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .writer-payment-profile {
        align-items: stretch;
        flex-direction: column;
    }

    .writer-payment-profile__metrics {
        width: 100%;
        max-width: none;
    }

    .writer-payment-profile__metrics > div:first-child {
        border-left: 0;
    }

    .writer-detail-grid {
        grid-template-columns: 1fr;
    }

    .writer-comments {
        position: static;
    }

    .leave-overview-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .leave-overview-filter > span.leave-overview-filter__label {
        grid-column: 1 / -1;
    }
    .leave-overview-filter__label, .leave-overview-filter:not(.leave-overview-filter--personal) .leave-overview-filter__field:first-of-type, .leave-overview-filter__all-period {
        grid-column: 1 / -1;
    }
    .leave-overview-filter__status {
        display: none;
    }
    .leave-overview-activity__grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .overtime-tracker-card {
        grid-template-columns: minmax(0, 1fr);
    }
    .overtime-tracker-card__controls {
        border-top: 1px solid var(--color-line);
        border-left: 0;
    }
    .overtime-team-filter {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .overtime-team-filter > :is(button, a) {
        width: 100%;
        justify-content: center;
    }
    .menu-visibility-option-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.chat-page .chat-layout .chat-message-stage > .chat-typing-indicator {
        position: absolute;
        left: 22px;
        bottom: calc(var(--chat-composer-inset, 72px) + 10px);
        width: auto;
        min-height: 0;
        padding: 0;
    }
    body.chat-page .chat-layout .chat-main.has-active-conversation .chat-message-stage.is-typing > .chat-messages::after {
        height: calc(var(--chat-composer-inset, 72px) + 72px);
    }


    .topbar-primary {
        min-width: 0;
    }
    .topbar-mobile-logo {
        display: flex;
        align-items: center;
        min-width: 0;
        text-decoration: none;
    }
    .topbar-mobile-logo img {
        display: block;
        width: auto;
        height: 32px;
        max-width: 150px;
        object-fit: contain;
    }
    /* Keep page actions visible while the shared filter script initializes. */

    body.has-filter-offcanvas {
        overflow: hidden;
    }
    .app-filter-trigger-anchor {
        display: flex;
    }
    .app-filter-trigger {
        display: inline-flex;
    }
    .app-filter-trigger.is-active {
        background: var(--color-primary-light);
    }
    .app-filter-accordion {
        display: grid;
        width: 100%;
        grid-template-rows: 0fr;
        opacity: 0;
        transition: grid-template-rows 0.22s ease, opacity 0.18s ease;
    }
    .app-filter-accordion.is-open {
        grid-template-rows: 1fr;
        margin-bottom: 12px;
        opacity: 1;
    }
    .app-filter-accordion__inner {
        display: block;
        min-height: 0;
        overflow: hidden;
        border: 0;
        border-radius: 14px;
        background: transparent;
        box-shadow: none;
    }
    .app-filter-accordion.is-open .app-filter-accordion__inner {
        overflow: visible;
        margin-top: 12px;
        padding: 12px;
        border: 1px solid var(--color-border);
        background: var(--color-bg-surface);
        box-shadow: var(--shadow-card-soft);
    }
    .app-filter-accordion [data-mobile-filter-panel] {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .app-filter-offcanvas__backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 12000;
        background: rgba(15, 23, 42, 0.45);
        opacity: 0;
        visibility: hidden;
        transition:
            opacity 0.2s ease,
            visibility 0.2s ease;
    }
    .app-filter-offcanvas__backdrop.is-open {
        opacity: 1;
        visibility: visible;
    }
    .app-filter-offcanvas {
        display: flex;
        position: fixed;
        z-index: 12001;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        flex-direction: column;
        background: #fff;
        box-shadow: none;
        transform: translateX(105%);
        transition: transform 0.25s ease;
    }
    .app-filter-offcanvas.is-open {
        box-shadow: -16px 0 40px rgba(15, 23, 42, 0.18);
        transform: translateX(0);
    }
    .app-filter-offcanvas__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 76px;
        padding: 16px 20px;
        border-bottom: 1px solid #e2e8f0;
    }
    .app-filter-offcanvas__eyebrow {
        color: var(--color-primary);
        font-size: 11px;
        font-weight: 600;
    }
    .app-filter-offcanvas__title {
        margin: 2px 0 0;
        font-size: 19px;
        font-weight: 600;
    }
    .app-filter-offcanvas__close {
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 8px;
        background: #f1f5f9;
        color: #334155;
        font-size: 19px;
        cursor: pointer;
    }
    .app-filter-offcanvas__body {
        flex: 1;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 16px;
        background: #f8fafc;
    }
    .app-filter-offcanvas__section {
        padding: 14px;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        background: #fff;
    }
    .app-filter-offcanvas__section-title {
        margin: 0 0 10px;
        color: #0f172a;
        font-size: 13px;
        font-weight: 600;
    }
    .app-filter-offcanvas__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .app-filter-offcanvas__actions > * {
        width: 100%;
        min-width: 0;
        margin: 0 !important;
    }
    .app-filter-offcanvas__actions > a, .app-filter-offcanvas__actions > button, .app-filter-offcanvas__actions > div > a, .app-filter-offcanvas__actions > div > button {
        width: 100%;
        min-height: 42px;
        justify-content: center;
    }
    .app-filter-offcanvas__actions .maintenance-action-toolbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    .app-filter-offcanvas__actions .maintenance-action-toolbar > * {
        width: 100%;
        margin: 0;
        justify-content: center;
    }
    .app-filter-offcanvas__filters > [data-mobile-filter-panel] {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    .tasks-filter-bar .filter-divider {
        display: none;
    }
    .app-filter-offcanvas__body form, .app-filter-offcanvas__body .filter-controls-wrap, .app-filter-offcanvas__body .publishing-filter-grid, .app-filter-offcanvas__body .members-directory__filters, .app-filter-offcanvas__body .tasks-filter-bar {
        width: 100%;
    }
    .app-filter-offcanvas__filters .cw-filter-card, .app-filter-offcanvas__filters .tasks-filter-bar {
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }
    .app-filter-offcanvas__filters .app-filter-offcanvas__filter-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .app-filter-offcanvas__filters .app-filter-offcanvas__filter-grid > * {
        min-width: 0;
    }
    .app-filter-offcanvas__filters .app-filter-offcanvas__filter-grid > :not(.app-filter-offcanvas__select-field), .app-filter-offcanvas__filters .app-filter-offcanvas__select-field--full {
        grid-column: 1 / -1;
        width: 100% !important;
    }
    .app-filter-offcanvas__filters .app-filter-offcanvas__select-field, .app-filter-offcanvas__filters .app-filter-offcanvas__select-field select {
        width: 100% !important;
        max-width: none !important;
    }
    .task-notification-status-grid {
        grid-template-columns: 1fr;
    }
    .task-notification-settings-heading, .task-notification-sound-card__heading, .task-notification-settings-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .task-notification-settings-back-link {
        align-self: flex-start;
    }
    .task-notification-summary-card {
        min-height: 72px;
    }
    .task-notification-sound-card {
        padding: 15px;
        flex-direction: column;
    }
    .task-notification-sound-card__format, .task-notification-status-section__member-count {
        align-self: flex-start;
    }
    .task-notification-status-grid {
        padding: 10px;
    }
    .task-notification-settings-submit {
        width: 100%;
    }
    #task-offcanvas {
        width: 100%;
    }
    .tasks-project-manager {
        right: 0;
        left: auto;
    }
    .task-configuration-page__header {
        align-items: flex-start;
        flex-direction: column;
    }
    .task-configuration-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .task-configuration-summary__card {
        padding: 15px;
    }
    .members-page__header {
        align-items: flex-start;
        flex-direction: column;
    }
    .members-page__actions {
        justify-content: flex-start;
    }
    .members-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .members-directory__toolbar {
        align-items: stretch;
    }
    .members-directory__filters {
        grid-template-columns: minmax(0, 1fr) 190px;
        width: 100%;
    }
    .member-editor-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .member-editor-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.has-sidebar .main-content {
        margin-left: 0;
    }
    /* Responsive contract:
       Desktop >= 992px | Tablet 768px–991px | Mobile <= 767px */
    /* ======================== Responsive ======================== */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        width: 260px !important;
        /* Keep width so it slides off-screen properly */
        box-shadow: none;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
    }
    .topbar {
        left: 0;
        right: 0;
        width: auto;
        max-width: 100vw;
        min-width: 0;
        padding: 0 16px;
        gap: 16px;
        justify-content: space-between;
    }
    .main-content {
        margin-left: 0;
    }
    #sidebar-toggle {
        display: flex !important;
    }
    .main-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .dashboard-chart-grid--wide, .dashboard-details {
        grid-template-columns: 1fr;
    }
    .task-project-add-task-button {
        width: 30px;
        height: 30px;
    }
    .credential-show-grid {
        grid-template-columns: 1fr;
    }
    .notifications-page__header {
        align-items: flex-start;
        flex-direction: column;
    }
    .maintenance-form-page .maintenance-assignee-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .seo-content-form-page .seo-content-workflow-grid {
        grid-template-columns: 1fr;
    }
    .seo-content-status-chip > span:first-child {
        max-width: 88px;
    }
    .app-page-header {
        align-items: flex-start;
    }
    .app-page-actions {
        flex-wrap: wrap;
    }
    .maintenance-detail-layout {
        grid-template-columns: 240px minmax(0, 1fr);
    }
    .maintenance-page-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .maintenance-action-toolbar {
        flex: 1 1 100%;
        flex-wrap: wrap;
    }
    .maintenance-toolbar-button {
        flex: 1 1 auto;
    }
    .maintenance-filter-wrap {
        align-items: stretch;
        flex-direction: column;
    }
    .maintenance-filter-select-wrap, .maintenance-filter-select-wrap--status, .maintenance-filter-select-wrap--assignee {
        width: 100%;
    }
    .app-filter-form {
        align-items: stretch;
        flex-direction: column;
    }
    .app-search-field, .app-filter-field, .app-filter-field--status, .app-filter-field--assignee {
        width: 100%;
    }
    .maintenance-summary-card {
        align-items: flex-start;
        flex-direction: column;
    }
    .maintenance-summary-card__period {
        text-align: left;
    }
    .maintenance-rounds-card {
        position: static;
    }
    .offcanvas-header {
        padding: 15px 20px;
    }
    .offcanvas-body-scroll {
        padding: 20px;
    }
    .publishing-page-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .publishing-page-actions {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }
    .publishing-filter-wrap {
        align-items: stretch;
        flex-wrap: wrap;
    }
    .publishing-filter-wrap .cw-search-wrap {
        flex-basis: 100%;
    }
    .publishing-filter-select-wrap {
        width: auto;
        min-width: 160px;
        flex: 1 1 160px;
    }
    body .chat-layout .chat-sidebar {
        width: 270px;
        flex-basis: 270px;
    }
    body .chat-layout .chat-right {
        width: 280px;
        flex-basis: 280px;
    }
    .publishing-role-grid--three {
        grid-template-columns: 1fr;
    }
    .tricks-page-header {
        align-items: stretch;
    }
    .tricks-add-button {
        width: 100%;
    }
    .tricks-filter-select-wrap {
        width: 100%;
    }
    .trick-form-layout {
        grid-template-columns: 1fr;
    }
    .trick-form-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
        align-items: start;
        gap: 16px;
    }
    .trick-form-actions-card {
        margin-top: 0;
    }
    .tricks-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
    .trick-detail-layout {
        grid-template-columns: minmax(0, 1fr) 250px;
    }
    .tricks-filter-wrap {
        grid-template-columns: 1fr;
    }
    .tricks-view-switcher {
        width: 100%;
    }
    .tricks-view-button {
        flex: 1 1 50%;
    }
    .trick-detail-layout {
        grid-template-columns: 1fr;
    }
    .trick-detail-sidebar {
        position: static;
    }
    .trick-detail-meta__separator {
        display: none;
    }
    .roles-page__header {
        align-items: flex-start;
        flex-direction: column;
    }
    .roles-summary {
        grid-template-columns: 1fr;
    }
    .roles-directory__toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .leave-action-options, .holiday-create-card {
        grid-template-columns: 1fr;
    }
    .holiday-create-form {
        grid-template-columns: minmax(0, 1fr) 190px auto;
    }
    .leave-quota-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .leave-quota-grid > article.leave-quota-card:last-child {
        grid-column: 1 / 3;
    }
    .line-setup-layout {
        grid-template-columns: 1fr;
    }
    .line-rule-grid {
        grid-template-columns: 1fr;
    }
    .line-pattern-columns {
        grid-template-columns: 1fr;
    }
    .line-notification-page__heading, .line-member-manager__header, .line-pattern-form__header, .line-pattern-form__footer, .line-card-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .line-connection-status {
        align-self: flex-start;
    }
    .line-notification-summary .line-notification-summary-card {
        padding: 15px;
    }
    .line-notification-summary-card strong {
        font-size: 13px;
    }
    .line-notification-summary-card {
        min-height: 72px;
    }
    .line-credentials-form {
        grid-template-columns: 1fr;
    }
    .line-member-search {
        flex-basis: auto;
        width: 100%;
    }
    .line-pattern-form__header .btn, .line-pattern-form__footer .btn, .line-card-actions .btn {
        width: 100%;
    }
    .trash-management-header, .trash-management-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .trash-management-page-actions, .trash-management-bulk-actions, .trash-management-toolbar-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .trash-management-search {
        width: 100%;
        max-width: none;
    }
    .chat-item.active .chat-item-more-button {
        opacity: 1;
    }
    .notifications-page__header, .notifications-list-card__header {
        align-items: flex-start;
        flex-direction: column;
    }
    .notifications-device-settings {
        grid-template-columns: 1fr;
    }
    .notifications-list__item {
        grid-template-columns: 34px minmax(0, 1fr) 40px;
    }
    .notifications-list__time {
        grid-column: 2 / 3;
        justify-content: flex-start;
    }
    /* Mini chat is a desktop-only interaction. Tablet and mobile open full-page chat. */
    .website-detail__facts {
        grid-template-columns: 1fr;
    }
    .website-detail__fact {
        border: 1px solid #e2e8f0;
    }
    .website-edit-sidebar-grid {
        grid-template-columns: 1fr;
    }
    .website-edit-sidebar-grid > .tips-box:last-child {
        grid-column: auto;
    }
    .website-training-layout {
        grid-template-columns: 1fr;
    }
    .website-edit-form-layout {
        grid-template-columns: 1fr;
    }
    .website-edit-sidebar {
        display: grid;
        align-items: start;
    }
    .website-edit-sidebar .website-sidebar-actions {
        grid-column: 1 / -1;
    }
    .website-create-basic-grid {
        grid-template-columns: 1fr;
    }
    .settings-create-form, .settings-row-form {
        align-items: stretch;
        flex-direction: column;
    }
    .settings-order-field {
        width: 100%;
        flex-basis: auto;
    }
    .settings-list__row {
        align-items: stretch;
    }
    .hub-dashboard-modules {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .hub-dashboard-kpis, .hub-dashboard-charts--three, .hub-dashboard-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hub-dashboard-action-grid .hub-dashboard-list-card:last-child {
        grid-column: 1 / -1;
    }
    .hub-dashboard-modules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hub-dashboard-filter {
        align-items: stretch;
        flex-direction: column;
    }
    .hub-dashboard-filter__dates {
        justify-content: flex-end;
    }
    .hub-dashboard__header {
        grid-template-columns: 1fr;
    }
    .hub-dashboard__period-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        align-items: stretch;
        gap: 10px;
    }
    .hub-dashboard__period-row .hub-dashboard__period {
        width: 100%;
        min-width: 0;
    }
    .hub-dashboard__period-row .app-filter-trigger-anchor {
        display: flex;
        align-items: stretch;
        margin: 0;
    }
    .hub-dashboard__period-row .app-filter-trigger {
        width: 44px;
        min-width: 44px;
        height: 100%;
        min-height: 44px;
        padding: 0;
    }
    .hub-dashboard__period-row .app-filter-trigger span {
        display: none;
    }
    .hub-dashboard__period {
        min-width: 0;
        align-items: flex-start;
    }
    .hub-dashboard-charts--lead, .hub-dashboard-charts--equal {
        grid-template-columns: 1fr;
    }
    .hub-dashboard-chart--large {
        height: 270px;
    }
    .main-content .website-records-table-container {
        overflow-x: auto;
    }
    .website-records-table {
        min-width: 1120px;
    }
    .main-content .app-standard-table {
        min-width: max(900px, 100%);
    }
    /* =========================================================
       Responsive foundation
       Keep desktop unchanged and normalize tablet/mobile layouts.
       ========================================================= */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
        overflow-x: clip;
    }
    .main-content, .main-content > * {
        min-width: 0;
        max-width: 100%;
    }
    .main-content :is(#table-wrapper, .table-responsive, .table-wrapper, .table-scroll-wrapper, .table-scroll-container, .website-records-table-container, .maintenance-table-region, .publishing-table-scroll, .tricks-table-scroll) {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto !important;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-gutter: stable;
    }
    .main-content :is(#table-wrapper, .table-responsive, .table-wrapper, .table-scroll-wrapper, .table-scroll-container, .website-records-table-container, .maintenance-table-region, .publishing-table-scroll, .tricks-table-scroll) > table {
        margin-bottom: 0;
    }
    .form-layout-grid.with-sidebar {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
        gap: 20px;
    }
    :is(.website-detail-offcanvas__panel, .monthly-detail-offcanvas__panel, .publishing-offcanvas__panel, .chat-settings-offcanvas__panel) {
        max-width: 100vw;
    }
    .main-content {
        width: 100%;
        padding: 20px 15px;
    }
    .form-layout-grid.with-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }
    :is(.page-header-flex, .page-header, .tasks-header-inner, .members-page__header, .notifications-page__header) {
        flex-wrap: wrap;
        gap: 16px;
    }
    :is(.page-header-actions, .members-page__actions, .notifications-page__actions, .maintenance-page-actions, .publishing-page-actions) {
        max-width: 100%;
        flex-wrap: wrap;
    }
    .main-content .app-standard-table {
        min-width: max(840px, 100%);
    }
    .modal-content-lg, .modal-content-xl {
        width: min(calc(100vw - 32px), 960px);
        max-height: calc(100dvh - 32px);
    }
    /* ==========================================================================
       Responsive data-table readability
       Preserve desktop-sized columns on smaller screens and scroll the table
       inside its card instead of squeezing every column until text is unreadable.
       ========================================================================== */
    .main-content :is(#table-wrapper, .table-responsive, .table-container, .table-wrapper, .table-scroll-wrapper, .table-scroll-container, .list-table-container, .maintenance-list-table-container, .website-records-table-container, .publishing-table-scroll, .tricks-table-scroll, .leave-table-wrap, .holiday-table-wrap, .roles-table-wrap, .members-table-wrap, .task-configuration-table-wrap, .app-horizontal-scroll, .card:has(> table.app-standard-table)) {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto !important;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
    }
    .main-content :is(#table-wrapper, .table-responsive, .table-container, .table-wrapper, .table-scroll-wrapper, .table-scroll-container, .list-table-container, .maintenance-list-table-container, .website-records-table-container, .publishing-table-scroll, .tricks-table-scroll, .leave-table-wrap, .holiday-table-wrap, .roles-table-wrap, .members-table-wrap, .task-configuration-table-wrap, .app-horizontal-scroll, .card:has(> table.app-standard-table))::-webkit-scrollbar {
        height: 8px;
    }
    .main-content :is(#table-wrapper, .table-responsive, .table-container, .table-wrapper, .table-scroll-wrapper, .table-scroll-container, .list-table-container, .maintenance-list-table-container, .website-records-table-container, .publishing-table-scroll, .tricks-table-scroll, .leave-table-wrap, .holiday-table-wrap, .roles-table-wrap, .members-table-wrap, .task-configuration-table-wrap, .app-horizontal-scroll, .card:has(> table.app-standard-table))::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border: 2px solid transparent;
        border-radius: 90px;
        background-clip: padding-box;
    }
    .main-content .app-standard-table {
        --mobile-table-min-width: 840px;
        width: max(100%, var(--mobile-table-min-width)) !important;
        min-width: var(--mobile-table-min-width) !important;
        max-width: none !important;
    }
    .main-content .app-standard-table:has(thead th:nth-child(8)) {
        --mobile-table-min-width: 1040px;
    }
    .main-content .app-standard-table:has(thead th:nth-child(10)) {
        --mobile-table-min-width: 1240px;
    }
    /* Dense operational tables need desktop-like column space on mobile. */
    .main-content .maintenance-data-table {
        --mobile-table-min-width: 1180px;
    }
    .main-content :is(.website-records-table, .seo-content-data-table) {
        --mobile-table-min-width: 1320px;
    }
    .main-content .grouped-table {
        --mobile-table-min-width: 1240px;
    }
    .main-content :is(.publishing-table, .task-configuration-table, .leave-table, .members-table) {
        --mobile-table-min-width: 960px;
    }
    .main-content :is(.tricks-table, .roles-table, .holiday-table) {
        --mobile-table-min-width: 900px;
    }
    .main-content table th, .main-content table td {
        padding-block: 12px;
        font-size: 13px;
        line-height: 1.45;
    }
    /*
     * Empty states live inside wide tables. Keep their message and CTA inside
     * the initially visible mobile viewport while the table remains scrollable.
     */
    .main-content .app-table-empty .app-empty-state :is(.btn, .app-button, a, button) {
        max-width: 100%;
        white-space: normal;
    }
    /* ==========================================================================
       Responsive module hardening
       Keeps desktop layout unchanged and improves tablet/mobile interaction.
       ========================================================================== */
    .topbar-primary, .chat-main, .chat-main-header, .chat-messages, .chat-input-area, .website-edit-main, .website-edit-sidebar, .maintenance-form-page, .credential-show-layout {
        min-width: 0;
    }
    .form-layout-grid.with-sidebar, .website-edit-form-layout {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .form-layout-grid.with-sidebar > aside, .website-edit-sidebar {
        position: static !important;
        top: auto !important;
        width: 100%;
    }
    .website-edit-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .website-edit-sidebar .website-training-card {
        grid-column: 1 / -1;
    }
    body.chat-page .chat-layout {
        --chat-drawer-width: min(440px, calc(100% - 48px));
        position: relative;
        height: 100% !important;
        min-height: 0 !important;
        border-radius: 0 !important;
    }
    body.chat-page .chat-layout .chat-main {
        display: flex !important;
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
        border-right: 0;
        border-left: 0;
    }
    body.chat-page .chat-layout .chat-sidebar, body.chat-page .chat-layout .chat-right {
        position: absolute;
        top: 0;
        bottom: 0;
        z-index: 202;
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none;
        height: 100%;
        flex: 0 0 auto;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        will-change: transform;
        transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
    }
    body.chat-page .chat-layout .chat-sidebar {
        left: 0;
        right: auto;
        border-right: 1px solid #e6ebf1;
        transform: translateX(0);
    }
    body.chat-page .chat-layout .chat-sidebar.collapsed {
        width: var(--chat-drawer-width) !important;
        border-width: 0 1px 0 0;
        opacity: 1;
        transform: translateX(-105%);
        pointer-events: none;
    }
    body.chat-page .chat-layout .chat-right {
        right: 0;
        left: auto;
        border-left: 1px solid #e6ebf1;
        transform: translateX(0);
    }
    body.chat-page .chat-layout .chat-right.collapsed {
        width: var(--chat-drawer-width) !important;
        border-width: 0 0 0 1px;
        opacity: 1;
        transform: translateX(105%);
        pointer-events: none;
    }
    body.chat-page .chat-layout .chat-sidebar.collapsed > *, body.chat-page .chat-layout .chat-right.collapsed > * {
        visibility: visible;
    }
    body.chat-page .chat-sidebar:not(.collapsed) + .chat-main {
        display: flex !important;
    }
    body.chat-page .chat-offcanvas-backdrop {
        position: absolute;
        inset: 0;
        z-index: 201;
        display: block;
        padding: 0;
        border: 0;
        background: rgba(15, 23, 42, 0.42);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        cursor: pointer;
        transition:
            opacity 180ms ease,
            visibility 180ms ease;
    }
    body.chat-page .chat-layout:is(.is-left-drawer-open, .is-right-drawer-open) .chat-offcanvas-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    body.chat-page #closeRightPanelBtn {
        display: block !important;
    }
    .mini-chat-dock {
        display: none !important;
    }
    /* Keep application tables readable on tablet and mobile.
       Wide rows scroll inside their own card instead of squeezing text. */
    .main-content .app-standard-table {
        --mobile-table-min-width: 980px;
        table-layout: auto !important;
    }
    .main-content .app-standard-table:has(thead th:nth-child(6)) {
        --mobile-table-min-width: 1180px;
    }
    .main-content .app-standard-table:has(thead th:nth-child(8)) {
        --mobile-table-min-width: 1480px;
    }
    .main-content .app-standard-table:has(thead th:nth-child(10)) {
        --mobile-table-min-width: 1680px;
    }
    .main-content .app-standard-table thead th:not(.table-checkbox-cell, .table-actions-heading), .main-content .app-standard-table tbody td:not(.table-checkbox-cell, .table-actions-cell) {
        max-width: none;
    }
    .main-content .app-standard-table .table-checkbox-cell {
        width: 48px !important;
        min-width: 48px !important;
    }
    .main-content .app-standard-table :is(.table-actions-heading, .table-actions-cell) {
        width: 150px !important;
        min-width: 150px !important;
    }
    .main-content :is(.website-records-table--jobs, .website-records-table--company) {
        --mobile-table-min-width: 1400px;
        table-layout: fixed !important;
    }
    .website-records-column--select {
        width: 48px !important;
    }
    .website-records-column--name {
        width: 220px !important;
    }
    .website-records-column--username {
        width: 260px !important;
    }
    .website-records-column--password {
        width: 260px !important;
    }
    .website-records-column--category {
        width: 180px !important;
    }
    .website-records-column--progress {
        width: 140px !important;
    }
    .website-records-column--assignee {
        width: 110px !important;
    }
    .website-records-column--actions {
        width: 150px !important;
    }
    .website-records-table :is(.list-task-name, .cw-url-link, .website-taxonomy-badge) {
        overflow: visible;
        max-width: none;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.4;
    }
    .task-single-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .task-single-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
        align-items: stretch;
    }
    .task-single-info-card {
        height: 100%;
    }
    @supports (-webkit-touch-callout: none) {
        body.chat-page #chatInputEditor .ql-editor, .mini-chat-composer__editor .ql-editor {
            font-size: 16px !important;
        }
    }
    /* Unified table behavior at the tablet breakpoint. Earlier module rules
       may describe preferred desktop widths; this final pass removes those
       presets and lets actual cell content drive the columns. */
    .main-content :is(table.app-standard-table.task-configuration-table--projects, table.app-standard-table, table.line-member-table, table.trash-management-table, table.trash-overview-table):not(.company-articles-table, .maintenance-data-table) {
        --app-table-min-width: 0px;
        --mobile-table-min-width: 0px;
        width: 100% !important;
        min-width: 100% !important;
        max-width: none !important;
        table-layout: auto !important;
    }
    .main-content :is(table.app-standard-table.task-configuration-table--projects, table.app-standard-table, table.line-member-table, table.trash-management-table, table.trash-overview-table):not(.company-articles-table, .maintenance-data-table) :is(col, th, td) {
        width: auto !important;
        min-width: 0 !important;
    }
    .main-content :is(table.app-standard-table.task-configuration-table--projects, table.app-standard-table, table.trash-management-table):not(.company-articles-table, .maintenance-data-table) :is(.table-checkbox-cell, .publishing-col--select, .trash-management-checkbox-column) {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
    }
    .main-content :is(table.app-standard-table.task-configuration-table--projects, table.app-standard-table):not(.company-articles-table, .maintenance-data-table) :is(.table-actions-heading, .table-actions-cell) {
        width: 1% !important;
        min-width: max-content !important;
    }
    .main-content .website-records-table :is(.list-task-name, .website-job-name-link, .cw-url-link, .website-taxonomy-badge) {
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }
    .main-content table.website-records-table :is(th.website-records-name-cell, td.website-records-name-cell) {
        width: auto !important;
        min-width: 210px !important;
        max-width: 280px !important;
    }
    .hub-dashboard__period-row {
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 7px;
    }
    .hub-dashboard__period-row > .hub-dashboard-event-widget {
        width: 100%;
        min-width: 0;
        max-width: none;
        grid-column: 1 / -1;
        grid-row: 1;
    }
    .hub-dashboard-event-widget__featured {
        min-height: 78px;
    }
    .hub-dashboard__period-row > .hub-dashboard-event-shortcuts {
        display: grid;
        width: 100%;
        min-width: 0;
        grid-column: 1;
        grid-row: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 44px;
        gap: 7px;
    }
    .hub-dashboard__period-row .app-filter-trigger-anchor {
        width: 44px;
        height: 44px;
        grid-column: 2;
        grid-row: 2;
        align-self: stretch;
    }
    .hub-dashboard-event-shortcuts button {
        height: 44px;
        padding: 0 7px;
    }
    .hub-dashboard-event-shortcuts button > span svg {
        display: none;
    }
    #dashboard-event-modal .event-calendar-modal__dialog--detail {
        width: min(100%, 560px);
    }
    .dashboard-event-item {
        grid-template-columns: 58px minmax(0, 1fr) 12px;
        gap: 8px;
    }
    .dashboard-event-item__people {
        display: none;
    }
    .dashboard-event-modal__footer {
        align-items: stretch;
    }
    .dashboard-event-modal__footer > div {
        width: 100%;
    }
    .dashboard-event-modal__footer .event-calendar-button {
        flex: 1 1 0;
    }
}
@media (max-width: 900px) {
    .calendar-events-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .calendar-events-header__actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .calendar-events-filter {
        grid-template-columns: 1fr 1fr;
    }
    .calendar-events-filter__search {
        grid-column: 1 / -1;
    }
    .email-notification-group-grid {
        grid-template-columns: 1fr;
    }
    .event-calendar-toolbar {
        padding-right: 16px;
        padding-left: 16px;
    }
    .event-calendar-canvas {
        padding: 12px 16px 20px;
    }
    .event-calendar-tools {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .event-calendar-search {
        flex: 1 1 280px;
        min-width: 240px;
    }
    .event-calendar-search-result {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) 16px;
        gap: 14px;
    }
    .event-calendar-year {
        grid-template-columns: repeat(2, 1fr);
    }
    .event-calendar-day-cell {
        min-height: 94px;
        padding: 5px;
    }
    .event-calendar-chip__time {
        display: none;
    }
    .event-calendar-agenda {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 18px;
        padding: 20px;
    }
}
@media (max-width: 767px) {
    .video-planner {
        gap: 14px;
    }
    :is(.tasks-header-inner, .page-header-flex, .page-header, .members-page__header, .notifications-page__header):has([data-mobile-filter-actions] [data-mobile-filter-anchor]) [data-mobile-filter-actions] {
        display: block !important;
        width: 100% !important;
        min-width: 44px;
        grid-column: 1 / -1;
        margin: 0 !important;
    }
    [data-mobile-filter-anchor] {
        justify-self: end;
        margin-inline-start: auto;
    }
    .app-mobile-filter-action-layout {
        display: grid;
        width: 100%;
        gap: 8px;
    }
    .members-page__actions .app-mobile-filter-action-layout {
        grid-column: 1 / -1;
    }
    .app-mobile-filter-action-layout > [hidden] {
        display: none !important;
    }
    .app-mobile-filter-action-row {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 8px;
    }
    .app-mobile-filter-action-row.is-single {
        grid-template-columns: minmax(0, 1fr);
    }
    .app-mobile-filter-action-row--final {
        grid-template-columns: repeat(2, minmax(0, 1fr)) 44px;
    }
    .app-mobile-filter-action-row--final.is-single {
        grid-template-columns: minmax(0, 1fr) 44px;
    }
    .app-mobile-filter-action-row--final.is-empty {
        grid-template-columns: 44px;
        justify-content: end;
    }
    [data-mobile-filter-actions].is-mobile-filter-layout > .maintenance-action-toolbar {
        display: none !important;
    }
    .app-mobile-filter-action-row > :not([data-mobile-filter-anchor]) {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0;
        height: 44px;
        min-height: 44px;
        grid-column: auto !important;
        align-items: center;
        justify-content: center;
        border-width: 1px;
        border-style: solid;
    }
    .members-page__actions .app-mobile-filter-action-row > .members-page__button {
        grid-column: auto !important;
    }
    .app-mobile-filter-action-row [data-mobile-filter-anchor] {
        display: flex !important;
        width: 44px !important;
        min-width: 44px;
        margin: 0 !important;
    }
    .video-planner__header, .video-planner-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .video-planner__header-actions {
        width: 100%;
    }
    .video-planner__header-actions .video-planner-button {
        flex: 1;
    }
    .video-planner-period {
        width: 100%;
        justify-content: flex-end;
    }
    .video-planner-period > label {
        flex: 1;
    }
    .video-planner-filter__top {
        flex-direction: column;
        align-items: stretch;
    }
    .video-planner-table {
        width: 1180px;
        min-width: 1180px;
    }
    .video-planner-filter, .video-planner-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .video-planner-insights, .video-planner-calendar-day-view, .video-planner-calendar-year-view {
        grid-template-columns: minmax(0, 1fr);
    }
    .video-planner-section-heading {
        gap: 12px;
    }
    .video-planner-view-switch {
        width: 100%;
        overflow-x: auto;
    }
    .video-planner-calendar-day-view {
        min-height: 300px;
        padding: 16px;
    }
    .video-planner-board {
        grid-auto-columns: minmax(250px, 82vw);
    }
    .video-planner-list__actions {
        width: 100%;
        justify-content: space-between;
    }
    .video-planner-list__pagination > .pagination-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: 0;
        text-align: left;
    }
    .video-planner-list__pagination .pagination-info-wrap {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }
    .video-planner-list__pagination .pagination-links-wrap {
        width: 100%;
        justify-content: flex-start;
    }
    /* Content Writer Portal */
    .writer-notification-dropdown {
        position: fixed;
        top: calc(var(--topbar-height) + 8px);
        right: 14px;
        left: 14px;
        width: auto;
    }

    .writer-notification-toast-region {
        right: 12px;
        bottom: 12px;
    }

    .writer-payments-page__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .writer-payments-page__header .app-page-actions,
    .writer-payments-page__header .app-button {
        width: 100%;
    }

    .writer-payments-filter {
        grid-template-columns: 1fr;
        padding: 13px;
    }

    .writer-payments-filter__period {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
    }

    .writer-payments-filter > .app-button {
        width: 100%;
    }

    .writer-payments-summary {
        grid-template-columns: 1fr;
    }

    .writer-payments-summary__card {
        min-height: 74px;
    }

    .writer-payments-panel__header {
        align-items: stretch;
        flex-direction: column;
    }

    .writer-rate-settings__footer {
        align-items: stretch;
        flex-direction: column;
        padding-right: 16px;
        padding-left: 16px;
    }

    .writer-rate-settings__row > label {
        width: 100%;
        flex-basis: auto;
    }

    .writer-rate-settings__row {
        align-items: stretch;
        flex-direction: column;
    }

    .writer-rate-settings__footer .app-button {
        width: 100%;
    }

    .writer-rate-offcanvas__panel {
        width: 100%;
    }

    .writer-payment-detail-offcanvas .writer-rate-offcanvas__panel {
        width: 100%;
    }

    .writer-payment-detail-offcanvas .writer-payments-table-wrap {
        padding-right: 0;
        padding-left: 0;
        overflow: visible !important;
    }

    .writer-payment-detail-offcanvas .writer-payments-table,
    .writer-payment-detail-offcanvas .writer-payments-table tbody,
    .writer-payment-detail-offcanvas .writer-payments-table tr {
        display: block;
        width: 100%;
    }

    .writer-payment-detail-offcanvas .writer-payments-table :is(td):nth-child(n) {
        display: flex;
        width: 100%;
    }

    .writer-payment-detail-offcanvas .writer-payments-table thead {
        display: none;
    }

    .writer-payment-detail-offcanvas .writer-payments-table tbody {
        display: grid;
        gap: 12px;
        padding: 12px;
    }

    .writer-payment-detail-offcanvas .writer-payments-table tr {
        overflow: hidden;
        border: 1px solid var(--color-line-strong);
        border-radius: var(--radius-lg);
        background: var(--color-bg-surface);
    }

    .writer-payment-detail-offcanvas .writer-payments-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 10px 12px;
        border-bottom: 1px solid var(--color-line);
        text-align: right;
    }

    .writer-payment-detail-offcanvas .writer-payments-table td::before {
        flex: 0 0 auto;
        color: var(--color-text-muted);
        content: attr(data-label);
        font-size: 11px;
        font-weight: 600;
        text-align: left;
    }

    .writer-payment-detail-offcanvas .writer-payments-table td:first-child {
        justify-content: flex-start;
        padding-top: 13px;
        padding-bottom: 13px;
    }

    .writer-payment-detail-offcanvas .writer-payments-table td:first-child::before {
        display: none;
    }

    .writer-payment-detail-offcanvas .writer-payments-table td:last-child {
        border-bottom: 0;
    }

    .writer-payment-detail-offcanvas .writer-payments-table td[colspan] {
        display: block;
    }

    .writer-payment-detail-offcanvas .writer-payments-table td[colspan]::before {
        display: none;
    }

    .writer-payment-detail-offcanvas .writer-payment-article {
        width: 100%;
    }

    .writer-rate-offcanvas__header,
    .writer-rate-offcanvas__body {
        padding-right: 16px;
        padding-left: 16px;
    }

    .writer-payment-profile__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .writer-payment-profile__metrics > div {
        padding: 10px 12px;
        border-bottom: 1px solid var(--color-line);
    }

    .writer-payment-profile__metrics > div:nth-child(3) {
        border-left: 0;
        border-bottom: 0;
    }

    .writer-payment-profile__metrics > div:nth-child(4) {
        border-bottom: 0;
    }

    .writer-main {
        width: min(100% - 28px, 1440px);
        padding-top: 22px;
    }

    .writer-chart-card__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .writer-chart-card__canvas {
        min-height: 250px;
    }

    .writer-hero,
    .writer-detail-header,
    .writer-document-card,
    .writer-deadline-summary,
    .writer-revision-alert {
        align-items: stretch;
        flex-direction: column;
    }

    .writer-hero__date,
    .writer-deadline-card {
        width: fit-content;
        min-width: 0;
    }

    .writer-workflow-steps {
        grid-template-columns: 1fr;
    }

    .writer-workspace__header {
        align-items: flex-start;
    }

    .writer-task-card {
        grid-template-columns: 1fr;
    }

    .writer-task-card__number {
        display: none;
    }

    .writer-task-card__footer {
        grid-template-columns: 1fr;
    }

    .writer-task-card__side {
        grid-column: auto;
        justify-items: start;
        min-width: 0;
    }

    .writer-brief__list > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .tricks-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .leave-overview-filter__label, .leave-overview-filter__field {
        grid-column: auto;
    }
    .leave-overview-filter__submit, .leave-overview-filter__reset {
        width: 100%;
    }
    .leave-overview-summary {
        flex-wrap: wrap;
    }
    .leave-overview-summary__card {
        flex-basis: 50%;
    }
    .leave-overview-summary__card:nth-child(2) {
        border-right: 0;
    }
    .leave-overview-summary__card:nth-child(-n + 2) {
        border-bottom: 1px solid var(--color-line);
    }
    .leave-overview-directory__header {
        align-items: flex-start;
    }
    .overtime-page-header {
        align-items: stretch;
        flex-direction: column;
    }
    .overtime-page-header__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .overtime-page-header__actions .attendance-button, .overtime-member-header > .attendance-button {
        width: 100%;
        justify-content: center;
    }
    .overtime-live-meta {
        grid-template-columns: minmax(0, 1fr);
    }
    .overtime-segment-row {
        grid-template-columns: 60px minmax(0, 1fr) 38px;
    }
    .overtime-segment-row label {
        grid-column: 2;
    }
    .overtime-segment-row > button {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
    }
    .overtime-segment-row__number {
        grid-row: 1 / span 2;
    }
    .overtime-history-table {
        min-width: 860px;
    }
    .menu-visibility-option-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    #imageLightboxModal {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-width: none;
        max-height: none;
    }
    #imageLightboxModal .chat-index__chat-lightbox-control-style {
        top: calc(env(safe-area-inset-top, 0px) + 14px);
        right: calc(env(safe-area-inset-right, 0px) + 14px);
        width: 48px;
        height: 48px;
    }
    #imageLightboxModal .chat-lightbox-zoom-controls {
        top: calc(env(safe-area-inset-top, 0px) + 14px);
        left: calc(env(safe-area-inset-left, 0px) + 14px);
        height: 48px;
    }
    #imageLightboxModal .chat-lightbox-zoom-button, #imageLightboxModal .chat-lightbox-zoom-level {
        height: 46px;
    }
    #imageLightboxModal .chat-index__chat-lightbox-control-style-2 {
        top: auto;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
        left: auto;
        right: calc(0% - -75px);
        width: 48px;
        height: 48px;
        transform: none;
    }
    #imageLightboxModal .chat-index__chat-lightbox-control-style-3 {
        top: auto;
        right: calc(0% - -14px);
        bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
        left: auto;
        width: 48px;
        height: 48px;
        transform: none;
    }
    #imageLightboxModal .chat-index__layout-01 {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
    }
    #imageLightboxModal .chat-index__layout-02 {
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 156px);
        max-height: calc(100dvh - 156px);
    }
    .mention-profile-card.is-mobile {
        width: auto;
        border-radius: 18px;
        transform: translateY(12px);
        transform-origin: center bottom;
    }
    .mention-profile-card.is-mobile.is-open {
        transform: translateY(0);
    }
    .system-settings-page__header, .system-settings-overview__heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .system-settings-page__heading-icon {
        width: 42px;
        height: 42px;
        border-radius: 13px;
        font-size: 17px;
    }
    .system-settings-page__heading h1 {
        font-size: 20px;
    }
    .system-settings-page__role {
        margin-left: 56px;
    }
    .system-settings-nav {
        margin-bottom: 18px;
        padding: 5px;
    }
    .system-settings-nav__item {
        min-height: 40px;
        padding: 0 13px;
        font-size: 12px;
    }
    .system-settings-overview {
        padding: 18px;
        border-radius: 16px;
    }
    .system-settings-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .system-settings-card {
        min-height: 0;
    }
    .system-settings-page__role {
        margin-left: 0;
    }
    .system-settings-overview {
        padding: 15px;
    }
    .system-settings-card {
        padding: 17px;
    }
    .topbar-mobile-logo img {
        height: 28px;
        max-width: 120px;
    }
    .app-filter-trigger {
        width: 44px;
        padding: 0;
    }
    .app-filter-trigger span {
        display: none;
    }
    .task-notification-member-list {
        grid-template-columns: 1fr;
    }
    .task-notification-module__summary {
        grid-template-columns: 40px minmax(0, 1fr) 32px;
        gap: 10px;
        padding: 14px;
    }
    .task-notification-module__icon {
        width: 40px;
        height: 40px;
    }
    .task-notification-module__stats {
        grid-column: 2 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }
    .task-notification-module__toggle {
        grid-column: 3;
        grid-row: 1;
    }
    .menu-visibility-guide {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .menu-visibility-guide__actions {
        width: 100%;
        padding-left: 48px;
    }
    .menu-visibility-role-matrix__header {
        align-items: flex-start;
        flex-direction: column;
    }
    .task-notification-status-section__header {
        align-items: stretch;
        flex-direction: column;
    }
    .menu-visibility-order-link {
        width: 100%;
        justify-content: center;
    }
    .menu-order-guide strong {
        width: 100%;
        margin-left: 0;
    }
    .task-notification-settings-actions > .menu-visibility-order-actions__buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }
    .menu-visibility-order-actions__buttons .btn {
        width: 100%;
        justify-content: center;
    }
    .menu-visibility-option__body small {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }
    .task-notification-status-card__toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .task-notification-file-name {
        flex-basis: 100%;
        order: 3;
    }
    .tasks-project-control, .project-select-wrap, .project-select {
        min-width: 0;
        width: 100%;
    }
    .tasks-project-manager {
        right: auto;
        left: 0;
    }
    .task-configuration-page__actions {
        width: 100%;
    }
    .task-configuration-page__actions > * {
        flex: 1 !important;
    }
    .task-configuration-page .task-configuration-page__button {
        width: 100%;
    }
    .task-configuration-directory__toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .task-order-status {
        width: 100%;
    }
    .task-configuration-modal {
        padding: 12px;
    }
    .task-configuration-modal__dialog {
        max-height: calc(100vh - 24px);
    }
    .task-configuration-modal__header, .task-configuration-modal__body {
        padding: 16px;
    }
    .task-configuration-modal__footer {
        padding: 12px 16px;
    }
    .task-configuration-modal__footer .btn {
        flex: 1 1 50%;
    }
    .task-status-icon-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .task-configuration-modal--offcanvas {
        padding: 0;
    }
    .task-configuration-modal--offcanvas .task-configuration-modal__dialog {
        width: 100%;
        max-height: none;
        height: 100dvh;
    }
    .members-page__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }
    .members-page .members-page__button {
        width: 100%;
    }
    .members-page .members-page__button--primary {
        grid-column: 1 / -1;
    }
    .members-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .members-summary__card {
        flex-direction: column;
        text-align: center;
    }
    .members-directory__filters {
        grid-template-columns: 1fr;
    }
    .member-editor-page, .member-editor-page--edit {
        max-width: 100%;
        overflow-x: clip;
    }
    .member-editor-layout {
        gap: 18px;
    }
    .member-editor-card {
        width: 100%;
        padding: 18px;
        border-radius: 14px;
    }
    .member-editor-header {
        align-items: flex-start;
        margin-bottom: 24px;
    }
    .member-editor-header__icon {
        width: 40px;
        height: 40px;
    }
    .member-editor-header h1 {
        font-size: 19px;
    }
    .member-editor-page-header {
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 18px;
    }
    .member-editor-page-header h1 {
        padding-top: 5px;
        font-size: 17px;
    }
    .member-editor-page-header__icon {
        display: none;
    }
    .member-editor-grid, .member-editor-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }
    .member-editor-section {
        margin-bottom: 24px;
    }
    .member-editor-section--soft {
        padding: 16px;
    }
    .member-editor-section__heading {
        font-size: 15px;
    }
    .member-editor-avatar-row {
        gap: 14px;
    }
    .member-editor-avatar--edit {
        width: 120px;
        height: 120px;
    }
    .member-editor-avatar-buttons {
        align-items: flex-start;
    }
    .member-editor-upload-button, .member-editor-avatar-remove {
        width: 100%;
    }
    .member-editor-vault-card {
        grid-template-columns: 20px minmax(0, 1fr);
    }
    .member-editor-vault-card__icon {
        display: none;
    }
    .member-editor-actions {
        grid-template-columns: minmax(0, 1fr);
    }
    .member-editor-avatar-row {
        flex-direction: column;
    }
    .member-editor-avatar-actions, .member-editor-avatar-buttons {
        width: 100%;
    }
    .profile-page__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
    .profile-overview__details, .profile-form__grid {
        grid-template-columns: 1fr;
    }
    .profile-form__full-field {
        grid-column: auto;
    }
    .profile-form__date-field {
        max-width: none;
    }
    .profile-page .profile-page__password-button, .profile-page .profile-page__back-button, .profile-page .profile-form__submit {
        width: 100%;
    }
    .box-card {
        padding: 18px;
    }
    .profile-overview__identity {
        align-items: flex-start;
    }
    .profile-overview__avatar {
        flex-basis: 68px;
        width: 68px;
        height: 68px;
        border-radius: 14px;
    }
    .profile-activity {
        grid-template-columns: 1fr;
    }
    .profile-cropper-modal {
        padding: 12px;
    }
    .profile-cropper-dialog {
        height: min(620px, calc(100dvh - 24px));
        max-height: calc(100dvh - 24px);
        border-radius: 16px;
    }
    .profile-cropper-header, .profile-cropper-footer {
        padding: 16px 18px;
    }
    /* Existing Page Header Rules */
    .page-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px;
    }
    .page-header > div:last-child {
        width: 100%;
        display: flex;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }
    .page-header .btn, .page-header a.btn, .page-header .btn-icon-label, .page-header .btn-premium {
        width: 100%;
        justify-content: center;
    }
    .search-section form {
        flex-direction: column !important;
    }
    .search-section form button {
        width: 100% !important;
    }
    /* Existing Filter Bar Rules */
    .filter-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .filter-bar > div {
        flex-wrap: wrap !important;
    }
    /* Fix Grids to be responsive */
    div[style*="display:grid"], div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    /* Prevent grid items from causing horizontal overflow */
    div[style*="display:grid"] > div, div[style*="display: grid"] > div {
        min-width: 0 !important;
    }
    /* 🔥 NEW: Global Flex Wrapping for Filter Cards & Button Groups 🔥 */
    .filter-card > div[style*="display:flex"], .filter-card > div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .filter-card > div > div {
        width: 100% !important;
        flex: none !important;
    }
    /* Make inline flex button groups stack (specifically in headers/cards) */
    .page-header div[style*="gap:12px"][style*="display:flex"], .page-header div[style*="gap: 12px"][style*="display: flex"], .card div[style*="gap:12px"][style*="display:flex"], .card div[style*="gap: 12px"][style*="display: flex"] {
        flex-wrap: wrap !important;
    }
    /* 🔥 NEW: Modal Responsiveness 🔥 */
    .modal-content, .modal-confirm-card {
        width: 92% !important;
        max-width: 92% !important;
        margin: 0 auto;
        padding: 20px !important;
    }
    /* Improve padding on mobile for split views */
    .split-view, .card {
        padding: 16px !important;
    }
    .mobile-close-sidebar {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    /* 🔥 NEW: Dropdown Responsiveness 🔥 */
    #noti-dd, #web-push-settings-dd, #user-dd {
        width: 90vw !important;
        max-width: 320px !important;
        right: -10px !important;
        /* Prevent it from pushing too far left on tiny screens */
    }
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .create-btn {
        width: 100%;
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .card-section, .glass-card, .glass-stat-card {
        padding: 12px;
        margin-bottom: 16px;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .scope-toggle, .view-all {
        width: 100%;
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-filter__form {
        align-items: stretch;
        flex-direction: column;
    }
    .dashboard-filter__dates {
        align-items: stretch;
    }
    .dashboard-stats, .dashboard-chart-grid--equal {
        grid-template-columns: 1fr 1fr;
    }
    .dashboard-chart--large {
        height: 280px;
    }
    .dashboard-filter__dates, .dashboard-filter__date-field {
        align-items: stretch;
        flex-direction: column;
    }
    .dashboard-filter .dashboard-filter__date-input, .dashboard-filter__submit, .dashboard-filter__reset {
        width: 100%;
    }
    .dashboard-stats, .dashboard-chart-grid--equal {
        grid-template-columns: 1fr;
    }
    .dashboard-stat-card, .dashboard-chart-card, .dashboard-detail-card {
        padding: 16px;
    }
    .dashboard-card__header {
        align-items: flex-start;
    }
    .completed-tasks-board {
        padding: 16px;
        border-radius: 12px;
    }
    .completed-tasks-board__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .completed-tasks-board__grid {
        grid-template-columns: 1fr;
    }
    .pagination-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .pagination-info-wrap {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .pagination-links-wrap {
        width: 100%;
        justify-content: center;
    }
    .publishing-pagination, .tricks-pagination, .ajax-pagination {
        text-align: center;
    }
    .publishing-pagination .pagination-container, .tricks-pagination .pagination-container, .ajax-pagination .pagination-container {
        margin-right: auto;
        margin-left: auto;
    }
    .wc-full-detail {
        padding: 16px;
    }
    .wc-full-detail-header {
        align-items: stretch;
        flex-direction: column;
    }
    .wc-full-detail-header .credential-show-button {
        width: 100%;
    }
    .wc-offcanvas-panel {
        width: 100%;
    }
    .wc-offcanvas-header, .wc-offcanvas-body {
        padding-right: 16px;
        padding-left: 16px;
    }
    .credential-show-header {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }
    .credential-show-header-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .credential-show-title {
        font-size: 19px;
    }
    .credential-show-card {
        padding: 16px;
        border-radius: 14px;
    }
    .notifications-list-card__header, .notifications-list__topline {
        grid-template-columns: 1fr;
    }
    .notifications-list__item {
        grid-template-columns: 36px minmax(0, 1fr);
        align-items: start;
    }
    .notifications-list__arrow {
        display: none;
    }
    .notifications-list__time {
        justify-content: flex-start;
    }
    .maintenance-form-page .maintenance-form-card {
        padding: 18px;
    }
    .maintenance-form-page .maintenance-assignee-grid, .maintenance-form-page .maintenance-duration-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .maintenance-form-page .maintenance-form-main-grid, .maintenance-form-page .maintenance-assignee-grid, .maintenance-form-page .maintenance-duration-grid, .maintenance-form-page .maintenance-date-grid {
        grid-template-columns: 1fr;
    }
    .maintenance-form-page .maintenance-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .maintenance-form-page .maintenance-cancel-link, .maintenance-form-page .maintenance-submit-button {
        width: 100%;
    }
    .seo-content-form-page .seo-content-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
    .seo-topic-offcanvas {
        padding: 0;
    }
    .seo-topic-offcanvas__timeline, .seo-topic-offcanvas__body {
        padding-right: 14px;
        padding-left: 14px;
    }
    .seo-content-detail-page .tm-label, .seo-content-detail-page .card-tm-label {
        display: none;
    }
    .seo-topic-card__main {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .seo-topic-card__content {
        flex-basis: calc(100% - 56px);
    }
    .seo-topic-card__main .status-badge {
        margin-left: 46px;
    }
    .seo-content-detail-page .card-timeline {
        margin: 12px 4px 0;
    }
    .seo-topic-trash__actions {
        width: 100%;
        justify-content: flex-end;
    }
    .seo-topic-offcanvas__panel {
        width: 100%;
        border-left: 0;
    }
    .maintenance-page-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .app-page-actions {
        width: 100%;
    }
    .app-page-actions > * {
        flex: 1;
    }
    .app-page-actions .app-button {
        width: 100%;
    }
    .app-form-grid, .app-modal__actions {
        grid-template-columns: 1fr;
    }
    .maintenance-summary-card__identity {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
    .maintenance-summary-card__assignee {
        padding-right: 0;
        border-right: 0;
    }
    .maintenance-rounds-card__list {
        grid-template-columns: 1fr;
    }
    .maintenance-task-panel {
        padding: 14px;
    }
    .maintenance-task-panel__header {
        align-items: flex-start;
        flex-direction: column;
    }
    .maintenance-task-panel__tools {
        width: 100%;
        justify-content: space-between;
    }
    .maintenance-remarks__footer {
        align-items: stretch;
        flex-direction: column;
    }
    .monthly-detail-offcanvas__header {
        padding-right: 14px;
        padding-left: 16px;
    }
    .monthly-detail-offcanvas__full-link span {
        display: none;
    }
    .monthly-detail-offcanvas__full-link {
        width: 36px;
        padding: 0;
    }
    .monthly-embedded-detail__content {
        padding: 14px;
    }
    .publishing-workflow {
        padding: 20px 16px 0;
    }
    .publishing-offcanvas-form {
        padding: 20px 16px;
    }
    .publishing-data-section, .publishing-topic-card, .publishing-link-section {
        padding: 16px;
    }
    .publishing-field-row, .publishing-link-row {
        min-width: 0;
    }
    .publishing-status-button {
        width: 100%;
    }
    .publishing-page-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }
    .publishing-toolbar-button, .publishing-add-button {
        width: 100%;
    }
    body .chat-layout {
        height: calc(100dvh - var(--topbar-height) - 24px);
        min-height: 480px;
        border-radius: 12px;
    }
    body .chat-layout .chat-sidebar {
        width: 100%;
        flex-basis: 100%;
    }
    body .chat-layout .chat-main {
        min-width: 0;
    }
    body .chat-layout .chat-right {
        position: absolute;
        inset: 0 0 0 auto;
        z-index: 100;
        width: min(320px, 100%) !important;
        flex-basis: auto;
        transform: translateX(0);
        transition: transform 0.2s ease;
    }
    body .chat-layout .chat-right.collapsed {
        display: flex;
        width: min(320px, 100%) !important;
        transform: translateX(100%);
    }
    body .chat-layout .chat-messages {
        padding: 14px 12px;
    }
    body .chat-layout .message-bubble {
        max-width: 84%;
    }
    body .chat-layout .chat-pinned-panel {
        right: 8px;
        left: 8px;
    }
    body .chat-layout .chat-pinned-list-date {
        display: none;
    }
    .publishing-form-card {
        padding: 18px;
        border-radius: 16px;
    }
    .publishing-form-primary-grid, .publishing-role-grid--two {
        grid-template-columns: 1fr;
    }
    .publishing-form-section--team {
        padding: 16px;
    }
    .publishing-modal-footer {
        align-items: stretch;
        flex-direction: column;
    }
    .publishing-modal-workflow-actions, .publishing-modal-footer-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .publishing-modal-footer-actions {
        margin-left: 0;
    }
    .publishing-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }
    .publishing-form-button {
        width: 100%;
    }
    .departments-page-header__inner {
        align-items: stretch;
        flex-direction: column;
    }
    .departments-add-button {
        width: 100%;
        justify-content: center;
    }
    .department-modal__footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }
    .department-modal__footer .btn {
        width: 100%;
    }
    .trick-language-selector {
        grid-template-columns: repeat(2, minmax(110px, 1fr));
    }
    .trick-type-selector, .trick-form-sidebar {
        grid-template-columns: 1fr;
    }
    .trick-form-card, .trick-form-actions-card {
        padding: 18px;
    }
    .tricks-grid {
        grid-template-columns: 1fr;
    }
    .tricks-grid-card {
        min-height: 210px;
    }
    .trick-detail-hero {
        padding: 18px;
    }
    .trick-detail-title {
        font-size: 20px !important;
    }
    .trick-detail-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }
    .trick-code-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding: 8px 10px;
    }
    .trick-copy-code-button {
        width: 100%;
        justify-content: center;
        margin-bottom: 0;
    }
    .roles-page .roles-page__add-button {
        width: 100%;
    }
    .role-order-status {
        align-items: flex-start;
        white-space: normal;
    }
    .role-modal {
        padding: 12px;
    }
    .role-modal__header, .role-modal__body {
        padding: 16px;
    }
    .role-modal__footer {
        padding: 12px 16px;
    }
    .role-modal .role-modal__button {
        flex: 1 1 50%;
    }
    .leave-form-page__header {
        align-items: flex-start;
    }
    .leave-form-page__type-badge {
        display: none;
    }
    .leave-form-grid--two-columns, .leave-period-options, .leave-makeup-date-list, .holiday-create-form {
        grid-template-columns: 1fr;
    }
    .leave-request-form__footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }
    .leave-request-form__cancel, .leave-request-form__submit, .holiday-create-form__submit {
        width: 100%;
    }
    .holiday-year-filter {
        max-width: 100%;
        overflow-x: auto;
    }
    .leave-form-page__title {
        font-size: 20px;
    }
    .leave-form-section {
        padding: 16px;
    }
    .leave-form-section__header {
        margin-bottom: 14px;
    }
    .leave-days-summary__main > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
    .leave-days-summary p {
        margin-left: 0;
    }
    .holidays-page .leave-form-page__header {
        flex-direction: column;
    }
    .holiday-year-filter {
        width: 100%;
    }
    .holiday-year-filter__link {
        flex: 1 0 auto;
    }
    .leaves-page__header {
        align-items: flex-start;
        flex-direction: column;
    }
    .leaves-page__actions {
        display: flex;
        width: 100%;
    }
    .leaves-page__actions > * {
        flex: 1;
    }
    .leaves-page .leaves-page__button {
        width: 100%;
    }
    .leave-quota-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .leave-quota-grid > article.leave-quota-card:last-child {
        grid-column: 1 / 3;
    }
    .leave-history-tabs__button {
        padding-right: 8px;
        padding-left: 8px;
    }
    .leave-makeup-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .leave-makeup-row__form {
        width: 100%;
    }
    .leave-makeup-row__date {
        min-width: 0;
        flex: 1 1 auto;
    }
    .leave-record-modal {
        padding: 0;
    }
    .leave-record-modal__dialog {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }
    .leave-record-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .leaves-overdue-alert {
        padding: 12px;
    }
    .pending-makeup-item__form {
        grid-template-columns: 1fr;
    }
    .leave-record-modal__header, .leave-record-modal__body {
        padding-right: 15px;
        padding-left: 15px;
    }
    .leave-record-summary {
        grid-template-columns: 1fr;
    }
    .leave-record-summary__item--date {
        grid-column: auto;
    }
    .leave-record-modal__footer {
        align-items: stretch;
        padding: 12px 15px;
        flex-direction: column;
    }
    .leave-record-modal__footer .leave-detail-panel__convert-form, .leave-record-modal__footer .leave-detail-panel__convert-button, .leave-record-modal__cancel-form, .leave-record-modal__edit, .leave-record-modal__cancel-button, .leave-record-modal__dismiss {
        width: 100%;
    }
    .line-notification-card {
        padding: 14px;
    }
    .line-notification-tab {
        padding: 0 11px;
    }
    .line-rule-grid, .line-pattern-columns {
        padding: 9px;
    }
    .line-rule-recipient-list {
        grid-template-columns: 1fr;
    }
    .line-rule-card__footer {
        align-items: stretch;
        flex-direction: column;
    }
    .line-rule-card__footer .btn {
        width: 100%;
    }
    .trash-management-heading-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .trash-management-heading-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }
    .trash-management-page-actions .app-button, .trash-management-bulk-actions .app-button {
        flex: 1 1 auto;
    }
    .trash-overview-summary {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .trash-overview-summary p {
        flex-basis: 100%;
        margin-left: 54px;
    }
    .chat-sidebar {
        border-right: none;
    }
    .chat-sidebar.collapsed {
        width: 0;
    }
    .chat-sidebar:not(.collapsed) + .chat-main {
        display: none;
    }
    .chat-right {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: min(100%, 320px);
        z-index: 100;
        transform: translateX(100%);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }
    .chat-right:not(.collapsed) {
        transform: translateX(0);
    }
    #closeRightPanelBtn {
        display: block !important;
    }
    /* Mobile Chat Input Area Tweaks */
    .chat-input-area {
        gap: 6px;
    }
    .chat-textarea-wrapper {
        padding: 2px 8px;
    }
    .btn-send, .btn-attach, .btn-icon {
        width: 32px;
        height: 32px;
    }
    .chat-textarea {
        font-size: 15px;
    }
    #emojiPickerContainer {
        position: fixed !important;
        bottom: 60px !important;
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        z-index: 999999 !important;
    }
    emoji-picker {
        width: 100% !important;
    }
    .topbar-chat-dropdown {
        position: fixed;
        top: 72px;
        right: 14px;
        left: 14px;
        width: auto;
    }
    .mini-chat-dock {
        right: 8px;
        left: 8px;
    }
    .mini-chat-window {
        width: 100%;
        height: min(520px, calc(100vh - 92px));
    }
    .mini-chat-dock .mini-chat-window:not(:last-child) {
        display: none;
    }
    .vault-unlock-card {
        padding: 32px 20px;
    }
    .vault-pin-boxes {
        gap: 8px;
    }
    .vault-pin-box {
        height: 52px;
        border-radius: 12px;
        font-size: 20px;
    }
    .global-page-navigation {
        gap: 10px;
        margin-bottom: 12px;
    }
    .global-page-navigation__breadcrumb {
        gap: 7px;
        font-size: 12px;
    }
    .global-page-navigation__back {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 10px;
    }
    .notifications-list__item {
        gap: 10px;
        padding: 10px 12px;
    }
    .notifications-list__source-chip, .notifications-list__unread-chip {
        display: none;
    }
    .notifications-tabs {
        display: flex;
        width: 100%;
    }
    .notifications-tabs__button {
        flex: 1;
        padding-inline: 10px;
    }
    .notifications-device-settings {
        padding: 16px;
    }
    .notifications-summary-card {
        flex-direction: column;
        text-align: center;
    }
    .mini-chat-image-viewer {
        padding: 54px 14px;
    }
    .mini-chat-image-viewer__nav {
        width: 38px;
        height: 38px;
        background: rgba(0, 0, 0, 0.45);
        font-size: 16px;
    }
    .mini-chat-image-viewer__nav--previous {
        left: 8px;
    }
    .mini-chat-image-viewer__nav--next {
        right: 8px;
    }
    .message-bubble-wrapper.is-editing .chat-message-stack {
        width: 100%;
        max-width: 100%;
    }
    .chat-inline-editor {
        width: calc(100vw - 64px);
        min-width: 0;
    }
    .chat-inline-editor__hint {
        display: none;
    }
    .website-detail-offcanvas__panel {
        width: 100%;
    }
    .company-website-single__header {
        align-items: flex-start;
        flex-direction: column;
    }
    .website-detail {
        padding: 18px;
    }
    .website-detail__header {
        flex-direction: column;
    }
    .website-detail__actions {
        width: 100%;
        justify-content: flex-end;
    }
    .website-detail__access-row, .website-detail__team-row {
        grid-template-columns: 1fr;
        gap: 7px;
    }
    .website-detail__credential-grid {
        grid-template-columns: 1fr;
    }
    .website-detail__section {
        padding: 16px;
    }
    .website-detail__section-heading--checklist {
        align-items: flex-start;
        flex-direction: column;
    }
    .website-edit-page .form-card, .website-edit-sidebar-grid > .tips-box {
        padding: 18px;
    }
    .website-edit-checklist {
        padding: 14px;
    }
    .website-edit-page .member-grid-compact {
        grid-template-columns: 1fr;
    }
    .website-detail__section--team .website-detail__team-list {
        grid-template-columns: 1fr;
    }
    .website-member-selector {
        grid-template-columns: 1fr;
    }
    .website-training-fields, .website-training-members {
        padding: 16px;
    }
    .website-edit-sidebar, .website-password-grid, .website-training-card--sidebar .website-training-layout {
        grid-template-columns: 1fr;
    }
    .website-password-grid__full, .website-edit-sidebar .website-training-card {
        grid-column: auto;
    }
    .website-edit-sidebar .website-sidebar-actions {
        grid-column: auto;
    }
    .website-edit-checklist__header {
        align-items: flex-start;
        flex-direction: column;
    }
    .website-edit-checklist__add {
        width: 100%;
    }
    .hub-dashboard__header {
        padding: 20px;
    }
    .hub-dashboard__welcome {
        align-items: flex-start;
    }
    .hub-dashboard__welcome h1 {
        font-size: 19px;
    }
    .hub-dashboard-filter__presets {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    .hub-dashboard-filter__dates {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .hub-dashboard-filter__separator {
        display: none;
    }
    .hub-dashboard-filter__field {
        grid-column: 1 / -1;
        height: auto;
        min-height: 54px;
        align-items: stretch;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
    }
    .hub-dashboard-filter__field input {
        width: 100%;
    }
    .hub-dashboard-filter__field > .thai-date-field {
        width: 100%;
    }
    .hub-dashboard-filter__submit, .hub-dashboard-filter__reset {
        width: 100%;
        min-width: 0;
        height: 42px;
        gap: 7px;
    }
    .hub-dashboard-filter__submit {
        padding: 0 14px;
    }
    .hub-dashboard-filter__submit span {
        display: inline;
    }
    .hub-dashboard-filter__reset::after {
        content: "ล้างค่า";
        font: inherit;
    }
    .hub-dashboard-section__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
    .hub-dashboard-section__hint {
        white-space: normal;
    }
    .hub-dashboard-kpis, .hub-dashboard-modules, .hub-dashboard-charts--three, .hub-dashboard-action-grid {
        grid-template-columns: 1fr;
    }
    .hub-dashboard-section--overview .hub-dashboard-kpis, .hub-dashboard-section--modules .hub-dashboard-modules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hub-dashboard-section--overview .hub-dashboard-kpis .hub-dashboard-kpi, .hub-dashboard-section--modules .hub-dashboard-modules .hub-dashboard-module {
        flex-direction: column;
        align-items: flex-start;
    }
    .hub-dashboard-action-grid .hub-dashboard-list-card:last-child {
        grid-column: auto;
    }
    .hub-dashboard-kpi {
        min-height: 94px;
    }
    .hub-dashboard-module {
        min-height: 136px;
    }
    .hub-dashboard-chart {
        height: 230px;
    }
    .hub-dashboard-card-heading__metric {
        display: none;
    }
    .chat-sticker-manager-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    .chat-sticker-manager-sidebar {
        max-height: 230px;
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
    }
    .chat-sticker-manager-content {
        overflow: visible;
    }
    .chat-sticker-manager-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .chat-sticker-results {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .modal-overlay.chat-new-conversation-offcanvas {
        top: var(--topbar-height);
        bottom: 0;
        height: auto;
    }
    .chat-settings-offcanvas .chat-settings-offcanvas__panel {
        width: 100vw;
        max-width: none;
    }
    .chat-new-conversation-offcanvas__panel > .modal-header {
        position: sticky;
        top: 0;
        z-index: 5;
        display: flex;
        min-height: 64px;
        padding: 14px 16px;
        background: #fff;
    }
    .chat-new-conversation-offcanvas__panel > .modal-header .modal-title {
        min-width: 0;
        padding-right: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .chat-new-conversation-offcanvas__panel > .modal-header .modal-close {
        display: inline-flex;
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        border: 1px solid var(--color-border);
        border-radius: 12px;
        background: #f8fafc;
        color: #334155;
        font-size: 18px;
    }
    .chat-new-conversation-offcanvas__panel > .modal-tabs {
        padding: 16px 16px 0;
    }
    .chat-new-conversation-offcanvas__panel > .modal-body {
        padding: 16px;
    }
    body.has-sidebar {
        margin-left: 0;
    }
    .main-content {
        width: 100%;
        overflow-x: hidden;
    }
    .main-content :is(h1, .page-title) {
        overflow-wrap: anywhere;
    }
    :is(.page-header-flex, .page-header, .tasks-header-inner, .members-page__header, .notifications-page__header) {
        display: flex !important;
        width: 100%;
        flex-direction: column;
        align-items: stretch !important;
    }
    :is(.page-header-actions, .members-page__actions, .notifications-page__actions, .maintenance-page-actions, .publishing-page-actions) {
        display: grid !important;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    :is(.page-header-actions, .members-page__actions, .notifications-page__actions, .maintenance-page-actions, .publishing-page-actions) > :is(a, button, form) {
        width: 100%;
        min-width: 0;
    }
    :is(.page-header-actions, .members-page__actions, .notifications-page__actions, .maintenance-page-actions, .publishing-page-actions) > form > :is(a, button), :is(.page-header-actions, .members-page__actions, .notifications-page__actions, .maintenance-page-actions, .publishing-page-actions) > :is(a, button) {
        display: inline-flex;
        width: 100%;
        justify-content: center;
    }
    .cw-filter-card {
        padding: 12px;
    }
    :is(.cw-filter-wrap, .maintenance-filter-wrap, .publishing-filter-wrap, .tricks-filter-wrap) {
        display: grid !important;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
    }
    :is(.cw-search-wrap, .cw-select-wrap, .maintenance-filter-wrap > *, .publishing-filter-wrap > *, .tricks-filter-wrap > *) {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
    :is(.cw-select-wrap select, .maintenance-filter-wrap select, .publishing-filter-wrap select, .tricks-filter-wrap select, .maintenance-filter-wrap input, .publishing-filter-wrap input, .tricks-filter-wrap input) {
        width: 100%;
        min-width: 0;
    }
    .tasks-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }
    .view-switcher-wrap {
        width: 100%;
    }
    .view-switcher-wrap > * {
        flex: 1 1 0;
        justify-content: center;
    }
    .filter-controls-wrap {
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
    :is(.project-select, .task-search-input, .tasks-completed-filter) {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
    .status-pills-wrap {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .status-pills-wrap > * {
        flex: 0 0 auto;
    }
    .kanban-board {
        scroll-snap-type: x proximity;
        overscroll-behavior-inline: contain;
        padding-bottom: 14px;
    }
    .kanban-column {
        width: calc(100vw - 48px);
        min-width: calc(100vw - 48px);
        max-width: calc(100vw - 48px);
        scroll-snap-align: start;
    }
    .completed-tasks-board__grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .main-content .app-standard-table {
        min-width: 760px;
    }
    :is(.grid-2-cols, .grid-2-cols-mb, .import-form-footer, .form-row-compact, .form-row-single-line) {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    :is(.website-detail-offcanvas__panel, .monthly-detail-offcanvas__panel, .publishing-offcanvas__panel, .chat-settings-offcanvas__panel) {
        width: 100vw !important;
        max-width: none !important;
    }
    .modal-overlay {
        padding: 10px;
    }
    :is(.modal-content, .modal-content-lg, .modal-content-xl, .modal-card) {
        width: 100%;
        max-width: none;
        max-height: calc(100dvh - 20px);
        margin: 0;
    }
    .modal-content-xl {
        padding: 20px;
    }
    .chat-layout {
        height: calc(100dvh - 94px);
        min-height: 0;
        border-radius: 12px;
    }
    .chat-sidebar {
        width: 100%;
        min-width: 0;
    }
    .chat-sidebar:not(.collapsed) + .chat-main {
        display: none;
    }
    .chat-header {
        min-width: 0;
        padding: 8px 10px;
    }
    .chat-input-area {
        padding: 8px;
    }
    .chat-conversation-actions-menu {
        width: fit-content;
        max-width: calc(100vw - 24px);
    }
    .main-content {
        padding: 20px 15px;
    }
    .main-content :is(h1, .page-title) {
        font-size: 18px;
        line-height: 1.35;
    }
    .main-content .app-standard-table {
        min-width: 680px;
    }
    .modal-overlay {
        padding: 6px;
    }
    :is(.modal-content, .modal-content-lg, .modal-content-xl, .modal-card) {
        max-height: calc(100dvh - 12px);
        border-radius: 14px;
    }
    .modal-content-xl {
        padding: 14px;
    }
    .modal-header-premium, .modal-body-premium, .modal-footer-premium {
        padding-right: 14px;
        padding-left: 14px;
    }
    .chat-layout {
        height: calc(100dvh - 84px);
        border-radius: 10px;
    }
    .chat-header-title {
        min-width: 0;
    }
    .chat-header-title :is(h2, h3, .chat-title) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    /* Keep horizontally scrollable tables inside their card on mobile. */
    .main-content :is(#table-wrapper, .table-responsive, .table-container, .table-wrapper, .table-scroll-wrapper, .table-scroll-container, .list-table-container, .maintenance-table-region, .maintenance-list-table-container, .website-records-table-container, .publishing-table-scroll, .tricks-table-scroll, .leave-table-wrap, .holiday-table-wrap, .roles-table-wrap, .members-table-wrap, .task-configuration-table-wrap, .app-horizontal-scroll, .card):has(> table) {
        margin: 10px;
        width: auto;
    }
    .topbar-primary {
        gap: 8px !important;
        overflow: hidden;
    }
    .topbar-right {
        flex: 0 0 auto;
        gap: 10px !important;
    }
    .topbar-icon-button, .topbar-user-button {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }
    .topbar-notes-button > i {
        font-size: 14px;
    }
    .topbar-chat-button__icon {
        width: 20px;
        height: 20px;
    }
    .topbar-qr-scanner-button .qr-scan-icon {
        width: 14px;
        height: 14px;
    }
    .system-notes-panel__body {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .system-note-reader__header {
        min-height: 64px;
        padding: 10px 14px;
    }
    .system-note-reader__body {
        padding: 24px 18px 42px;
    }
    .system-note-reader__heading h2 {
        font-size: 22px;
    }
    .system-note-reader__content {
        margin-top: 18px;
        font-size: 13px;
        line-height: 1.7;
    }
    #noti-dd, #web-push-settings-dd, #user-dd, .topbar-chat-dropdown {
        position: fixed !important;
        top: calc(var(--topbar-height) + 4px) !important;
        right: 8px !important;
        left: 8px !important;
        width: auto !important;
        max-width: none !important;
        max-height: calc(100dvh - var(--topbar-height) - 12px) !important;
    }
    .chat-sidebar.collapsed {
        display: none !important;
        width: 0 !important;
        min-width: 0 !important;
    }
    .chat-main {
        width: 100%;
        flex: 1 1 100%;
    }
    .chat-main-header, .chat-input-area {
        padding-inline: 12px;
    }
    .chat-right {
        inset: 0 0 0 auto;
        width: 100%;
        max-width: 100%;
        height: 100%;
    }
    .mini-chat-dock {
        right: 8px !important;
        bottom: 0;
        left: 8px !important;
        width: auto;
        max-width: none !important;
    }
    .mini-chat-window {
        width: 100% !important;
        max-width: none !important;
    }
    .website-edit-sidebar {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .wc-offcanvas-panel, .task-detail-offcanvas, .website-detail-offcanvas, .monthly-detail-offcanvas, .publishing-detail-offcanvas {
        width: 100vw !important;
        max-width: none !important;
    }
    .maintenance-form-page .maintenance-assignee-grid, .maintenance-form-page .maintenance-duration-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .maintenance-form-page .maintenance-assignee-grid, .maintenance-form-page .maintenance-duration-grid, .maintenance-form-page .maintenance-date-grid, .credential-show-grid, .website-detail__credential-grid, .website-detail__team-grid, .website-detail__facts, .website-training-layout {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .maintenance-form-page .maintenance-section-heading {
        flex-direction: column;
        align-items: stretch;
    }
    .maintenance-form-page .maintenance-section-heading button, .maintenance-form-page .maintenance-section-heading .btn {
        width: 100%;
        justify-content: center;
    }
    /*
     * Compact mobile page heading
     * Keep the breadcrumb/title and the shared filter trigger on one row.
     */
    .tasks-header {
        margin-bottom: 12px !important;
    }
    :is(.tasks-header-inner, .page-header-flex, .page-header, .members-page__header, .notifications-page__header):has([data-mobile-filter-actions] [data-mobile-filter-anchor]) {
        display: grid !important;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 8px 12px !important;
        margin-bottom: 12px !important;
    }
    :is(.tasks-header-inner, .page-header-flex, .page-header, .members-page__header, .notifications-page__header):has([data-mobile-filter-actions] [data-mobile-filter-anchor]) > :first-child {
        min-width: 0;
    }
    :is(.tasks-header-inner, .page-header-flex, .page-header, .members-page__header, .notifications-page__header):has([data-mobile-filter-actions] [data-mobile-filter-anchor]) :is(.breadcrumb-wrap, .page-breadcrumb, .members-page__breadcrumb) {
        margin-bottom: 2px !important;
    }
    :is(.tasks-header-inner, .page-header-flex, .page-header, .members-page__header, .notifications-page__header):has([data-mobile-filter-actions] [data-mobile-filter-anchor]) h1 {
        margin-bottom: 0 !important;
    }
    :is(.tasks-header-inner, .page-header-flex, .page-header, .members-page__header, .notifications-page__header):has([data-mobile-filter-actions] [data-mobile-filter-anchor]) [data-mobile-filter-actions] {
        display: flex !important;
        width: auto !important;
        min-width: 44px;
        grid-template-columns: none !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0 !important;
        margin: 0 !important;
    }
    :is(.tasks-header-inner, .page-header-flex, .page-header, .members-page__header, .notifications-page__header):has([data-mobile-filter-actions] [data-mobile-filter-anchor]) [data-mobile-filter-anchor] {
        display: flex !important;
        margin: 0 !important;
    }
    :is(.tasks-header-inner, .page-header-flex, .page-header, .members-page__header, .notifications-page__header):has([data-mobile-filter-actions] [data-mobile-filter-anchor]) .app-filter-trigger {
        width: 44px !important;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0 !important;
    }
    body.chat-page .chat-layout {
        --chat-drawer-width: min(390px, calc(100% - 28px));
    }
    #toast-container {
        right: 12px !important;
        bottom: 12px !important;
    }
    .main-content .list-group-content-box.ungrouped > .list-table-container:has(> table) {
        border: 0;
        border-radius: 10px;
        box-shadow: none;
    }
    /* Mobile filter drawer: keep page actions ordered and visually balanced. */
    .app-filter-offcanvas__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .app-filter-offcanvas__actions .maintenance-action-toolbar {
        display: contents;
    }
    .app-filter-offcanvas__actions :is(.cw-btn-add, .maintenance-add-button, .publishing-add-button, .tricks-add-button, .btn-primary, .members-page__button--primary) {
        order: -10;
    }
    .app-filter-offcanvas__actions :is(a, button) {
        width: 100%;
        min-height: 40px;
        margin: 0 !important;
        justify-content: center;
        border-radius: 10px;
    }
    .app-filter-offcanvas__actions button:disabled {
        display: none !important;
    }
    .app-filter-offcanvas__actions .app-filter-offcanvas__action--full-row {
        grid-column: 1 / -1;
    }
    .task-single-page {
        padding: 0 !important;
    }
    .task-single-header {
        margin-bottom: 16px;
    }
    .task-single-toolbar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 12px;
    }
    .task-single-toolbar .btn-back, .task-single-copy {
        display: inline-flex;
        width: 100%;
        min-width: 0;
        min-height: 40px;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 7px 10px;
        text-align: center;
    }
    .task-single-toolbar .btn-back {
        grid-column: 1 / -1;
    }
    .task-single-toolbar-actions {
        display: grid;
        grid-row: 3;
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        margin-left: 0;
    }
    .task-single-toolbar-separator {
        display: none;
    }
    .task-single-project {
        grid-column: 1 / -1;
        grid-row: 2;
        min-width: 0;
        padding: 2px 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .task-page-title-input {
        width: 100%;
        margin-left: 0;
        padding-inline: 4px;
        font-size: 22px;
    }
    .task-single-layout, .task-single-main, .task-single-sidebar {
        gap: 12px;
    }
    .task-single-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }
    .task-single-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .task-view-card {
        padding: 16px;
        border-radius: 14px;
    }
    .task-properties-table {
        gap: 12px;
    }
    .task-property-row {
        display: grid;
        grid-template-columns: 108px minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        min-height: 38px;
    }
    .task-property-label {
        width: auto;
        min-height: 38px;
        align-items: center;
    }
    .task-property-value {
        width: 100%;
        min-height: 38px;
        align-items: center;
    }
    .task-property-value > .task-enhanced-select, .task-property-assignees .task-enhanced-select, .task-property-date {
        width: 100%;
        max-width: none;
    }
    .task-property-assignees {
        align-items: stretch;
    }
    .task-property-assignees .assignee-badge {
        max-width: 100%;
    }
    .task-info-item {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
    }
    .task-info-value {
        justify-self: end;
        max-width: 100%;
        text-align: right;
    }
    .task-info-value--member {
        justify-content: flex-end;
    }
    .kanban-board-order-bar {
        align-items: flex-start;
        flex-direction: column;
    }
    .page-subtitle {
        font-size: 13px;
    }
    .task-configuration-summary {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .line-notification-summary {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .task-single-page {
        padding-inline: 10px;
    }
    .task-property-row {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 8px;
    }
    .task-single-actions {
        grid-template-columns: minmax(0, 1fr);
    }
    .comment-panel, .comment-panel.seo-topic-comments-section {
        padding: 16px;
        border-radius: 14px;
    }
    .comment-panel__header, .comment-panel .comment-panel__header {
        margin-bottom: 14px;
        font-size: 16px;
    }
    .comment-panel__list {
        margin-bottom: 16px;
        padding-right: 4px;
    }
    .comment-panel__composer-row, .comment-panel .comment-panel__composer-row {
        gap: 8px;
    }
    .comment-panel__submit, .comment-panel .comment-panel__submit {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }
    /* Project management keeps native table semantics on mobile. */
    .task-configuration-page__actions {
        display: flex;
        flex-wrap: wrap;
    }
    .task-configuration-page__actions > [data-bulk-trash-open], .task-configuration-page__actions > .task-configuration-page__button {
        min-width: 0;
        flex: 1 1 calc(50% - 4px) !important;
        justify-content: center;
    }
    .task-configuration-page__actions > [data-open-task-configuration-modal="addProjectModal"] {
        flex-basis: 100% !important;
    }
    .main-content .task-configuration-table-wrap:has(.task-configuration-table--projects) {
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }
    .main-content .app-standard-table.task-configuration-table--projects {
        display: table !important;
        width: 1024px !important;
        min-width: 1024px !important;
        max-width: none !important;
        table-layout: fixed !important;
    }
    .main-content .task-configuration-table--projects .table-checkbox-cell {
        position: sticky;
        z-index: 6;
        left: 0;
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        background: #fff;
    }
    .main-content .task-configuration-table--projects thead .table-checkbox-cell {
        z-index: 8;
        background: var(--color-bg-surface-soft);
    }
    .main-content .task-configuration-table--projects:has(thead .table-checkbox-cell) .task-configuration-table__project-heading, .main-content .task-configuration-table--projects:has(thead .table-checkbox-cell) .task-configuration-table__project-cell {
        left: 48px;
    }
    .main-content .task-configuration-table--projects .task-configuration-table__project-heading {
        z-index: 7;
        background: var(--color-bg-surface-soft);
    }
    .main-content .task-configuration-table--projects .task-configuration-table__drag-heading, .main-content .task-configuration-table--projects .task-configuration-table__drag-cell {
        width: 56px !important;
        min-width: 56px !important;
        max-width: 56px !important;
    }
    .main-content .task-configuration-table--projects .task-configuration-table__order-heading, .main-content .task-configuration-table--projects .task-configuration-table__order-cell {
        width: 62px !important;
        min-width: 62px !important;
        max-width: 62px !important;
    }
    .main-content .task-configuration-table--projects .task-configuration-table__description-heading, .main-content .task-configuration-table--projects .task-configuration-table__description-cell {
        width: 260px !important;
        min-width: 260px !important;
        max-width: 260px !important;
    }
    .main-content .task-configuration-table--projects .task-configuration-table__color-heading, .main-content .task-configuration-table--projects .task-configuration-table__color-cell {
        width: 150px !important;
        min-width: 150px !important;
        max-width: 150px !important;
    }
    .main-content .task-configuration-table--projects .task-configuration-table__number-heading, .main-content .task-configuration-table--projects .task-configuration-table__number-cell {
        width: 118px !important;
        min-width: 118px !important;
        max-width: 118px !important;
    }
    .main-content .task-configuration-table--projects .task-configuration-table__actions-heading, .main-content .task-configuration-table--projects .task-configuration-table__actions-cell {
        width: 110px !important;
        min-width: 110px !important;
        max-width: 110px !important;
    }
    /* Mobile chat viewport
       Keep the composer inside the visible screen and confine all scrolling to
       the message list. Long unbroken content must never widen the page. */
    html:has(body.chat-page), body.chat-page {
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        overflow: hidden !important;
        overscroll-behavior: none;
    }
    body.chat-page .main-content {
        position: fixed;
        top: var(--topbar-height);
        right: 0;
        bottom: 0;
        left: 0;
        box-sizing: border-box;
        width: 100%;
        max-width: 100vw;
        height: auto;
        min-height: 0;
        margin: 0;
        overflow: hidden !important;
    }
    body.chat-page .chat-layout, body.chat-page .chat-layout .chat-main {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }
    body.chat-page .chat-layout .chat-main-header, body.chat-page .chat-layout .chat-pinned-bar, body.chat-page .chat-layout .chat-typing-indicator, body.chat-page .chat-layout .chat-input-area {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        flex-shrink: 0;
    }
    body.chat-page .chat-layout .chat-main.has-active-conversation {
        padding-top: 60px;
    }
    body.chat-page .chat-layout #chatHeader {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        z-index: 40;
    }
    body.chat-page .chat-layout .chat-message-search {
        position: absolute;
        top: 60px;
        right: 0;
        left: 0;
        z-index: 39;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px 9px;
        min-height: 0;
        padding: 8px 10px;
    }
    body.chat-page .chat-layout .chat-message-search__meta {
        grid-column: 1 / 2;
        grid-row: 2;
        padding-left: 3px;
    }
    body.chat-page .chat-layout .chat-message-search__navigation {
        grid-column: 2;
    }
    body.chat-page .chat-layout .chat-main.has-active-conversation.has-message-search {
        padding-top: calc(60px + var(--chat-search-inset, 74px));
    }
    body.chat-page .chat-layout .chat-messages {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        flex: 1 1 0;
        padding-bottom: 14px;
        scroll-padding-bottom: calc(var(--chat-composer-inset, 72px) + 16px);
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-x: none;
        -webkit-overflow-scrolling: touch;
    }
    body.chat-page .chat-layout .chat-main.has-active-conversation .chat-messages::after {
        content: "";
        display: block;
        width: 100%;
        height: calc(var(--chat-composer-inset, 72px) + 16px);
        pointer-events: none;
    }
    body.chat-page .chat-layout .chat-main.has-active-conversation #chatInputArea {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 50;
        display: flex !important;
        padding: 8px 8px max(28px, env(safe-area-inset-bottom));
        background: #fff;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
    }
    body.chat-page .chat-layout .chat-textarea-wrapper, body.chat-page .chat-layout .chat-composer-editor-row, body.chat-page .chat-layout .chat-input-editor {
        min-width: 0;
        max-width: 100%;
    }
    body.chat-page .chat-layout .message-bubble-wrapper {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    body.chat-page .chat-layout .chat-message-stack, body.chat-page .chat-layout .chat-message-row {
        max-width: 100%;
        min-width: 0;
    }
    body.chat-page .chat-layout .chat-message-stack {
        width: calc(100% - 36px);
    }
    body.chat-page .chat-layout .message-bubble-wrapper.me .chat-message-stack {
        width: 100%;
    }
    body.chat-page .chat-layout .chat-message-row {
        width: 100%;
    }
    body.chat-page .chat-layout .chat-message-stack.is-mine .chat-message-row {
        justify-content: flex-end;
    }
    body.chat-page .chat-layout .message-bubble {
        min-width: 0;
        max-width: calc(100% - 72px);
        overflow-wrap: anywhere;
        word-break: break-word;
        white-space: normal;
    }
    body.chat-page .chat-layout .message-bubble :is(p, div, span, a, pre, code) {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    body.chat-page .chat-layout .message-bubble :is(pre, code) {
        white-space: pre-wrap;
    }
    body.chat-page .chat-layout .message-bubble :is(img, video, audio, iframe) {
        max-width: 100%;
    }
    body.chat-page .chat-layout .message-actions {
        display: flex;
        flex: 0 0 auto;
        gap: 4px;
        margin: 0 4px;
        opacity: 1 !important;
        visibility: visible;
    }
    body.chat-page .chat-layout .btn-msg-action {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
    }
    /* Notifications: explicit mobile layout keeps every action in its row. */
    .notifications-page__header {
        gap: 12px;
        margin-bottom: 14px;
    }
    .notifications-page__heading {
        gap: 10px;
    }
    .notifications-page__heading-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 16px;
    }
    .notifications-page__heading h1 {
        font-size: 19px;
    }
    .notifications-page__heading p {
        margin-top: 2px;
        font-size: 12px;
    }
    .notifications-tabs {
        margin-bottom: 12px;
    }
    .notifications-summary {
        gap: 8px;
        margin-bottom: 12px;
    }
    .notifications-summary-card {
        min-height: 72px;
        padding: 12px;
        flex-direction: row;
        gap: 10px;
        border-radius: 14px;
        text-align: left;
    }
    .notifications-summary-card__icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 14px;
    }
    .notifications-summary-card strong {
        margin-top: 2px;
        font-size: 15px;
    }
    .notifications-list-card {
        border-radius: 14px;
    }
    .notifications-list-card__header {
        gap: 14px;
        padding: 14px;
    }
    .notifications-list-card__title {
        font-size: 17px;
    }
    .notifications-list-card__header p {
        margin-top: 2px;
        font-size: 12px;
    }
    .notifications-list-card__controls {
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }
    .notifications-select-checkbox--all {
        min-height: 34px;
    }
    .notifications-selected-count {
        min-height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }
    .notifications-bulk-delete-button {
        width: 100%;
        min-height: 40px;
        grid-column: 1 / -1;
    }
    .notifications-list__item {
        grid-template-columns: 22px minmax(0, 1fr) 34px;
        grid-template-areas:
            "select main delete"
            ". time delete";
        align-items: start;
        column-gap: 10px;
        row-gap: 6px;
        min-height: 88px;
        padding: 13px 12px;
    }
    .notifications-list__select {
        grid-area: select;
        align-self: start;
        margin-top: 5px;
    }
    .notifications-select-checkbox__box {
        width: 20px;
        height: 20px;
        border-radius: 7px;
    }
    .notifications-list__main {
        grid-area: main;
        grid-template-columns: 30px minmax(0, 1fr);
        align-items: start;
        gap: 9px;
    }
    .notifications-list__icon {
        width: 30px;
        height: 30px;
        border-radius: 10px;
        font-size: 12px;
    }
    .notifications-list__title-row {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 5px 6px;
    }
    .notifications-list__title {
        display: -webkit-box;
        width: 100%;
        flex-basis: 100%;
        overflow: hidden;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.5;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .notifications-list__source-chip, .notifications-list__unread-chip {
        display: inline-flex;
        min-height: 19px;
        padding: 0 7px;
        font-size: 10px;
    }
    .notifications-list__time {
        grid-area: time;
        justify-content: flex-start;
        padding-left: 39px;
        font-size: 11px;
    }
    .notifications-list__delete-form {
        grid-area: delete;
        align-self: center;
    }
    .notifications-list__delete-button {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }
    .notifications-confirm-modal {
        padding: 16px;
    }
    .notifications-confirm-modal__dialog {
        padding: 28px 20px 20px;
        border-radius: 18px;
    }
    .notifications-confirm-modal__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .notifications-confirm-modal__cancel, .notifications-confirm-modal__confirm {
        min-width: 0;
        width: 100%;
    }
    .task-notification-summary {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .maintenance-detail-layout {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .task-share-modal {
        align-items: end;
        padding: 0;
    }
    .task-share-dialog {
        width: 100%;
        max-height: 92dvh;
        border-radius: 18px 18px 0 0;
    }
    .task-share-dialog__body {
        display: block;
        min-height: 0;
        max-height: 48dvh;
        overflow: auto;
    }
    .task-share-picker {
        border-right: 0;
    }
    .task-share-selected-panel {
        border-top: 1px solid var(--color-border);
    }
    .task-share-member-list, .task-share-selected-list {
        max-height: 210px;
    }
    .task-share-dialog__hint {
        display: none;
    }
    .task-share-dialog__footer {
        justify-content: flex-end;
    }
    .message-bubble.task-share-bubble, .mini-chat-message__bubble.task-share-bubble {
        width: 100%;
        max-width: 100%;
    }
    .task-share-card__meta {
        padding-left: 16px;
    }
    .comment-panel__composer-row, .comment-panel .comment-panel__composer-row {
        gap: 8px;
    }
    .comment-panel__editor .ql-editor, .comment-panel .comment-panel__editor .ql-editor {
        max-height: 132px;
        padding: 11px 12px !important;
    }
    .comment-panel .ql-bubble .ql-tooltip, .comment-edit-mode .ql-bubble .ql-tooltip {
        max-width: calc(100vw - 32px);
    }
    .main-content :is(table.app-standard-table.task-configuration-table--projects, table.app-standard-table, table.line-member-table, table.trash-management-table, table.trash-overview-table):not(.company-articles-table, .maintenance-data-table) {
        --app-table-min-width: 0px;
        --mobile-table-min-width: 0px;
        width: fit-content !important;
        min-width: 100% !important;
        max-width: none !important;
        table-layout: auto !important;
    }
    .main-content :is(table.app-standard-table.task-configuration-table--projects, table.app-standard-table, table.line-member-table, table.trash-management-table, table.trash-overview-table):not(.company-articles-table, .maintenance-data-table) :is(col, th, td) {
        width: auto !important;
        min-width: 0 !important;
    }
    .main-content :is(table.app-standard-table.task-configuration-table--projects, table.app-standard-table, table.trash-management-table):not(.company-articles-table, .maintenance-data-table) :is(.table-checkbox-cell, .publishing-col--select, .trash-management-checkbox-column) {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
    }
    /* Website records previously allowed breaking at every character. Once
       columns use intrinsic sizing that makes the name column's min-content
       width a single glyph, so WebKit collapses names into a vertical stack. */
    .main-content .website-records-table :is(.list-task-name, .website-job-name-link, .cw-url-link, .website-taxonomy-badge) {
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }
    .main-content .website-records-table tbody .list-task-title-wrap {
        min-width: max-content;
    }
    /* Safari can ignore a descendant's intrinsic minimum while resolving an
       auto-layout table with a colgroup. Give the actual name cell a compact
       floor so it cannot collapse and inflate the entire row vertically. */
    .main-content table.website-records-table :is(th.website-records-name-cell, td.website-records-name-cell) {
        width: auto !important;
        min-width: 210px !important;
        max-width: 280px !important;
    }
    .main-content .website-records-table .website-record-name-access {
        width: auto;
        min-width: 0;
        max-width: 100%;
    }
    .company-articles-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .company-articles-header__actions {
        width: 100%;
    }
    .company-articles-header__actions .company-articles-button {
        flex: 1 1 calc(50% - 10px);
    }
    .company-articles-period-navigation {
        width: 100%;
        margin: 0;
        grid-template-columns: var(--filter-control-height) minmax(0, 1fr) var(--filter-control-height);
    }
    .company-articles-toolbar label.company-articles-month-picker {
        width: 100%;
    }
    .company-articles-toolbar {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .company-articles-summary {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .company-articles-status-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        overflow: hidden;
    }
    .company-videos-status-summary.is-open {
        overflow: visible;
    }
    .company-videos-category-summary {
        margin-right: -2px;
        margin-left: -2px;
    }
    .company-articles-status-summary article > div, .company-articles-status-summary em {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }
    .company-articles-status-summary .company-articles-status-summary__total {
        grid-column: 1 / -1;
        min-height: 170px;
        padding: 26px;
    }
    .company-articles-form-grid, .company-articles-overview-meta, .company-articles-editor-cover {
        grid-template-columns: 1fr;
    }
    .company-articles-editor-cover__preview {
        width: min(100%, 240px);
    }
    .company-articles-dialog {
        padding: 10px;
    }
    .company-articles-dialog__panel {
        max-height: calc(100vh - 20px);
    }
    .company-articles-overview-hero, .company-articles-overview-editor__hero {
        grid-template-columns: 1fr;
    }
    .company-articles-overview-editor-cover {
        min-height: 220px;
    }
    .company-articles-overview-editor__badges, .company-articles-overview-editor-grid {
        grid-template-columns: 1fr;
    }
    .company-articles-overview-editor-grid > label {
        border-right: 0;
        border-bottom: 1px solid var(--color-line);
    }
    .company-articles-overview-editor-grid > label:last-child {
        border-bottom: 0;
    }
    .company-articles-overview-editor-list > label, .company-articles-overview-editor__docs {
        grid-template-columns: 1fr;
    }
    .company-articles-overview-editor__docs > i {
        display: none;
    }
    .company-articles-overview-links {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }
    .company-articles-overview-footer {
        align-items: stretch;
        flex-direction: column;
    }
    .company-articles-copy-prompt {
        width: 38px;
    }
    .company-articles-overview-links .company-articles-doc-link {
        width: 100%;
        justify-content: center;
    }
    .company-articles-overview-cover, .company-articles-overview-cover img, .company-articles-overview-cover > span {
        min-height: 170px;
    }
    .company-articles-overview-grid {
        grid-template-columns: 1fr;
    }
    .company-articles-overview-grid .company-articles-overview-field {
        border-right: 0;
        border-bottom: 1px solid var(--color-line);
    }
    .company-articles-overview-grid .company-articles-overview-field:last-child {
        border-bottom: 0;
    }
    .company-articles-overview-list .company-articles-overview-field {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .company-articles-action span {
        display: none;
    }
    .company-articles-option-add, .company-articles-option-add.is-status {
        grid-template-columns: minmax(0, 1fr) 74px;
    }
    .company-articles-option-add .company-articles-button {
        grid-column: 1 / -1;
    }
    .company-articles-cover-actions {
        display: flex;
        flex-wrap: wrap;
    }
    .company-articles-cover-actions > span {
        display: none;
    }
    .company-articles-offcanvas__panel--overview {
        width: min(760px, 100%);
    }
    .company-articles-offcanvas__panel--details {
        width: min(800px, 100%);
    }
    .leave-history-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }
    .leave-history-tabs button#makeupHistoryTab {
        grid-column: 1 / -1;
    }
    .mobile-bottom-nav {
        position: fixed;
        z-index: 11500;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        height: 68px;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: end;
        padding: 8px;
        border-radius: 20px 20px 0 0;
        background: color-mix(in srgb, var(--color-bg-surface) 96%, transparent);
        box-shadow: 0 0 8px #00000020;
    }
    .mobile-bottom-nav__item {
        display: flex;
        min-width: 0;
        height: 54px;
        align-items: center;
        justify-content: flex-end;
        gap: 3px;
        border: 0;
        padding: 4px 2px;
        flex-direction: column;
        background: transparent;
        color: var(--color-text-muted);
        font: inherit;
        font-size: 10px;
        font-weight: 500;
        text-decoration: none;
        cursor: pointer;
    }
    .mobile-bottom-nav__item > i {
        font-size: 18px;
    }
    .mobile-bottom-nav__item.is-active {
        color: var(--color-primary);
    }
    .mobile-bottom-nav__item--scan {
        position: relative;
        overflow: visible;
        color: var(--color-primary);
    }
    .mobile-bottom-nav__scan-icon {
        display: grid;
        width: 54px;
        height: 54px;
        margin-top: -28px;
        place-items: center;
        border: 5px solid var(--color-bg-base);
        border-radius: 50%;
        background: var(--color-primary);
        color: var(--color-white);
        box-shadow: var(--shadow-hover);
    }
    .mobile-bottom-nav__scan-icon svg {
        width: 24px;
        height: 24px;
    }
    .topbar-right > :is(.topbar-qr-scanner-button, .topbar-notes-button, .topbar-chat-menu) {
        display: none;
    }
    body.has-sidebar .main-content {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
    body.chat-page .main-content {
        bottom: calc(60px + env(safe-area-inset-bottom));
        padding-bottom: 0;
    }
    .notes-page__header {
        align-items: stretch;
        flex-direction: column;
    }
    .notes-page__heading h1 {
        font-size: 22px;
    }
    .notes-page__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .notes-page__button {
        width: 100%;
        min-width: 0;
    }
    .notes-page__toolbar {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
    .notes-page__count {
        text-align: left;
    }
    .notes-page__grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .notes-page-card {
        min-height: 0;
    }
    .notes-page-editor {
        align-items: end;
        padding: 0;
    }
    .notes-page-editor__dialog {
        width: 100%;
        max-height: calc(100dvh - 24px);
        border-radius: 22px 22px 0 0;
    }
    .notes-page-editor__form {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
    .notes-trash-toolbar {
        grid-template-columns: minmax(0, 1fr);
    }
    .notes-trash-selection {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 760px) {
    .attendance-admin-tabs__button {
        justify-content: center;
        min-height: 52px;
        padding: 8px;
    }
    .attendance-admin-tabs__button > i {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }
    .attendance-admin-tabs__button small {
        display: none;
    }
    .attendance-report-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .attendance-report-actions > * {
        flex: 1 1 auto;
    }
    .attendance-record-offcanvas__panel {
        width: 100%;
    }
    .attendance-location-offcanvas .attendance-record-offcanvas__panel {
        width: 100%;
    }
    .attendance-record-offcanvas__header, .attendance-record-offcanvas__body {
        padding-right: 18px;
        padding-left: 18px;
    }
    .attendance-record-detail__grid, .attendance-record-edit-form {
        grid-template-columns: 1fr;
    }
    .attendance-record-edit-form__wide {
        grid-column: auto;
    }
    .attendance-record-edit-form__actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }
    .attendance-record-edit-form__actions .attendance-button {
        width: 100%;
    }
    .attendance-location-offcanvas__coordinates {
        grid-template-columns: 1fr;
    }
    .attendance-location-offcanvas__actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }
    .attendance-location-offcanvas__actions .attendance-button {
        width: 100%;
    }
}
@media (max-width: 720px) {
    .email-notification-summary {
        grid-template-columns: 1fr;
    }
    .email-notification-settings-panel__header, .task-notification-settings-heading {
        align-items: stretch;
        flex-direction: column;
    }
    .email-notification-settings-panel__actions {
        justify-content: flex-start;
    }
    .email-notification-group__header p {
        white-space: normal;
    }
    .task-notification-settings-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .task-notification-module__subheader {
        align-items: flex-start;
        flex-direction: column;
    }
    .task-notification-status-section__member-count {
        align-self: flex-start;
    }
    .task-subtask-row {
        display: grid;
        grid-template-columns: 24px 18px 78px minmax(0, 1fr) 28px;
        gap: 8px;
        align-items: center;
    }
    .task-subtask-row .subtask-input, .task-subtask-row .subtask-title-input {
        grid-column: 3 / 5;
        grid-row: 1;
        width: 100%;
    }
    .task-subtask-progress-control {
        grid-column: 3;
        grid-row: 2;
        margin-left: 0;
    }
    .task-subtask-row > .task-subtask-progress-date + .thai-date-field {
        grid-column: 4 / 6;
        grid-row: 2;
        width: 100%;
        min-width: 0;
    }
    .task-subtask-drag-handle {
        grid-column: 1;
        grid-row: 1;
    }
    .task-subtask-row > .subtask-checkbox {
        grid-column: 2;
        grid-row: 1;
    }
    .task-subtask-delete-button {
        grid-column: 5;
        grid-row: 1;
    }
    .task-subtask-delete-button {
        opacity: 1;
    }
    .task-subtask-delete-button {
        opacity: 1;
    }
}
@media (max-width: 700px) {
    .member-leave-offcanvas__panel {
        width: 100%;
    }
    .member-leave-offcanvas__header, .member-leave-offcanvas__content, .member-leave-offcanvas__footer {
        padding-right: 16px;
        padding-left: 16px;
    }
    .member-leave-offcanvas__content {
        padding-top: 16px;
        padding-bottom: 22px;
    }
    .member-leave-offcanvas__footer {
        flex-wrap: wrap;
    }
    .member-leave-offcanvas__status {
        width: 100%;
        flex-basis: 100%;
        text-align: right;
    }
    .member-leave-offcanvas__footer .btn {
        flex: 1;
    }
    .member-leave-manager__summary {
        grid-template-columns: 1fr;
    }
    .member-leave-manager__column-headings {
        display: none;
    }
    .member-leave-manager__rows {
        display: grid;
        gap: 10px;
        overflow: visible;
        border: 0;
        border-radius: 0;
    }
    .member-leave-manager__row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px 8px;
        padding: 13px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
    }
    .member-leave-manager__row + .member-leave-manager__row {
        border-top: 1px solid #e2e8f0;
    }
    .member-leave-manager__type {
        grid-column: 1 / -1;
    }
    .member-leave-manager__metric::before, .member-leave-manager__used-field::before, .member-leave-manager__umrah-toggle::before {
        display: block;
        margin-bottom: 4px;
        color: var(--color-text-muted);
        font-size: 9px;
        font-weight: 600;
        content: attr(data-label);
    }
    .member-leave-manager__used-field {
        position: relative;
        margin-top: 14px;
    }
    .member-leave-manager__used-field::before {
        position: absolute;
        bottom: calc(100% + 3px);
        left: 0;
        content: "ใช้แล้ว";
    }
    .member-leave-manager__umrah-toggle {
        flex-wrap: wrap;
    }
    .member-leave-manager__reason-section > label {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .member-leave-manager__reason-section > label > small {
        width: 100%;
        margin-left: 0;
    }
    .seo-contents-show__writer-assignment-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .seo-contents-show__layout-16 {
        height: 220px;
    }
    .seo-contents-show__layout-16 .ql-editor {
        min-height: 218px;
    }
    .seo-writer-review__preview {
        height: 360px;
    }
    .seo-writer-review__history-item {
        align-items: flex-start;
        flex-direction: column;
    }
}
@media (max-width: 640px) {
    .video-planner__header h1 {
        font-size: 25px;
    }
    .video-planner-toolbar, .video-planner-calendar-card, .video-planner-insight, .video-planner-week, .video-planner-pipeline {
        border-radius: 16px;
    }
    .video-planner-filter {
        grid-template-columns: minmax(0, 1fr) 44px;
    }
    .video-planner-filter > .company-videos-choice {
        grid-column: 1 / -1;
    }
    .video-planner-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .video-planner-stat {
        min-height: 86px;
        gap: 8px;
        padding: 10px;
    }
    .video-planner-stat__icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 16px;
    }
    .video-planner-stats > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
    .video-planner-calendar {
        width: 100%;
        min-width: 0;
    }
    .video-planner-calendar__weekdays span {
        padding: 8px 2px;
        font-size: 9px;
    }
    .video-planner-day {
        min-height: 80px;
        padding: 3px;
    }
    .video-planner-day__number {
        width: 23px;
        height: 23px;
        margin-bottom: 2px;
        font-size: 10px;
    }
    .video-planner-day__items {
        gap: 3px;
    }
    .video-planner-day__items .video-planner-event {
        min-height: 8px;
        height: 8px;
        border-left-width: 0;
        border-radius: 3px;
        padding: 0;
        background: var(--color-info);
    }
    .video-planner-day__items .video-planner-event--review {
        background: var(--color-warning);
    }
    .video-planner-day__items .video-planner-event--publish {
        background: var(--color-success);
    }
    .video-planner-day__items .video-planner-event > * {
        display: none;
    }
    .video-planner-day__more {
        padding-left: 0;
        font-size: 8px;
    }
    .company-videos-category-summary form {
        grid-template-columns: minmax(0, 1fr);
    }
    .company-videos-form-grid, .company-videos-form-hero, .company-videos-overview-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .company-videos-reference-upload, .company-videos-cover-brief {
        grid-template-columns: minmax(0, 1fr);
    }
    .company-videos-reference-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .company-videos-cover-editor {
        width: 100%;
    }
    .leave-overview-filter-card {
        padding: 10px;
    }
    .leave-overview-summary {
        flex-direction: column;
    }
    .leave-overview-summary__card {
        width: 100%;
        min-height: 58px;
        border-right: 0;
        border-bottom: 1px solid var(--color-line);
    }
    .leave-overview-summary__card:nth-child(3) {
        border-bottom: 1px solid var(--color-line);
    }
    .leave-overview-summary__card:last-child {
        border-bottom: 0;
    }
    .leave-overview-directory__header, .leave-overview-activity__header {
        padding: 14px 15px;
    }
    .leave-overview-directory__header p {
        max-width: 260px;
    }
    .leave-overview-activity__grid {
        padding: 10px;
    }
    .leave-overview-activity-item {
        align-items: flex-start;
        flex-direction: column;
    }
    .leave-overview-activity-item__statuses {
        align-items: flex-start;
    }
    .leave-history-tabs__button {
        gap: 4px;
        padding-right: 6px;
        padding-left: 6px;
    }
    .leave-history-tabs__icon {
        display: none;
    }
    .attendance-page__actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }
    .attendance-page__actions .attendance-button {
        width: 100%;
        justify-content: center;
    }
    .qr-scanner-modal {
        place-items: stretch;
        padding: 0;
    }
    .qr-scanner-dialog {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        padding: 18px;
        border: 0;
        border-radius: 0;
    }
    .qr-scanner-camera {
        aspect-ratio: 3 / 4;
        max-height: calc(100dvh - 270px);
    }
    .qr-scanner-camera__frame {
        width: min(62%, 240px);
    }
    .qr-scanner-dialog__header h2 {
        font-size: 19px;
    }
    .qr-scanner-privacy {
        align-items: flex-start;
    }
    .task-notification-module__body {
        padding: 12px;
    }
    .task-notification-settings-actions > .menu-visibility-order-actions__buttons {
        grid-template-columns: minmax(0, 1fr);
    }
    .menu-visibility-menu-summary {
        grid-template-columns: 34px minmax(0, 1fr) 18px;
        min-height: 76px;
    }
    .menu-visibility-menu-summary > .menu-visibility-option__icon {
        grid-column: 1;
        grid-row: 1 / span 2;
    }
    .menu-visibility-menu-summary > .menu-visibility-option__body {
        grid-column: 2;
        grid-row: 1;
    }
    .menu-visibility-menu-summary__count {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }
    .menu-visibility-menu-summary__chevron {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
    .overtime-page-header h1 {
        font-size: 25px;
    }
    .overtime-page-header__actions {
        grid-template-columns: minmax(0, 1fr);
    }
    .overtime-tracker-card__main, .overtime-tracker-card__controls {
        padding: 22px 18px;
    }
    .overtime-live-clock {
        font-size: 46px;
    }
    .overtime-control-buttons {
        grid-template-columns: minmax(0, 1fr);
    }
    .overtime-history-panel__header {
        padding: 17px;
    }
    .overtime-history-filter, .overtime-team-filter {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .overtime-history-filter {
        width: 100%;
        margin-left: 0;
    }
    .overtime-history-filter label {
        width: 100%;
    }
    .overtime-history-bulk-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding-right: 17px;
        padding-left: 17px;
    }
    .overtime-history-bulk-toolbar .app-button {
        width: 100%;
        justify-content: center;
    }
    .overtime-history-offcanvas__panel {
        width: 100%;
        border-radius: 0;
    }
    .overtime-history-offcanvas__header, .overtime-history-offcanvas__body, .overtime-history-offcanvas__footer {
        padding-right: 17px;
        padding-left: 17px;
    }
    .overtime-history-offcanvas__footer .attendance-button {
        flex: 1 1 0;
    }
    .overtime-dialog {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 14px;
    }
    .overtime-dialog--manual {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
    }
    .overtime-dialog__panel {
        max-height: calc(100vh - 20px);
    }
    .overtime-dialog--manual .overtime-dialog__panel {
        max-height: none;
    }
    .overtime-dialog__panel > header, .overtime-dialog__body, .overtime-dialog__panel > footer {
        padding-right: 15px;
        padding-left: 15px;
    }
    .overtime-dialog__panel > footer .attendance-button {
        flex: 1;
        justify-content: center;
    }
    .overtime-segment-row {
        grid-template-columns: minmax(0, 1fr) 38px;
    }
    .overtime-segment-row__number {
        grid-column: 1;
        grid-row: auto;
    }
    .overtime-segment-row label {
        grid-column: 1 / -1;
    }
    .overtime-segment-row > button {
        grid-column: 2;
        grid-row: 1;
    }
    .overtime-member-header__identity {
        align-items: flex-start;
    }
    .access-denied-page {
        min-height: calc(100vh - 110px);
        padding: 18px 0;
    }
    .access-denied-card {
        padding: 26px 20px;
        border-radius: 16px;
    }
    .access-denied-card h1 {
        font-size: 22px;
    }
    .access-denied-card__actions {
        width: 100%;
        flex-direction: column;
    }
    .access-denied-card__actions .attendance-button {
        width: 100%;
    }
    .attendance-page__header, .attendance-panel__header {
        align-items: stretch;
        flex-direction: column;
    }
    .attendance-today-card {
        padding: 16px;
    }
    .attendance-today-card__body {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-top: 16px;
    }
    .attendance-today-card__date {
        padding-bottom: 12px;
        border-bottom: 1px solid var(--color-border);
    }
    .attendance-today-card__times {
        grid-template-columns: repeat(3, minmax(105px, 1fr));
        gap: 0;
        overflow-x: auto;
    }
    .attendance-today-card__times > div {
        min-width: 105px;
        padding: 0 12px;
        border-bottom: 0;
        border-left: 1px solid var(--color-border);
    }
    .attendance-today-card__times > div:first-child {
        padding-left: 0;
        border-left: 0;
    }
    .attendance-today-card:has(> .attendance-today-card__side) {
        margin-bottom: 260px;
    }
    .attendance-today-card > .attendance-today-card__side {
        height: 244px;
        align-items: stretch;
        flex-direction: column;
    }
    .attendance-today-card__side > .attendance-overall {
        align-self: flex-start;
    }
    .attendance-today-card__side .attendance-today-home-qr {
        width: 100%;
    }
    .attendance-home-qr-panel {
        grid-template-columns: minmax(0, 1fr) 116px;
        gap: 12px;
        padding: 16px;
        border-radius: 14px;
    }
    .attendance-home-qr-panel__content {
        gap: 9px;
    }
    .attendance-home-qr-panel__heading {
        align-items: flex-start;
    }
    .attendance-home-qr-panel__heading strong {
        font-size: 14px;
    }
    .attendance-panel, .attendance-scan-card, .attendance-qr-sheet {
        padding: 17px;
        border-radius: 14px;
    }
    .attendance-live-time strong {
        font-size: 32px;
    }
    .attendance-action-summary {
        flex-wrap: wrap;
    }
    .attendance-location-form, .attendance-filter-form, .attendance-summary-grid {
        grid-template-columns: 1fr;
    }
    .attendance-location-form__actions, .attendance-filter-form__actions {
        align-items: stretch;
        flex-direction: column;
    }
    .attendance-location-form__actions .attendance-button, .attendance-filter-form__actions .attendance-button {
        width: 100%;
    }
    .attendance-table:not(.attendance-table--keep-grid) thead {
        display: none;
    }
    .attendance-table:not(.attendance-table--keep-grid), .attendance-table:not(.attendance-table--keep-grid) tbody, .attendance-table:not(.attendance-table--keep-grid) tr, .attendance-table:not(.attendance-table--keep-grid) td {
        display: block;
        width: 100%;
    }
    .attendance-table:not(.attendance-table--keep-grid) tr {
        padding: 10px 0;
        border-bottom: 1px solid var(--color-border);
    }
    .attendance-table:not(.attendance-table--keep-grid) td {
        display: grid;
        grid-template-columns: 105px 1fr;
        padding: 7px 4px;
        border: 0;
        text-align: right;
    }
    .attendance-table:not(.attendance-table--keep-grid) td::before {
        content: attr(data-label);
        color: var(--color-text-muted);
        font-size: 12px;
        font-weight: 700;
        text-align: left;
    }
    .attendance-table:not(.attendance-table--keep-grid) .attendance-table__empty {
        display: block !important;
        text-align: center !important;
    }
    .attendance-location-edit-form {
        position: fixed;
        inset: auto 14px 14px;
        width: auto;
    }
    .attendance-qr-sheet__meta {
        align-items: center;
        flex-direction: column;
        gap: 6px;
    }
    .notification-detail-map {
        align-items: stretch;
        flex-direction: column;
        margin: 0 18px 20px;
        padding: 16px;
    }
    .notification-detail-map__button {
        width: 100%;
    }
    .notification-detail-card__header {
        gap: 13px;
        padding: 20px;
    }
    .notification-detail-card__icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        font-size: 17px;
    }
    .notification-detail-card__actor {
        margin: 18px 18px 0;
    }
    .notification-detail-card__content {
        padding: 20px 18px 22px;
    }
    .notification-detail-list {
        grid-template-columns: 1fr;
    }
    .notification-detail-card__footer {
        align-items: stretch;
        padding: 16px 18px;
        flex-direction: column-reverse;
    }
    .attendance-record-actions {
        position: static;
    }
    .attendance-record-actions__menu {
        inset: auto 10px 10px;
        transform: none;
        width: auto;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }
    .attendance-record-edit-form {
        grid-template-columns: 1fr;
    }
    .attendance-record-edit-form__wide {
        grid-column: auto;
    }
    .attendance-record-actions__danger {
        align-items: stretch;
        flex-direction: column;
    }
    .attendance-table:not(.attendance-table--keep-grid) .attendance-table__date, .attendance-table:not(.attendance-table--keep-grid) .attendance-table__employee, .attendance-table:not(.attendance-table--keep-grid) .attendance-table__location, .attendance-table:not(.attendance-table--keep-grid) .attendance-table__time, .attendance-table:not(.attendance-table--keep-grid) .attendance-table__gps {
        width: 100%;
        min-width: 0;
        max-width: none;
    }
    .attendance-table:not(.attendance-table--keep-grid) .attendance-table__time-main {
        justify-content: flex-end;
    }
    .main-content .attendance-table:not(.attendance-table--keep-grid) td {
        white-space: normal;
    }
    .attendance-report-filter-box {
        padding: 14px;
        border-radius: 14px;
    }
    .attendance-report-filter-box__header {
        gap: 12px;
        padding-bottom: 0;
        border-bottom: 0;
    }
    .attendance-report-filter-box .attendance-report-actions {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: stretch;
        gap: 8px;
    }
    .attendance-report-filter-box .attendance-report-actions > * {
        grid-column: span 2;
        min-width: 0;
    }
    .attendance-report-filter-box .attendance-report-filter-trigger {
        display: flex;
        grid-column: span 1;
        width: 100%;
        margin-left: 0;
        order: initial;
    }
    .attendance-report-filter-box .attendance-report-filter-trigger .app-filter-trigger {
        width: 100%;
        min-height: 46px;
        min-width: 0;
        padding: 0;
        border-color: var(--color-primary-border-strong);
        color: var(--color-primary);
        background: #fff;
    }
    .attendance-report-filter-box .attendance-report-filter-trigger .app-filter-trigger:hover, .attendance-report-filter-box .attendance-report-filter-trigger .app-filter-trigger:focus-visible {
        border-color: var(--color-primary);
        background: var(--color-primary-subtle);
    }
    .attendance-report-filter-box .attendance-report-filter-trigger .app-filter-trigger > span {
        display: none;
    }
    .attendance-history-filter-box .attendance-report-filter-box__header {
        align-items: center;
        flex-direction: row;
    }
    .attendance-history-filter-box .attendance-report-filter-box__intro {
        flex: 1 1 auto;
    }
    .attendance-history-filter-box .attendance-history-filter-trigger {
        display: flex;
        width: 46px;
        flex: 0 0 46px;
        margin-left: auto;
    }
    .attendance-history-filter-box .attendance-history-filter-trigger .app-filter-trigger {
        width: 46px;
        height: 46px;
        min-width: 46px;
        min-height: 46px;
        padding: 0;
        border-color: var(--color-primary-border-strong);
        color: var(--color-primary);
        background: #fff;
    }
    .attendance-history-filter-box .attendance-history-filter-trigger .app-filter-trigger:hover, .attendance-history-filter-box .attendance-history-filter-trigger .app-filter-trigger:focus-visible {
        border-color: var(--color-primary);
        background: var(--color-primary-subtle);
    }
    .attendance-history-filter-box .attendance-history-filter-trigger .app-filter-trigger > span {
        display: none;
    }
    .attendance-report-filter-box .attendance-report-actions > .attendance-button, .attendance-report-filter-box .attendance-report-actions > .maintenance-toolbar-button {
        flex: 1 1 auto;
    }
    .attendance-report-filter-box .attendance-report-actions > .attendance-button--export {
        grid-column: span 3;
        min-height: 46px;
    }
    .attendance-report-filter-box .attendance-filter-form__actions {
        flex-direction: column-reverse;
    }
    .attendance-report-filter-box .attendance-filter-form__actions .attendance-button {
        width: 100%;
    }
    .attendance-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin: 14px 0 18px;
    }
    .attendance-summary-grid article {
        min-height: 116px;
        align-content: center;
        gap: 8px;
        padding: 18px 20px;
        border-radius: 14px;
    }
    .attendance-summary-grid article:first-child {
        grid-column: 1 / -1;
        min-height: 126px;
    }
    .attendance-summary-grid article span {
        font-size: 13px;
    }
    .attendance-summary-grid article strong {
        font-size: 28px;
        line-height: 1;
    }
    .attendance-record-edit-context {
        align-items: stretch;
        flex-direction: column;
    }
    .attendance-record-edit-context__qr > span {
        min-width: 0;
        flex: 1 1 0;
    }
    .calendar-events-header {
        padding: 0;
    }
    .calendar-events-header__actions {
        display: grid;
        grid-template-columns: 1fr 42px 42px 42px;
    }
    .calendar-events-header__actions .maintenance-toolbar-button {
        width: 100%;
        min-width: 0;
        justify-content: center;
        padding: 0 11px;
        font-size: 11px;
    }
    .calendar-events-content {
        padding: 0 0 14px;
    }
    .calendar-events-filter {
        grid-template-columns: 1fr;
        padding: 13px;
    }
    .calendar-events-filter__search, .calendar-events-filter__actions {
        grid-column: auto;
    }
    .calendar-events-filter__actions {
        width: 100%;
    }
    .calendar-events-table-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
    .calendar-events-table {
        min-width: 760px;
    }
    .calendar-events-table th:nth-child(4), .calendar-events-table td:nth-child(4), .calendar-events-table th:nth-child(5), .calendar-events-table td:nth-child(5) {
        display: none;
    }
    .calendar-events-pagination .pagination-container {
        align-items: stretch;
        flex-direction: column;
    }
    body.calendar-page .main-content {
        padding: 12px;
    }
    .event-calendar-header {
        padding: 0;
    }
    .event-calendar-heading p {
        display: none;
    }
    .event-calendar-heading__icon {
        width: 38px;
        height: 38px;
    }
    .event-calendar-add {
        width: 42px;
        padding: 0;
    }
    .event-calendar-header-actions {
        gap: 7px;
    }
    .event-calendar-trash-link {
        width: 42px;
        padding: 0;
    }
    .event-calendar-navigation {
        flex-wrap: wrap;
    }
    .event-calendar-date-jump {
        order: -1;
        width: 100%;
        margin: 0 0 4px;
    }
    .event-calendar-period-trigger {
        width: 100%;
        justify-content: space-between;
        padding-right: 12px;
        padding-left: 12px;
    }
    .event-calendar-period {
        width: auto;
        min-width: 0;
    }
    .event-calendar-date-jump__popover {
        width: min(370px, calc(100vw - 32px));
    }
    .event-calendar-date-jump__fields {
        grid-template-columns: 64px minmax(0, 1fr) 98px;
        gap: 7px;
    }
    .event-calendar-search {
        flex-basis: 100%;
        min-width: 100%;
    }
    .event-calendar-scope-wrap {
        flex: 1 1 170px;
        width: auto;
    }
    .event-calendar-view-switch button {
        min-width: 46px;
    }
    .event-calendar-canvas {
        padding-right: 8px;
        padding-left: 8px;
    }
    .event-calendar-search-results__header {
        align-items: flex-start;
        padding: 16px;
    }
    .event-calendar-search-results__header p {
        display: none;
    }
    .event-calendar-search-result {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 14px 38px 14px 18px;
    }
    .event-calendar-search-result__arrow {
        position: absolute;
        top: 50%;
        right: 16px;
        transform: translateY(-50%);
    }
    .event-calendar-month {
        border-radius: 10px;
    }
    .event-calendar-day-cell {
        min-height: 80px;
        gap: 2px;
        padding: 3px;
    }
    .event-calendar-weekday {
        padding: 8px 2px;
    }
    .event-calendar-day-number {
        width: 23px;
        height: 23px;
        font-size: 10.5px;
    }
    .event-calendar-chip {
        height: 8px;
        padding: 0;
        border-radius: 3px;
        font-size: 0;
    }
    .event-calendar-chip::before {
        width: 100%;
    }
    .event-calendar-more {
        padding-left: 2px;
        font-size: 8px;
    }
    .event-calendar-year {
        grid-template-columns: 1fr;
    }
    .event-calendar-agenda {
        grid-template-columns: 1fr;
        grid-auto-rows: max-content;
        align-content: start;
        gap: 10px;
        min-height: 0;
        padding: 14px;
    }
    .event-calendar-agenda__summary {
        padding: 12px 15px;
    }
    .event-calendar-agenda-event {
        grid-template-columns: 88px minmax(0, 1fr);
    }
    .event-calendar-agenda-event__time {
        padding-right: 14px;
        font-size: 9px;
    }
    .event-calendar-agenda-event__card {
        margin-left: 12px;
        padding: 12px;
    }
    .event-calendar-modal {
        align-items: flex-end;
        padding: 0;
    }
    .event-calendar-modal__dialog {
        max-height: 92dvh;
    }
    #calendar-form-modal, #calendar-list-form-modal {
        align-items: stretch;
    }
    #calendar-form-modal .event-calendar-modal__dialog--form, #calendar-list-form-modal .event-calendar-modal__dialog--form {
        width: min(100%, 560px);
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }
    #calendar-detail-modal .event-calendar-modal__dialog--detail {
        width: min(100%, 560px);
    }
    .event-calendar-modal__header, .event-calendar-modal__body, .event-calendar-modal__footer {
        padding-right: 16px;
        padding-left: 16px;
    }
    .event-calendar-form-grid, .event-calendar-participant-list, .event-calendar-detail-participants {
        grid-template-columns: 1fr;
    }
    .event-calendar-modal__footer {
        flex-wrap: wrap;
    }
    .event-calendar-modal__footer .event-calendar-draft-actions {
        width: 100%;
        justify-content: space-between;
        margin: 0;
    }
    .event-calendar-modal__footer .event-calendar-form-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .event-calendar-button--danger {
        width: 40px;
        padding: 0;
        font-size: 0;
    }
    .event-calendar-button--danger i {
        font-size: 13px;
    }
    .member-profile-offcanvas__header, .member-profile-offcanvas__content, .member-profile-offcanvas__footer {
        padding-right: 16px;
        padding-left: 16px;
    }
    .member-profile-offcanvas__header {
        padding-top: 17px;
        padding-bottom: 16px;
    }
    .member-profile-offcanvas__content {
        padding-top: 18px;
        padding-bottom: 18px;
    }
    .member-profile-panel__hero {
        align-items: flex-start;
        padding: 16px;
    }
    .member-profile-panel__avatar {
        flex-basis: 68px;
        width: 68px;
        height: 68px;
        border-radius: 17px;
    }
    .member-profile-panel__name {
        font-size: 18px;
    }
    .member-profile-panel__details {
        grid-template-columns: minmax(0, 1fr);
    }
    .member-profile-offcanvas__footer .btn {
        flex: 1;
    }
    /* Calendar mobile layout: keep page headers compact and event rows readable. */
    .event-calendar-header.page-header {
        display: grid !important;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 12px;
    }
    .event-calendar-header.page-header > .event-calendar-heading {
        min-width: 0;
    }
    .event-calendar-header.page-header > .event-calendar-header-actions {
        display: flex;
        width: auto;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end;
        gap: 7px !important;
    }
    .event-calendar-toolbar {
        gap: 12px;
        padding: 14px;
    }
    .event-calendar-navigation {
        display: grid;
        width: 100%;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 8px;
    }
    .event-calendar-date-jump {
        grid-column: 1 / -1;
        margin-bottom: 2px;
    }
    .event-calendar-icon-button {
        width: 44px;
        min-height: 44px;
    }
    .event-calendar-today {
        width: 100%;
        min-height: 44px;
    }
    .event-calendar-tools {
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }
    .event-calendar-search {
        width: 100%;
        min-width: 0;
        max-width: none;
        grid-column: 1 / -1;
    }
    .event-calendar-scope-wrap {
        width: 100%;
        min-width: 0;
    }
    .calendar-events-table-wrap {
        width: calc(100% - 20px);
        margin: 0 10px 10px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-gutter: stable;
        -webkit-overflow-scrolling: touch;
    }
    .calendar-events-table {
        display: table;
        width: 100%;
        min-width: 1080px;
        table-layout: fixed;
    }
    .calendar-events-table thead {
        display: table-header-group;
    }
    .calendar-events-table tbody {
        display: table-row-group;
    }
    .calendar-events-table tbody tr, .calendar-events-table tbody tr[data-calendar-event-row] {
        display: table-row;
    }
    .calendar-events-table :is(th, td), .calendar-events-table tbody tr[data-calendar-event-row] > td {
        display: table-cell !important;
        width: auto;
        min-width: 0;
        padding: 11px 12px;
        border-bottom: 1px solid #edf0f4;
        background: #fff;
        white-space: nowrap;
    }
    .calendar-events-table th {
        background: #fbfcfd;
    }
    .calendar-event-list-date strong, .calendar-event-list-title__button, .calendar-event-list-date span, .calendar-event-list-title > span {
        white-space: nowrap;
    }
    .calendar-event-list-actions {
        justify-content: flex-end;
    }
    .calendar-events-table-summary {
        padding: 13px 14px;
    }
    .calendar-events-pagination .pagination-container {
        gap: 12px;
    }
    .app-filter-offcanvas .event-calendar-add span, .app-filter-offcanvas .event-calendar-trash-link span, .app-filter-offcanvas .maintenance-toolbar-button span:not(.maintenance-selection-count) {
        display: inline !important;
    }
    .app-filter-offcanvas .calendar-events-header__actions > :is(a, button), .app-filter-offcanvas__actions > :is(.event-calendar-add, .event-calendar-trash-link) {
        width: 100%;
        min-height: 42px;
        padding: 0 12px;
    }
    .app-filter-offcanvas .calendar-events-filter {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        align-items: end;
        gap: 10px !important;
    }
    .app-filter-offcanvas .calendar-events-filter__search {
        grid-column: 1 / -1;
    }
    .app-filter-offcanvas .calendar-events-filter__field, .app-filter-offcanvas .calendar-events-filter__actions {
        grid-column: auto;
        width: 100%;
        min-width: 0;
    }
    .app-filter-offcanvas .calendar-events-filter__actions {
        align-items: stretch;
    }
    .app-filter-offcanvas .calendar-events-filter__reset {
        width: 100%;
    }
}
@media (max-width: 575px) {
    body .swal2-popup.calendar-delete-scope-dialog {
        width: calc(100% - 24px) !important;
        padding: 18px 14px 16px !important;
        border-radius: 18px !important;
    }
    body .calendar-delete-scope-dialog .swal2-icon.swal2-warning {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 10px !important;
    }
    body .calendar-delete-scope-dialog .swal2-title {
        font-size: 18px !important;
    }
    body .calendar-delete-scope-dialog .swal2-radio.calendar-delete-scope-options {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
    }
    body .calendar-delete-scope-dialog .calendar-delete-scope-options label {
        min-height: 60px;
        padding: 11px 12px;
    }
    body .calendar-delete-scope-dialog .swal2-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
    }
    body .calendar-delete-scope-dialog .swal2-actions .swal2-styled {
        min-width: 0;
        margin: 0 !important;
        padding-right: 10px !important;
        padding-left: 10px !important;
    }
}
@media (max-width: 480px) {
    .app-mobile-filter-action-row {
        gap: 6px;
    }
    .app-mobile-filter-action-row > :not([data-mobile-filter-anchor]) {
        overflow: hidden;
        padding-right: 7px !important;
        padding-left: 7px !important;
        font-size: 11px;
        white-space: nowrap;
    }
    .app-mobile-filter-action-row > :not([data-mobile-filter-anchor]) > span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    /* Content Writer Portal */
    .writer-stats,
    .writer-filters {
        grid-template-columns: 1fr;
    }

    .writer-field--search {
        grid-column: auto;
    }

    .writer-chart-card {
        padding: 16px;
    }

    .writer-workspace__header,
    .writer-task-card__topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .writer-task-progress {
        align-items: flex-start;
        flex-direction: column;
    }

    .writer-task-progress > span:not(:last-child)::after {
        display: none;
    }

    .writer-task-card__side {
        grid-template-columns: 1fr;
    }

    .writer-task-card__open {
        justify-self: start;
    }

    .writer-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .writer-button {
        width: 100%;
    }

    .writer-detail-column > .writer-panel,
    .writer-comments {
        padding: 17px;
    }

    .thai-date-picker {
        padding: 13px;
        border-radius: 15px;
    }
    .thai-date-picker__header {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 5px;
    }
    .thai-date-picker__nav {
        width: 36px;
        height: 36px;
    }
    .thai-date-picker :is(select) {
        height: 38px;
        max-width: 132px;
        padding-left: 7px;
        font-size: 12px;
    }
    .thai-date-picker__select[data-picker-select="month"] {
        width: 116px;
    }
    .thai-date-picker__select[data-picker-select="year"] {
        width: 78px;
    }
    .thai-date-picker__select-trigger {
        height: 38px;
        min-height: 38px;
        padding: 0;
        font-size: 12px;
    }
    .thai-date-picker__select-trigger > input {
        padding-left: 8px;
    }
    .thai-date-picker__select-menu {
        width: 176px;
    }
    .thai-date-picker__time .thai-date-picker__select {
        width: 70px;
    }
    .thai-date-picker__time .thai-date-picker__select-menu {
        width: 136px;
    }
}
@media (hover: hover) and (pointer: fine) {
    #lightboxImage:not(.is-zoomed) {
        cursor: zoom-in;
    }
}
@media (prefers-reduced-motion: reduce) {
    .attendance-location-loading__visual::after,
    .attendance-location-loading__icon {
        animation: none;
    }
    .qr-scanner-camera__frame > i {
        animation: none;
    }
    .overtime-dialog--manual[open], .overtime-history-offcanvas__backdrop, .overtime-history-offcanvas__panel, [data-overtime-tracker-region] {
        animation: none;
        transition: none;
    }
    .thai-date-picker.is-open {
        animation: none;
    }
    .hub-dashboard-event-widget.is-sliding {
        animation: none;
    }
}
