@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700;800;900&display=swap");

:root {
  color-scheme: light;
  --navy: #102a56;
  --blue: #155eef;
  --blue-soft: #eaf1ff;
  --ink: #172b4d;
  --muted: #64748b;
  --line: #dbe5f2;
  --canvas: #f4f7fb;
  --card: #ffffff;
  --green: #067647;
  --green-bg: #ecfdf3;
  --amber: #a15c07;
  --amber-bg: #fff8e7;
  --red: #b42318;
  --red-bg: #fff1f1;
  font-family: "Noto Sans Thai", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.boot-screen, .auth-page { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 10px; }
.spinner { width: 26px; height: 26px; border: 3px solid #cbd8ec; border-top-color: var(--blue); border-radius: 50%; margin: auto; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-page { padding: 24px; background: radial-gradient(circle at 15% 10%, #e6f0ff, transparent 42%), #f7faff; }
.auth-card { width: min(100%, 420px); text-align: left; padding: 34px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 20px 55px rgba(29, 60, 118, .12); }
.edit-admin-dialog { width: min(calc(100% - 32px), 470px); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 18px 52px rgba(13, 38, 76, .25); }
.edit-admin-dialog::backdrop { background: rgba(15, 35, 70, .42); }
.edit-admin-form { display: grid; gap: 14px; padding: 8px; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.brand-manager-dialog { width: min(calc(100% - 32px), 760px); max-height: calc(100vh - 32px); }
.brand-manager-form { max-height: calc(100vh - 72px); overflow: auto; }
.brand-dialog-selection { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 12px; border: 1px solid #e2eaf5; border-radius: 10px; background: #fbfdff; }
.brand-dialog-account-list { display: grid; gap: 8px; max-height: 300px; margin-top: 10px; overflow: auto; }
.brand-mark { width: 44px; height: 44px; display: grid; place-content: center; color: white; background: var(--blue); font-weight: 800; border-radius: 13px; }
.brand-warrior-mark { overflow: hidden; border: 1px solid rgba(255, 217, 115, .72); border-radius: 50%; background: #091832; box-shadow: 0 2px 7px rgba(0, 0, 0, .22), 0 0 0 2px rgba(118, 83, 18, .35); }
.brand-warrior-mark img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; transform: none; }
h1 { margin: 15px 0 4px; font-size: 25px; }
h2 { margin: 0; font-size: 20px; }
h3 { margin: 0; font-size: 16px; }
p { margin: 0; }
.subtle, .hint { color: var(--muted); font-size: 14px; line-height: 1.55; }
.auth-card form, .form-grid { display: grid; gap: 14px; margin-top: 24px; }
label { display: grid; gap: 6px; color: #344764; font-size: 14px; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid #c9d7e9; color: var(--ink); background: white; border-radius: 9px; padding: 10px 12px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #dfeaff; }
textarea { min-height: 88px; resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; border: 1px solid transparent; border-radius: 9px; padding: 8px 13px; font-weight: 700; transition: .15s ease; }
.btn:hover { filter: brightness(.97); }
.btn-primary { color: white; background: var(--blue); }
.btn-secondary { color: #26436d; background: white; border-color: #bcd0e9; }
.btn-danger { color: var(--red); background: white; border-color: #f6b9b4; }
.btn-small { min-height: 32px; padding: 5px 9px; font-size: 13px; }
.text-button { padding: 0; color: var(--blue); border: 0; background: none; font-weight: 700; }
.error { color: var(--red); background: var(--red-bg); border-radius: 8px; padding: 10px; font-size: 14px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 242px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 22px 14px; overflow-y: auto; color: #dce8fb; background: var(--navy); }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; color: white; font-size: 18px; font-weight: 800; line-height: 1.2; }
.side-brand .brand-warrior-mark { width: 76px; height: 76px; font-size: 12px; border-radius: 50%; }
.portal-label { padding: 0 10px; color: #a8bbdc; font-size: 12px; }
.nav { display: grid; gap: 5px; }
.nav button { width: 100%; padding: 10px 12px; color: #cfddf4; text-align: left; border: 0; border-radius: 8px; background: transparent; }
.nav button.active, .nav button:hover { color: white; background: #214372; }
.nav button.inbox-subtab { padding-left: 25px; color: #b8cae8; font-size: 13px; }
.sidebar-inbox-tags { display: grid; gap: 2px; margin: -3px 0 2px; padding-left: 27px; }
.nav button.inbox-tag-item { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 6px 9px; color: #b8cae8; font-size: 12px; }
.nav button.inbox-tag-item > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav button.inbox-tag-item.active, .nav button.inbox-tag-item:hover { color: white; background: #214372; }
.sidebar-tag-unread { min-width: 18px; padding: 1px 5px; color: var(--navy); text-align: center; border-radius: 999px; background: #fff; font-size: 10px; font-weight: 800; line-height: 1.35; }
.nav button.has-unread { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nav-unread-count { min-width: 20px; padding: 1px 6px; color: var(--navy); text-align: center; background: #fff; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1.45; }
.sidebar-menu-hint { margin: 0; padding: 4px 7px; color: #a8bbdc; font-size: 11px; line-height: 1.45; }
.admin-sidebar-brands { display: grid; gap: 6px; max-height: 360px; margin: -6px 0 0; padding: 10px 8px; overflow: auto; border-top: 1px solid #2b4c7a; border-bottom: 1px solid #2b4c7a; }
.admin-sidebar-title { margin: 0; padding: 0 2px; color: #fff; font-size: 12px; font-weight: 800; }
.sidebar-brand-list { display: grid; gap: 4px; }
.sidebar-brand-item { display: grid; gap: 2px; min-width: 0; }
.sidebar-brand-label { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 7px; color: #fff; border-radius: 7px; font-size: 12px; }
.sidebar-brand-label strong, .sidebar-line-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-neon-dot { width: 8px; height: 8px; flex: 0 0 auto; border: 1px solid rgba(225, 255, 227, .92); border-radius: 50%; background: #76ff87; box-shadow: 0 0 4px #b4ffbd, 0 0 10px rgba(101, 255, 121, .96), 0 0 17px rgba(101, 255, 121, .54); animation: firefly-glow 1.8s ease-in-out infinite alternate; }
@keyframes firefly-glow { from { opacity: .62; box-shadow: 0 0 3px #b4ffbd, 0 0 7px rgba(101, 255, 121, .7), 0 0 12px rgba(101, 255, 121, .32); } to { opacity: 1; box-shadow: 0 0 5px #d7ffda, 0 0 13px rgba(101, 255, 121, 1), 0 0 23px rgba(101, 255, 121, .72); } }
.sidebar-brand-accounts { display: grid; gap: 2px; padding-left: 18px; }
.sidebar-brand-account { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 3px 2px; color: #cddcf2; font-size: 12px; }
.sidebar-brand-empty { margin-left: 18px; }
.sidebar-line-name { min-width: 0; flex: 1 1 auto; }
.sidebar-line-unread { min-width: 18px; padding: 1px 5px; color: var(--navy); text-align: center; border-radius: 999px; background: #fff; font-size: 10px; font-weight: 800; line-height: 1.35; }
.side-user { margin-top: auto; display: grid; gap: 3px; padding: 12px 10px; border-top: 1px solid #2b4c7a; }
.side-user strong { color: white; }
.side-user span { color: #a8bbdc; font-size: 12px; }
.main-content { min-width: 0; padding: 30px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.page-head p { margin-top: 5px; color: var(--muted); }
.page-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; }
.card { border: 1px solid var(--line); border-radius: 13px; background: var(--card); box-shadow: 0 2px 8px rgba(27, 66, 125, .03); }
.card-pad { padding: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat-card { padding: 20px; }
.stat-card .number { margin-top: 8px; font-size: 32px; font-weight: 800; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr); gap: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .9fr); gap: 18px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 9px; border-bottom: 1px solid #edf1f7; text-align: left; vertical-align: middle; }
.data-table th { color: #62718a; font-size: 12px; font-weight: 750; }
.data-table tr:last-child td { border-bottom: 0; }
.table-profile { display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 650; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 750; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { color: var(--green); background: var(--green-bg); }
.badge-blue { color: var(--blue); background: var(--blue-soft); }
.badge-amber { color: var(--amber); background: var(--amber-bg); }
.badge-gray { color: #52637a; background: #edf2f7; }
.badge-red { color: var(--red); background: var(--red-bg); }
.line-account-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.line-account-list.single-column { grid-template-columns: minmax(0, 1fr); }
.line-account-column { display: grid; align-content: start; gap: 16px; min-width: 0; }
.line-account-directory { display: grid; gap: 16px; }
.line-account-directory-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.line-account-directory-head h2 { margin: 0; color: #10366d; font-size: 20px; }
.line-account-directory-head span { color: #6c85a3; font-size: 12px; font-weight: 750; }
.line-account { min-height: 156px; padding: 17px; display: grid; align-content: start; gap: 12px; }.line-account-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.profile-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.profile-identity > div { min-width: 0; }
.profile-identity-compact { gap: 9px; overflow: hidden; }
.profile-identity-compact strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-customer-label { display: grid; min-width: 0; gap: 3px; }
.tag-chip-list { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tag-chip { display: inline-flex; max-width: 180px; align-items: center; overflow: hidden; padding: 4px 10px; color: #2257b4; text-overflow: ellipsis; white-space: nowrap; border: 1px solid #c8daf7; border-radius: 999px; background: #edf4ff; font-size: 13px; font-weight: 750; line-height: 1.4; }
.conversation-tag-chips .tag-chip { max-width: 135px; padding: 3px 8px; font-size: 11px; }
.chat-tag-chips { margin-top: 4px; }
.tag-management-list { display: grid; gap: 8px; }
.tag-management-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid #e2eaf5; border-radius: 9px; background: #fbfdff; }
.tag-management-info { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; flex: 1; }
.profile-avatar { position: relative; display: inline-grid; flex: 0 0 auto; width: 38px; height: 38px; overflow: hidden; place-items: center; color: white; background: linear-gradient(135deg, #3f7bf2, #1b4fbd); border: 1px solid rgba(21, 94, 239, .16); border-radius: 50%; font-size: 14px; font-weight: 800; line-height: 1; }
.profile-avatar-initial { display: grid; place-items: center; width: 100%; height: 100%; }
.profile-avatar-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; background: #eaf1ff; object-fit: cover; }
.profile-avatar-small { width: 31px; height: 31px; font-size: 12px; }
.profile-avatar-tiny { width: 19px; height: 19px; font-size: 9px; }
.profile-avatar-medium { width: 44px; height: 44px; font-size: 16px; }
.profile-avatar-chat { width: 46px; height: 46px; font-size: 17px; }
.line-account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.line-account-description { margin-top: 4px; }
.line-account-channel { margin: 0; color: #6280a3; font-size: 11px; }
.line-account-channel strong { color: #33547d; font-weight: 800; }
.line-account-pagination { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding-top: 3px; }
.line-account-pagination-summary { color: #6c85a3; font-size: 12px; font-weight: 700; white-space: nowrap; }
.line-account-pagination-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.line-account-page-button { min-width: 31px; height: 31px; padding: 0 9px; color: #255385; font: inherit; font-size: 12px; font-weight: 800; line-height: 1; border: 1px solid #c7dcf5; border-radius: 9px; background: linear-gradient(145deg, #ffffff, #edf5ff); box-shadow: 0 3px 8px rgba(43, 94, 151, .08); cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.line-account-page-button:hover:not(:disabled) { transform: translateY(-1px); border-color: #75adf2; background: #f7fbff; }
.line-account-page-button.is-current { color: #ffffff; border-color: #1976e8; background: linear-gradient(145deg, #2e94ff, #1268df); box-shadow: 0 5px 12px rgba(28, 116, 225, .27); }
.line-account-page-button:disabled { opacity: .42; cursor: default; }
.line-account-page-previous, .line-account-page-next { padding-inline: 11px; }
.line-account-pagination-ellipsis { min-width: 13px; color: #7892af; font-size: 15px; font-weight: 900; line-height: 1; text-align: center; }.webhook-url { overflow: auto; padding: 8px 10px; color: #29466f; background: #f2f6fb; border: 1px solid #dce6f3; border-radius: 7px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; white-space: nowrap; }
.inline-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.add-line-account-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.add-line-account-card h2 { margin: 0; }
.add-line-account-card .hint { margin: 5px 0 0; }
.line-account-settings-dialog { width: min(calc(100% - 32px), 720px); max-height: calc(100vh - 40px); padding: 0; overflow: auto; color: var(--ink); border-radius: 20px; }
.line-account-settings-dialog::backdrop { background: rgba(15, 35, 70, .46); backdrop-filter: blur(3px); }
.line-account-settings-form { display: grid; gap: 15px; padding: clamp(20px, 3vw, 29px); }
.line-account-settings-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.line-account-settings-head h2 { margin: 0; }
.line-account-settings-head .hint { margin: 5px 0 0; }
.dialog-close-button { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; color: #42658f; border: 1px solid #cadcf1; border-radius: 10px; background: #f5f9fe; font-size: 24px; line-height: 1; cursor: pointer; }
.line-account-settings-identity { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid #dce8f6; border-radius: 13px; background: rgba(255, 255, 255, .55); }
.line-account-settings-identity > div { display: grid; gap: 4px; }
.line-account-settings-identity strong { color: #123769; }
.line-account-webhook { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid #dce8f6; border-radius: 13px; background: #f8fbff; }
.line-account-webhook > div { display: grid; gap: 5px; min-width: 0; }
.line-account-webhook strong { color: #32557f; font-size: 12px; }
.line-account-webhook code { overflow: auto; color: #466585; font-family: ui-monospace, Consolas, monospace; font-size: 11px; white-space: nowrap; }
.line-account-settings-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.line-account-settings-actions .btn { min-height: 42px; justify-content: center; white-space: nowrap; }
.brand-picker { width: min(calc(100% - 32px), 480px); padding: 22px; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 18px 52px rgba(13, 38, 76, .25); }
.brand-picker::backdrop { background: rgba(15, 35, 70, .38); }
.brand-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.brand-picker-head h2 { margin: 0; }
.brand-picker-options { display: grid; gap: 8px; margin-top: 14px; }
.brand-choice { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; color: var(--ink); text-align: left; border: 1px solid #d7e2ef; border-radius: 9px; background: #fbfdff; cursor: pointer; }
.brand-choice:hover { border-color: var(--blue); background: #f2f7ff; }
.brand-choice span { width: 10px; height: 10px; border-radius: 50%; }
.brand-line-manager { display: grid; gap: 15px; margin-top: 18px; }
.brand-admin-manager { margin-top: 18px; }
.brand-assignment-form { max-width: 680px; }
.brand-account-form { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border: 1px solid #e2eaf5; border-radius: 10px; background: #fbfdff; }
.brand-account-form .hint { margin: 0; }
.brand-account-form label { flex: 1 1 300px; }
.brand-account-list { display: grid; gap: 8px; }
.brand-account-row { display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid #e2eaf5; border-radius: 10px; background: #fbfdff; }
.brand-account-name { display: grid; flex: 1 1 auto; min-width: 0; gap: 4px; }
.brand-account-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-account-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.connection-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid #e8eef7; padding-top: 13px; }
.connection-form .wide { grid-column: 1 / -1; }
.assignment-list { display: grid; gap: 7px; margin: 8px 0 12px; }
.check-row { display: flex; align-items: center; gap: 8px; padding: 7px; border: 1px solid #e4ebf5; border-radius: 7px; }
.check-row input { width: auto; }
.inbox { height: calc(100vh - 147px); min-height: 540px; display: grid; grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) minmax(235px, 275px); overflow: hidden; }
.conversation-pane { overflow: auto; border-right: 1px solid var(--line); }
.inbox-tools { display: grid; gap: 9px; padding: 14px; border-bottom: 1px solid var(--line); }
.inbox-list-title { display: flex; align-items: center; justify-content: space-between; color: #29466f; font-size: 13px; }
.inbox-list-title span { min-width: 20px; padding: 1px 6px; color: #4d6383; text-align: center; border-radius: 999px; background: #eaf1fb; font-size: 11px; font-weight: 750; }
.inbox-unread-status { margin: 0; color: var(--blue); font-size: 12px; font-weight: 750; }
.notification-permission { white-space: nowrap; }
.notification-bell { position: relative; display: inline-flex; align-items: center; gap: 5px; min-width: 0; color: #8a5700; border-color: #e5c06a; background: #fffaf0; box-shadow: 0 2px 5px rgba(150, 100, 0, .08); }
.notification-bell:hover { color: #704500; border-color: #cf9d2d; background: #fff4d8; }
.notification-bell-icon { display: inline-block; font-size: 16px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(130, 80, 0, .2)); }
.notification-bell-count { display: inline-grid; min-width: 19px; height: 19px; place-items: center; padding: 0 5px; color: white; border-radius: 999px; background: #dc2626; box-shadow: 0 0 0 2px #fffaf0, 0 0 8px rgba(220, 38, 38, .72); font-size: 11px; font-weight: 800; line-height: 1; }
.notification-bell.has-pending { animation: notification-alert-glow 1.35s ease-out infinite; }
.notification-bell.has-pending .notification-bell-icon { animation: notification-bell-ring 1.35s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes notification-alert-glow { 0% { box-shadow: 0 0 0 1px rgba(239, 68, 68, .92), 0 0 8px rgba(239, 68, 68, .72), 0 0 17px rgba(239, 68, 68, .34); } 70%, 100% { box-shadow: 0 0 0 1px rgba(239, 68, 68, 0), 0 0 3px rgba(239, 68, 68, .1), 0 0 8px rgba(239, 68, 68, 0); } }
@keyframes notification-bell-ring { 0%, 58%, 100% { transform: rotate(0); } 63% { transform: rotate(11deg); } 69% { transform: rotate(-11deg); } 75% { transform: rotate(7deg); } 81% { transform: rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) { .brand-neon-dot, .notification-bell.has-pending, .notification-bell.has-pending .notification-bell-icon { animation: none; } }
.conversation-row { width: 100%; padding: 13px 15px; color: var(--ink); text-align: left; border: 0; border-bottom: 1px solid #edf1f6; background: white; }
.conversation-row:hover, .conversation-row.active { background: #edf4ff; }
.conversation-row-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 9px; }
.conversation-row-content { display: grid; min-width: 0; gap: 4px; }
.conversation-row-content strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-row-content small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-row-footer { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; width: 100%; }
.conversation-row-footer .conversation-tag-chips { min-width: 0; overflow: hidden; flex: 1 1 auto; flex-wrap: nowrap; }
.conversation-row-latest { display: grid; justify-items: end; gap: 4px; flex: 0 0 auto; min-width: 0; color: var(--muted); font-size: 11px; }
.conversation-row-time { display: flex; align-items: center; justify-content: flex-end; gap: 7px; white-space: nowrap; }
.conversation-row-footer .conversation-last-responder { display: block; flex: 1 0 100%; min-width: 0; margin-left: 0; overflow-wrap: anywhere; color: #1e5eaf; text-align: left; white-space: normal; font-size: 11px; font-weight: 750; line-height: 1.35; }
.conversation-row-latest time { font-variant-numeric: tabular-nums; }
.line-account-caption { display: flex; align-items: center; gap: 6px; min-width: 0; }
.unread { min-width: 19px; padding: 1px 6px; color: white; text-align: center; background: var(--blue); border-radius: 99px; font-size: 11px; }
.chat-pane { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #f8fbff; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid var(--line); background: white; }
.chat-account-full { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; color: #365175; }
.chat-account-full > div { display: grid; min-width: 0; gap: 2px; }
.chat-account-full span { color: var(--muted); font-size: 12px; }
.chat-account-full strong { overflow-wrap: anywhere; font-size: 18px; line-height: 1.15; }
.customer-pane { min-width: 0; display: flex; flex-direction: column; overflow: auto; border-left: 1px solid var(--line); background: white; }
.customer-pane-empty { display: grid; place-items: center; }
.customer-profile { display: grid; gap: 18px; padding: 18px; border-bottom: 1px solid var(--line); }
.customer-profile-head { display: flex; align-items: center; gap: 11px; min-width: 0; }
.customer-profile-head > div { min-width: 0; }
.customer-profile-head h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.customer-name-edit { display: grid; width: 28px; height: 28px; margin-left: auto; flex: 0 0 auto; place-items: center; padding: 0; color: #06a94f; border: 0; border-radius: 50%; background: transparent; font-size: 21px; font-weight: 800; line-height: 1; }
.customer-name-edit:hover { color: #057c3b; background: #eafaf0; }
.customer-name-edit:focus-visible { outline: 3px solid #bdeecf; outline-offset: 2px; }
.customer-detail-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #314a70; font-size: 12px; }
.customer-detail-row > span { color: var(--muted); }
.customer-detail-row strong { max-width: 150px; overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.customer-line-detail { align-items: flex-start; }
.customer-line-detail .line-account-caption { justify-content: flex-end; }
.customer-line-detail strong { max-width: 155px; white-space: normal; text-align: right; }
.customer-tags { display: grid; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.customer-tags .section-title { margin: 0; }
.customer-tags h3 { font-size: 14px; }
.customer-tag-options { display: grid; gap: 7px; }
.customer-tag-option { display: flex; align-items: center; gap: 7px; padding: 7px; border: 1px solid #e2eaf5; border-radius: 8px; background: #fbfdff; cursor: pointer; }
.customer-tag-option:hover { border-color: #b6cdf1; background: #f4f8ff; }
.customer-tag-option input { width: auto; margin: 0; }
.customer-tag-option .tag-chip { max-width: 100%; }
.customer-notes { display: grid; gap: 10px; margin-top: auto; padding: 16px 18px; border-top: 1px solid var(--line); background: #fffdf4; }
.customer-notes .section-title { margin: 0; }
.customer-notes h3 { color: #6d5410; font-size: 14px; }
.customer-note-list { display: grid; gap: 9px; }
.customer-note { display: grid; gap: 9px; padding: 12px 12px 10px; color: #5e4912; border: 1px solid #e6cb63; border-radius: 10px; background-color: #fff4b8; background-image: radial-gradient(circle at 3px 25px, rgba(130, 98, 14, .4) 1px, transparent 1.25px); background-size: 6px 27px; box-shadow: 0 2px 6px rgba(126, 91, 9, .1); }
.customer-note-body { min-width: 0; overflow-wrap: anywhere; line-height: 27px; font-size: 13px; }
.customer-note-meta { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding-top: 3px; color: #776630; font-size: 11px; }
.customer-note-actions { display: inline-flex; flex: 0 0 auto; gap: 7px; }
.customer-note-actions .text-button { font-size: 11px; }
.customer-note-delete { color: var(--red); }
.customer-notes-empty { margin: 0; padding: 9px 0; text-align: center; }
.chat-message-area { position: relative; min-height: 0; }
.chat-messages { height: 100%; min-height: 0; display: grid; align-content: start; gap: 11px; overflow: auto; padding: 20px; scroll-behavior: smooth; }
.new-message-jump { position: absolute; right: 20px; bottom: 16px; z-index: 1; max-width: calc(100% - 40px); padding: 9px 13px; color: white; border: 0; border-radius: 999px; background: var(--blue); box-shadow: 0 8px 20px rgba(21, 94, 239, .28); font-weight: 700; font-size: 13px; }
.new-message-jump:hover { filter: brightness(.96); }
.bubble-row { display: flex; }
.bubble-row.outbound { justify-content: flex-end; }
.bubble-row.internal { justify-content: center; }
.bubble-stack { display: flex; flex-direction: column; max-width: min(80%, 580px); }
.bubble-row.inbound .bubble-stack { align-items: flex-start; }
.bubble-row.outbound .bubble-stack { align-items: flex-end; }
.bubble-row.internal .bubble-stack { align-items: center; }
.bubble { max-width: 100%; padding: 10px 13px; border-radius: 18px 18px 18px 5px; background: #f1f3f5; box-shadow: 0 1px 4px rgba(25, 58, 107, .08); line-height: 1.5; }
.bubble-row.outbound .bubble { color: #18365f; border: 1px solid #b7cce7; border-radius: 18px 18px 5px 18px; background: #cfdef3; }
.bubble-row.internal .bubble { max-width: min(90%, 560px); padding: 14px 16px 12px; color: #5e4912; border: 1px solid #e6cb63; background-color: #fff4b8; background-image: radial-gradient(circle at 3px 26px, rgba(130, 98, 14, .42) 1px, transparent 1.25px); background-size: 6px 28px; box-shadow: 0 3px 9px rgba(126, 91, 9, .12); font-size: 13px; }
.internal-note-heading { margin: -1px 0 9px; color: #80600c; font-size: 12px; font-weight: 800; letter-spacing: .01em; }
.bubble-meta { margin: 4px 4px 0; color: #71809a; font-size: 11px; line-height: 1.2; }
.bubble-row.inbound .bubble-meta { align-self: flex-end; }
.bubble-row.outbound .bubble-meta { align-self: flex-start; }
.bubble-row.internal .bubble-meta { align-self: center; }
.message-media-preview { display: block; max-width: 100%; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: zoom-in; }
.message-media-preview:focus-visible { outline: 3px solid #4c8bff; outline-offset: 3px; }
.message-sticker-preview { border-radius: 0; }
.message-image { display: block; width: min(100%, 440px); max-height: 420px; border-radius: 8px; object-fit: contain; background: #eef3fa; }
.message-sticker { display: block; width: min(100%, 180px); max-height: 180px; object-fit: contain; }
.line-sticker-placeholder { display: grid; min-width: 142px; gap: 3px; padding: 13px 14px; color: #41516a; border: 1px solid #d9e2ee; border-radius: 10px; background: #f4f7fb; }
.line-sticker-placeholder > span { font-size: 25px; line-height: 1; }
.line-sticker-placeholder strong { font-size: 13px; }
.line-sticker-placeholder small { color: var(--muted); font-size: 11px; }
.message-media-loading { min-width: 160px; padding: 18px; color: var(--muted); text-align: center; background: #eef3fa; border-radius: 8px; font-size: 13px; }
.media-preview-dialog { width: min(94vw, 1080px); max-width: none; max-height: 92vh; padding: 0; color: var(--ink); border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 20px 70px rgba(8, 28, 62, .4); }
.media-preview-dialog::backdrop { background: rgba(7, 22, 48, .68); }
.media-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.media-preview-body { display: grid; max-height: calc(92vh - 64px); place-items: center; padding: 12px; overflow: auto; background: #f4f7fb; }
.media-preview-body img { display: block; max-width: 100%; max-height: calc(92vh - 90px); object-fit: contain; }
.internal-note-dialog { width: min(calc(100% - 32px), 540px); padding: 0; color: var(--ink); border: 1px solid #e4c95f; border-radius: 13px; background: #fff8ce; box-shadow: 0 18px 55px rgba(91, 69, 4, .28); }
.internal-note-dialog::backdrop { background: rgba(7, 22, 48, .5); }
.internal-note-form { display: grid; gap: 14px; padding: 20px; }
.internal-note-form h2 { margin: 0; }
.internal-note-form textarea { min-height: 180px; resize: vertical; color: #53410c; border-color: #dfc35b; background-color: #fffced; background-image: radial-gradient(circle at 3px 27px, rgba(130, 98, 14, .36) 1px, transparent 1.25px); background-size: 6px 29px; line-height: 29px; }
.line-native-emoji { display: inline-block; width: 1.35em; height: 1.35em; margin: 0 .04em; vertical-align: -.26em; object-fit: contain; }
.composer { display: block; padding: 12px 14px 10px; border-top: 1px solid var(--line); background: white; }
.composer-input { position: relative; min-width: 0; }
.composer-actions { display: flex; align-items: center; gap: 11px; margin: 0 0 7px; }
.composer-tool { display: grid; width: 27px; height: 27px; place-items: center; padding: 0; color: #17345f; border: 0; border-radius: 50%; background: transparent; font-size: 21px; line-height: 1; }
.composer-tool:hover { color: var(--blue); background: #edf4ff; }
.composer-tool:disabled { cursor: wait; opacity: .55; }
.emoji-picker { position: absolute; z-index: 2; bottom: calc(100% + 7px); left: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; width: 242px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: 0 12px 28px rgba(22, 55, 100, .16); }
.emoji-picker button { width: 32px; height: 30px; padding: 0; border: 0; border-radius: 6px; background: transparent; font-size: 17px; }
.emoji-picker button:hover { background: #edf4ff; }
.composer textarea { min-height: 48px; max-height: 140px; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 0; }
.composer-hint { margin: 0 2px; color: var(--muted); font-size: 12px; }
.composer-send-group { display: inline-flex; flex: 0 0 auto; overflow: hidden; border: 1px solid #06a94f; border-radius: 7px; background: #06c755; box-shadow: 0 1px 2px rgba(2, 102, 47, .2); }
.composer-send, .composer-send-more { min-height: 31px; color: white; border: 0; background: #06c755; font-weight: 800; }
.composer-send { min-width: 54px; padding: 5px 12px; }
.composer-send-more { width: 30px; padding: 0; border-left: 1px solid rgba(255, 255, 255, .6); font-size: 18px; line-height: 1; }
.composer-send:hover, .composer-send-more:hover { background: #05ad4a; }
.composer-send:focus-visible, .composer-send-more:focus-visible { outline: 3px solid #b5f5cd; outline-offset: -3px; }
.empty { padding: 36px 20px; color: var(--muted); text-align: center; }
.toast-area { position: fixed; right: 20px; bottom: 20px; z-index: 10; display: grid; gap: 8px; max-width: min(390px, calc(100vw - 40px)); }
.toast { padding: 12px 15px; color: #17423a; border: 1px solid #aee6cf; border-radius: 10px; background: white; box-shadow: 0 12px 26px rgba(14, 63, 88, .16); }
.toast.error { color: var(--red); border-color: #f2aaa5; }
.hidden { display: none !important; }
.broadcast-card { overflow: hidden; }
.broadcast-form { display: grid; }
.broadcast-target { display: grid; grid-template-columns: minmax(270px, .95fr) minmax(0, 1.4fr); align-items: center; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #fbfdff, #f1f7ff); }
.broadcast-target label { max-width: 440px; }
.broadcast-target select:disabled { color: var(--ink); cursor: default; opacity: 1; }
.broadcast-target .hint { margin-top: 6px; font-size: 12px; }
.broadcast-account-chips { display: flex; flex-wrap: wrap; gap: 7px; align-content: center; }
.broadcast-account-choice { display: inline-flex; align-items: center; gap: 6px; max-width: 210px; padding: 5px 9px 5px 7px; color: #29466f; border: 1px solid #d9e5f3; border-radius: 999px; background: white; cursor: pointer; font-size: 12px; font-weight: 700; }
.broadcast-account-choice:has(input:checked) { color: #0d4bb5; border-color: #8db8fa; background: #edf5ff; }
.broadcast-account-choice:has(input:disabled) { cursor: default; }
.broadcast-account-choice input { width: auto; margin: 0; accent-color: var(--blue); }
.broadcast-account-choice > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.broadcast-layout { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(285px, .72fr); min-height: 490px; }
.broadcast-builder { display: grid; align-content: start; gap: 16px; padding: 20px; }
.broadcast-builder .section-title { margin: 0; }
.broadcast-type-tabs { display: flex; gap: 8px; }
.broadcast-type-tabs button { flex: 1; min-height: 43px; color: #315078; border: 1px solid #c9dbf1; border-radius: 9px; background: #f8fbff; font-weight: 800; }
.broadcast-type-tabs button.active { color: white; border-color: var(--blue); background: var(--blue); }
.broadcast-mode-panel { display: grid; gap: 12px; }
.broadcast-template-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.broadcast-template-row button { display: grid; gap: 3px; min-height: 59px; padding: 8px; color: #315078; border: 1px solid #dce6f3; border-radius: 9px; background: #fbfdff; font-weight: 750; }
.broadcast-template-row button:hover { color: var(--blue); border-color: #9ebdf0; background: #f0f6ff; }
.broadcast-builder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.broadcast-builder-grid .wide { grid-column: 1 / -1; }
.broadcast-builder-grid textarea { min-height: 88px; }
.broadcast-builder-actions { display: grid; grid-template-columns: auto minmax(180px, 1fr) auto; align-items: center; gap: 12px; padding-top: 2px; }
.broadcast-builder-actions .hint { font-size: 12px; }
.broadcast-builder-actions > div { display: flex; justify-content: flex-end; gap: 8px; }
.broadcast-send { color: white; border-color: #079449; background: #06b750; }
.broadcast-send:hover { background: #059d45; }
.broadcast-preview-pane { display: grid; align-content: start; gap: 15px; padding: 20px; border-left: 1px solid var(--line); background: #f8fbff; }
.broadcast-preview-pane h2 { font-size: 16px; }
.broadcast-phone { max-width: 310px; margin: auto; overflow: hidden; border: 8px solid #15233d; border-radius: 28px; background: #eef5ff; box-shadow: 0 14px 32px rgba(18, 46, 87, .18); }
.broadcast-phone-head { display: grid; gap: 2px; padding: 14px 15px; color: #1e3f6c; background: white; font-size: 11px; }
.broadcast-phone-head span { color: var(--muted); }
.broadcast-phone-head strong { font-size: 13px; }
.broadcast-standard-message { display: grid; justify-items: end; min-height: 255px; padding: 16px; background: #eaf1fb; }
.broadcast-standard-bubble { display: grid; gap: 10px; width: min(100%, 245px); padding: 12px; color: #1b355a; border-radius: 16px 16px 4px 16px; background: white; box-shadow: 0 2px 7px rgba(18, 46, 87, .14); font-size: 13px; line-height: 1.52; }
.broadcast-standard-bubble p { white-space: pre-wrap; }
.broadcast-standard-bubble img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; }
.broadcast-flex-card { margin: 14px; overflow: hidden; border-radius: 12px; background: white; box-shadow: 0 2px 8px rgba(18, 46, 87, .16); }
.broadcast-flex-card img, .broadcast-flex-image-placeholder { display: block; width: 100%; height: 157px; object-fit: cover; }
.broadcast-flex-image-placeholder { display: grid; place-items: center; color: #7890ad; background: linear-gradient(135deg, #e9f1fc, #d5e5fa); font-size: 12px; }
.broadcast-flex-copy { display: grid; gap: 8px; padding: 13px; color: #1f355a; }
.broadcast-flex-copy strong { font-size: 15px; line-height: 1.35; }
.broadcast-flex-copy p { color: #687c9c; font-size: 12px; line-height: 1.5; }
.broadcast-flex-copy span { display: block; padding: 8px; color: white; text-align: center; border-radius: 7px; background: var(--blue); font-size: 12px; font-weight: 800; }
.broadcast-preview-custom { margin: 0 14px 14px; color: #6d5410; text-align: center; font-size: 11px; }
.broadcast-history { margin-top: 18px; }
.broadcast-history-list { display: grid; gap: 9px; margin-top: 12px; }
.broadcast-history-item { display: grid; gap: 10px; padding: 12px; border: 1px solid #e0e9f4; border-radius: 10px; background: #fbfdff; }
.broadcast-history-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.broadcast-history-top > div { min-width: 0; }
.broadcast-history-top strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.broadcast-history-top .subtle { margin-top: 3px; font-size: 12px; }
.broadcast-history-mode { color: #155eef; font-weight: 800; }
.broadcast-history-deliveries { display: flex; flex-wrap: wrap; gap: 6px; }
.broadcast-delivery-chip { display: inline-flex; max-width: 220px; padding: 4px 7px; overflow: hidden; color: #495e7c; text-overflow: ellipsis; white-space: nowrap; border-radius: 999px; background: #eaf0f7; font-size: 11px; }
.broadcast-delivery-chip.sent { color: #067647; background: #eafaf0; }
.broadcast-delivery-chip.failed { color: var(--red); background: #fff0f0; }
.broadcast-delivery-chip.cancelled { color: #5f6f86; background: #eef2f7; }
.broadcast-json-dialog { width: min(calc(100% - 32px), 780px); padding: 0; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 18px 52px rgba(13, 38, 76, .25); }
.broadcast-json-dialog::backdrop { background: rgba(15, 35, 70, .45); }
.broadcast-json-form { display: grid; gap: 14px; padding: 20px; }
.broadcast-json-form textarea { min-height: min(48vh, 480px); color: #213c64; background: #f9fbff; font-family: ui-monospace, Consolas, monospace; font-size: 12px; line-height: 1.5; }

/* Head Admin broadcast workspace: follows the dense three-mode composer layout. */
.broadcast-reference-form { display: grid; gap: 14px; }
.broadcast-target-reference { overflow: hidden; border-color: #dce9fb; background: linear-gradient(105deg, #fff, #f6faff); box-shadow: 0 6px 18px rgba(24, 70, 130, .06); }
.broadcast-target-reference > div { padding: 12px 18px; }
.broadcast-target-title { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid #e4edf9; }
.broadcast-target-title > strong { min-width: 84px; color: #0d2e67; font-size: 18px; }
.broadcast-target-title label { flex: 1; max-width: 390px; margin: 0; }
.broadcast-target-title select { min-height: 43px; color: #0c377e; border-color: #c6daf7; background: #fff; font-weight: 800; }
.broadcast-target-total { display: flex; align-items: center; gap: 10px; color: #315078; font-weight: 700; }
.broadcast-target-total strong { margin-left: auto; color: #12a64c; font-size: 15px; }
.broadcast-target-total strong b { margin-right: 3px; font-size: 22px; }
.broadcast-ready-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #19c35a; box-shadow: 0 0 10px rgba(24, 195, 90, .72); }
.broadcast-target-picker { min-height: 36px; margin-left: auto; white-space: nowrap; }
.broadcast-target-total .broadcast-target-picker + strong { margin-left: 0; }
.broadcast-target-selection-detail { padding-top: 0 !important; color: #5f789a; font-size: 12px; font-weight: 700; }
.broadcast-target-account-inputs { display: none; }
.broadcast-account-tile-row { display: flex; gap: 8px; overflow-x: auto; padding-top: 0 !important; border-top: 1px solid #edf3fc; }
.broadcast-account-tile { display: flex; flex: 0 0 164px; align-items: center; gap: 9px; min-height: 58px; padding: 8px; color: #345178; border: 1px solid #d9e7f8; border-radius: 8px; background: #fff; cursor: pointer; }
.broadcast-account-tile:hover { border-color: #8db9fa; background: #f3f8ff; }
.broadcast-account-tile.selected { color: #0f3d85; border-color: #9bc2f7; background: #f6faff; box-shadow: inset 0 0 0 1px rgba(27, 108, 224, .03); }
.broadcast-account-tile:has(input:disabled) { cursor: default; }
.broadcast-account-tile input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.broadcast-account-tile > span { display: grid; min-width: 0; gap: 3px; }
.broadcast-account-tile strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.broadcast-account-tile small { color: #17a34a; font-size: 10px; font-weight: 700; }
.broadcast-target-picker-dialog { width: min(calc(100% - 32px), 700px); max-height: min(760px, calc(100vh - 40px)); padding: 0; overflow: auto; color: var(--ink); border: 1px solid #d2e0f3; border-radius: 18px; background: #f7fbff; box-shadow: 0 22px 58px rgba(10, 39, 83, .32); }
.broadcast-target-picker-dialog::backdrop { background: rgba(11, 34, 70, .48); backdrop-filter: blur(3px); }
.broadcast-target-picker-form { display: grid; gap: 14px; padding: 22px; }
.broadcast-picker-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.broadcast-picker-head h2 { margin: 0; color: #0b316c; font-size: 21px; }
.broadcast-picker-head p { margin: 5px 0 0; color: #6480a7; font-size: 13px; line-height: 1.45; }
.dialog-close-button { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; color: #0b4a91; border: 1px solid #bdd6f6; border-radius: 10px; background: #f6faff; font-size: 25px; line-height: 1; }
.broadcast-picker-body { display: grid; gap: 12px; max-height: min(52vh, 470px); overflow: auto; padding-right: 3px; }
.broadcast-picker-group { overflow: hidden; border: 1px solid #dce8f7; border-radius: 11px; background: #fff; }
.broadcast-picker-group-head { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-bottom: 1px solid #edf3fb; background: #f6faff; }
.broadcast-picker-group-head > span { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; }
.broadcast-picker-group-head strong { color: #173d78; font-size: 13px; }
.broadcast-picker-group-head small { margin-left: auto; color: #6f87a7; font-size: 11px; }
.broadcast-picker-account-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.broadcast-picker-account { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 47px; padding: 8px 10px; color: #1e477f; border-right: 1px solid #edf3fb; border-bottom: 1px solid #edf3fb; font-size: 12px; font-weight: 750; cursor: pointer; }
.broadcast-picker-account:nth-child(2n) { border-right: 0; }
.broadcast-picker-account:last-child:nth-child(odd) { border-bottom: 0; }
.broadcast-picker-account input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: #1971ed; }
.broadcast-picker-account span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.broadcast-picker-account small { margin-left: auto; color: #16934a; font-size: 10px; }
.broadcast-picker-account.is-readonly { cursor: default; }
.broadcast-picker-flat-list { display: grid; overflow: hidden; border: 1px solid #dce8f7; border-radius: 11px; background: #fff; }
.broadcast-picker-flat-account { display: grid; grid-template-columns: 28px auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 53px; padding: 8px 12px; color: #1e477f; border-bottom: 1px solid #edf3fb; font-size: 13px; font-weight: 750; cursor: pointer; }
.broadcast-picker-flat-account:last-child { border-bottom: 0; }
.broadcast-picker-flat-account > b { display: grid; width: 25px; height: 25px; place-items: center; color: #5c7fae; border-radius: 50%; background: #edf4fc; font-size: 11px; }
.broadcast-picker-flat-account input { width: 16px; height: 16px; margin: 0; accent-color: #1971ed; }
.broadcast-picker-flat-account > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.broadcast-picker-flat-account small { color: #16934a; font-size: 11px; white-space: nowrap; }
.broadcast-picker-flat-account.unavailable { color: #8597ad; background: #fafcff; cursor: not-allowed; }
.broadcast-picker-flat-account.unavailable > b { color: #94a3b8; background: #f1f5f9; }
.broadcast-picker-flat-account.unavailable small { color: #a87316; }
.broadcast-picker-select-all { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 10px 12px; color: #15417f; border: 1px solid #cce0fa; border-radius: 10px; background: #f3f8ff; font-size: 13px; font-weight: 800; cursor: pointer; }
.broadcast-picker-select-all input { width: 17px; height: 17px; margin: 0; accent-color: #1971ed; }
.broadcast-picker-select-all small { margin-left: auto; color: #2472cb; font-size: 11px; }
.broadcast-picker-page-caption { margin: 0; color: #7187a6; font-size: 11px; font-weight: 700; }
.broadcast-picker-pagination { display: flex; align-items: center; justify-content: center; gap: 5px; padding-top: 2px; }
.broadcast-picker-pagination button { display: grid; min-width: 32px; height: 32px; place-items: center; padding: 0 8px; color: #315b91; border: 1px solid #c7d9f2; border-radius: 8px; background: #fff; font-size: 13px; font-weight: 800; }
.broadcast-picker-pagination button:hover:not(:disabled) { border-color: #7aaff2; background: #f1f7ff; }
.broadcast-picker-pagination button.is-current { color: #fff; border-color: #196ce3; background: linear-gradient(135deg, #2f82fb, #1760d0); }
.broadcast-picker-pagination button:disabled { cursor: not-allowed; opacity: .45; }
.broadcast-picker-pagination-ellipsis { min-width: 14px; color: #7c93b1; text-align: center; }
.broadcast-picker-brand-list { display: grid; gap: 9px; }
.broadcast-picker-brand { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: start; gap: 10px; padding: 12px; border: 1px solid #dce8f7; border-radius: 11px; background: #fff; cursor: pointer; }
.broadcast-picker-brand input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: #1971ed; }
.broadcast-picker-brand-color { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; }
.broadcast-picker-brand > span:last-child { display: grid; min-width: 0; gap: 3px; }
.broadcast-picker-brand strong { color: #173d78; font-size: 14px; }
.broadcast-picker-brand small { color: #5f7a9d; font-size: 11px; }
.broadcast-picker-brand em { overflow-wrap: anywhere; color: #8498b4; font-size: 11px; font-style: normal; line-height: 1.4; }
.broadcast-reference-workspace { display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(350px, .72fr); min-height: 500px; overflow: hidden; border-color: #dce9fb; }
.broadcast-reference-builder { display: grid; align-content: start; gap: 12px; padding: 18px; }
.broadcast-reference-builder h2, .broadcast-reference-preview h2, .broadcast-summary-head h2 { margin: 0; color: #0b2d65; font-size: 18px; }
.broadcast-reference-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.broadcast-reference-tabs button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; color: #183d7a; border: 1px solid #d6e4f7; border-radius: 7px; background: #f7faff; font-size: 14px; font-weight: 800; }
.broadcast-reference-tabs button.active { color: #fff; border-color: #176df6; background: linear-gradient(135deg, #1a76ff, #1262df); box-shadow: 0 6px 12px rgba(28, 105, 241, .18); }
.broadcast-reference-panel { display: grid; gap: 12px; min-height: 250px; }
.broadcast-field-label { display: grid; gap: 6px; color: #153b77; font-size: 12px; font-weight: 800; }
.broadcast-field-label > span { justify-self: end; margin-top: -23px; color: #8193b2; font-size: 11px; font-weight: 600; }
.broadcast-field-label input, .broadcast-field-label textarea { color: #24477d; border-color: #d5e2f4; background: #fff; font-size: 13px; }
.broadcast-field-label textarea { min-height: 170px; resize: vertical; }
.broadcast-inline-note { align-self: end; margin: 0; padding: 11px 13px; color: #7c5a12; border: 1px solid #f7df9b; border-radius: 8px; background: #fff8df; font-size: 12px; font-weight: 650; }
.broadcast-upload-box, .broadcast-flex-image-picker { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 172px; overflow: hidden; border: 1px dashed #a9c6ee; border-radius: 9px; background: linear-gradient(135deg, #eff6ff, #fbfdff); color: #5d7da9; }
.broadcast-upload-box span, .broadcast-flex-image-picker span { font-size: 30px; }
.broadcast-upload-box small, .broadcast-flex-image-picker small { font-size: 12px; font-weight: 700; }
.broadcast-upload-box img, .broadcast-flex-image-picker img { width: 100%; height: 100%; min-height: 172px; object-fit: cover; }
.broadcast-panel-caption { margin: 0; color: #173c76; font-size: 13px; font-weight: 800; }
.broadcast-reference-template-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.broadcast-reference-template-row button { display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 9px; color: #345278; border: 1px solid #d8e5f5; border-radius: 8px; background: #fff; text-align: left; }
.broadcast-reference-template-row button.active { color: #1262df; border-color: #1c75ff; background: #f5f9ff; box-shadow: inset 0 0 0 1px #c3dcff; }
.broadcast-reference-template-row b { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; border-radius: 50%; background: #eff5ff; font-size: 18px; }
.broadcast-reference-template-row span { display: grid; gap: 3px; min-width: 0; }
.broadcast-reference-template-row strong { font-size: 12px; }
.broadcast-reference-template-row small { overflow: hidden; color: #8092af; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.broadcast-flex-editor { display: grid; grid-template-columns: minmax(160px, .67fr) minmax(0, 1fr); gap: 14px; }
.broadcast-flex-image-picker { min-height: 190px; margin-bottom: 8px; }
.broadcast-flex-image-picker img { min-height: 190px; }
.broadcast-flex-fields { display: grid; align-content: start; gap: 8px; }
.broadcast-flex-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.broadcast-flex-footer { display: flex; justify-content: flex-end; }
.broadcast-reference-actions { display: flex; align-items: center; gap: 12px; padding-top: 3px; }
.broadcast-reference-actions > p { flex: 1; margin: 0; padding: 10px 12px; color: #755613; border-radius: 8px; background: #fff8df; font-size: 11px; }
.broadcast-reference-actions > div { display: flex; gap: 8px; }
.broadcast-reference-preview { display: grid; align-content: start; gap: 12px; padding: 18px; border-left: 1px solid #dce9fb; background: linear-gradient(145deg, #f7fbff, #fff); }
.broadcast-reference-preview .broadcast-phone { width: min(100%, 286px); max-width: none; margin: 3px auto 10px; }
.broadcast-phone-tall { position: relative; min-height: 420px; padding-top: 29px; overflow: visible; isolation: isolate; border: 5px solid #211f25; border-radius: 37px; background: #eef4fc; box-shadow: 0 0 0 2px #847884, 0 0 0 3px #15141a, 0 18px 28px rgba(25, 28, 39, .28), 0 30px 42px rgba(34, 61, 102, .13); }
.broadcast-phone-tall::before, .broadcast-phone-tall::after { position: absolute; z-index: 3; display: block; content: ""; background: linear-gradient(90deg, #594f5c, #201d25 45%, #08090d); box-shadow: inset 1px 0 rgba(255, 255, 255, .22), inset -1px 0 rgba(0, 0, 0, .66); }
.broadcast-phone-tall::before { top: 104px; left: -9px; width: 5px; height: 31px; border-radius: 5px 0 0 5px; box-shadow: inset 1px 0 rgba(255, 255, 255, .22), inset -1px 0 rgba(0, 0, 0, .66), 0 44px 0 #24212a, 0 44px 0 1px rgba(111, 99, 114, .75), 0 88px 0 #24212a, 0 88px 0 1px rgba(111, 99, 114, .75); }
.broadcast-phone-tall::after { top: 136px; right: -9px; width: 5px; height: 54px; border-radius: 0 5px 5px 0; }
.broadcast-phone-notch { position: absolute; z-index: 4; top: 6px; left: 50%; width: 95px; height: 17px; transform: translateX(-50%); border: 1px solid #292833; border-radius: 999px; background: linear-gradient(180deg, #15161b, #050608); box-shadow: inset 0 1px rgba(255, 255, 255, .08); }
.broadcast-phone-notch::after { position: absolute; top: 6px; right: 12px; width: 4px; height: 4px; content: ""; border-radius: 50%; background: #1f426c; box-shadow: 0 0 3px #5988bc; }
.broadcast-line-top { display: flex; justify-content: space-between; padding: 7px 15px 10px; color: #121a2d; border-radius: 29px 29px 0 0; background: #fff; font-size: 11px; font-weight: 800; }
.broadcast-standard-message { min-height: 315px; background: #ecf3fd; }
.broadcast-image-message { display: grid; align-content: end; min-height: 315px; padding: 14px; background: #ecf3fd; }
.broadcast-image-message img { width: 100%; max-height: 285px; object-fit: cover; border-radius: 12px; box-shadow: 0 3px 9px rgba(24, 57, 105, .18); }
.broadcast-image-empty { display: grid; place-items: center; gap: 7px; min-height: 215px; color: #7c93b4; border: 1px dashed #b4c8e3; border-radius: 12px; background: #f8fbff; }
.broadcast-image-empty span { font-size: 12px; font-weight: 700; }
.broadcast-phone-tall .broadcast-flex-card { margin: 12px; }
.broadcast-flex-copy b { color: #1262df; font-size: 15px; }
.broadcast-phone-composer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 10px 13px; color: #2f5b9c; border-top: 1px solid #dce7f5; border-radius: 0 0 29px 29px; background: #fff; font-size: 18px; }
.broadcast-phone-composer span { flex: 1; padding: 6px 9px; color: #a1afc3; border-radius: 14px; background: #f2f6fc; font-size: 11px; }
.broadcast-summary-card { overflow: hidden; border-color: #dce9fb; }
.broadcast-summary-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid #dfebfa; }
.broadcast-summary-head strong { color: #1e9b46; font-size: 13px; }
.broadcast-summary-head b { font-size: 17px; }
.broadcast-summary-head > div { display: flex; align-items: center; gap: 12px; }
.broadcast-stats-refresh { min-height: 31px; padding: 5px 10px; font-size: 11px; }
.broadcast-summary-note { margin: 0; padding: 8px 18px; color: #697f9f; border-bottom: 1px solid #edf2fa; background: #fbfdff; font-size: 11px; }
.broadcast-summary-table-wrap { overflow-x: auto; }
.broadcast-summary-table { width: 100%; min-width: 940px; border-collapse: collapse; color: #24457e; font-size: 12px; }
.broadcast-summary-table th { padding: 8px 12px; color: #31517f; background: #f4f8fe; text-align: left; }
.broadcast-summary-table td { padding: 7px 12px; border-top: 1px solid #edf2fa; }
.broadcast-summary-table tbody tr:hover { background: #fbfdff; }
.broadcast-summary-account { display: inline-flex; align-items: center; gap: 7px; }
.broadcast-summary-account strong { font-size: 12px; }
.broadcast-summary-empty { color: #7d90ac; text-align: center; }
.broadcast-stat-value { display: grid; gap: 2px; min-width: 122px; }
.broadcast-stat-value strong { color: #17478e; font-size: 12px; }
.broadcast-stat-value small { color: #758aa8; font-size: 10px; white-space: nowrap; }
.broadcast-stat-value.warning strong, .broadcast-stat-value.warning small { color: #a36506; }
.broadcast-stat-value.muted strong, .broadcast-stat-value.muted small { color: #8799b4; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; }
  .portal-label, .side-user { display: none; }
  .admin-sidebar-brands { flex: 1 0 100%; max-height: 230px; margin: 0; }
  .nav { display: flex; gap: 4px; overflow: auto; }
  .nav button { width: auto; white-space: nowrap; }
  .main-content { padding: 18px; }
  .stat-grid, .grid-2, .split { grid-template-columns: 1fr; }
  .inbox { height: auto; min-height: 600px; grid-template-columns: 1fr; }
  .conversation-pane { max-height: 310px; border-right: 0; border-bottom: 1px solid var(--line); }
  .chat-pane { min-height: 460px; }
  .customer-pane { min-height: 180px; border-top: 1px solid var(--line); border-left: 0; }
  .inline-form, .connection-form { grid-template-columns: 1fr; }
  .add-line-account-card, .brand-account-form { align-items: stretch; flex-direction: column; }
  .line-account-list { grid-template-columns: 1fr; }
  .line-account-pagination { align-items: flex-start; flex-direction: column; }
  .line-account-pagination-controls { justify-content: flex-start; }
  .brand-dialog-selection { grid-template-columns: 1fr; }
  .connection-form .wide { grid-column: auto; }
  .broadcast-target, .broadcast-layout { grid-template-columns: 1fr; }
  .broadcast-preview-pane { border-top: 1px solid var(--line); border-left: 0; }
  .broadcast-builder-actions { grid-template-columns: 1fr; }
  .broadcast-builder-actions > div { justify-content: stretch; }
  .broadcast-builder-actions > div .btn { flex: 1; }
  .broadcast-reference-workspace { grid-template-columns: 1fr; }
  .broadcast-reference-preview { border-top: 1px solid #dce9fb; border-left: 0; }
}

@media (max-width: 560px) {
  .broadcast-target, .broadcast-builder, .broadcast-preview-pane { padding: 14px; }
  .broadcast-template-row, .broadcast-builder-grid { grid-template-columns: 1fr; }
  .broadcast-builder-grid .wide { grid-column: auto; }
  .broadcast-phone { max-width: 100%; }
  .broadcast-target-reference > div, .broadcast-reference-builder, .broadcast-reference-preview { padding: 13px; }
  .broadcast-target-title { align-items: stretch; flex-direction: column; gap: 8px; }
  .broadcast-target-title label { max-width: none; }
  .broadcast-target-total { flex-wrap: wrap; }
  .broadcast-target-total strong { margin-left: 0; }
  .broadcast-reference-tabs { grid-template-columns: 1fr; }
  .broadcast-reference-template-row, .broadcast-flex-editor, .broadcast-flex-two { grid-template-columns: 1fr; }
  .broadcast-reference-actions { align-items: stretch; flex-direction: column; }
  .broadcast-reference-actions > div { width: 100%; }
  .broadcast-reference-actions .btn { flex: 1; }
}

/* Soft 3D visual system: shared by login, Head Admin and Admin inbox. */
:root {
  --canvas: #eaf2fc;
  --card: #eef5fe;
  --line: #d7e4f3;
  --ink: #102b5b;
  --muted: #6780a3;
  --navy: #0d2c59;
  --blue: #1267ef;
  --blue-soft: #e7f0ff;
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .98), transparent 31%),
    radial-gradient(circle at 0% 100%, rgba(204, 223, 248, .82), transparent 34%),
    linear-gradient(145deg, #eef5fe 0%, #e6f0fb 100%);
}

button, input, select, textarea { transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease, background-color .2s ease; }

.auth-page {
  position: relative;
  overflow: hidden;
  place-content: stretch;
  padding: clamp(24px, 5vw, 76px);
  text-align: left;
  background:
    radial-gradient(circle at 9% 86%, rgba(203, 222, 246, .72), transparent 28%),
    linear-gradient(135deg, #edf5fe 0%, #e4effb 53%, #f4f9ff 100%);
}
.auth-page::before, .auth-page::after {
  position: absolute;
  z-index: 0;
  width: clamp(180px, 25vw, 430px);
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: linear-gradient(145deg, #f8fcff, #dce8f5);
  box-shadow: -17px -17px 34px rgba(255, 255, 255, .86), 18px 18px 36px rgba(94, 126, 168, .15);
}
.auth-page::before { top: -15%; left: -10%; }
.auth-page::after { right: -9%; bottom: -18%; }
.auth-orb { position: absolute; z-index: 0; border-radius: 50%; opacity: .76; }
.auth-orb-left { width: 116px; height: 116px; right: 21%; top: 11%; background: #eff6fe; box-shadow: inset 9px 9px 17px #cfddec, inset -8px -8px 16px #fff; }
.auth-orb-right { width: 78px; height: 78px; left: 37%; bottom: 9%; background: #e9f2fc; box-shadow: inset 7px 7px 14px #cbd9e8, inset -6px -6px 13px #fff; }
.auth-layout { position: relative; z-index: 1; width: min(1400px, 100%); min-height: min(780px, calc(100vh - 48px)); display: grid; grid-template-columns: minmax(240px, .74fr) minmax(360px, 520px) minmax(245px, .64fr); align-items: center; gap: clamp(30px, 5vw, 88px); margin: auto; }
.auth-intro { display: grid; align-content: center; gap: 19px; padding: 20px; }
.auth-brand-lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); font-size: 19px; font-weight: 850; }
.auth-mascot { display: block; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.auth-mascot img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; filter: drop-shadow(0 7px 8px rgba(20, 54, 98, .26)); }
.auth-brand-lockup .auth-lockup-mascot { width: 68px; height: 68px; }
.auth-intro h1 { margin: 26px 0 0; color: #112f60; font-size: clamp(37px, 4.4vw, 64px); line-height: 1.08; letter-spacing: -.055em; }
.auth-intro h1 em { color: #1267ef; font-style: normal; }
.auth-intro > p { max-width: 410px; color: #627da3; font-size: 18px; line-height: 1.75; }
.auth-intro-dots { display: flex; gap: 8px; margin-top: 8px; }
.auth-intro-dots i { display: block; width: 13px; height: 13px; border-radius: 50%; background: #c1d5f4; box-shadow: inset 1px 1px 2px rgba(50, 91, 149, .2); }
.auth-intro-dots i.active { width: 38px; border-radius: 999px; background: linear-gradient(90deg, #0a68fb, #62a0ff); box-shadow: 0 5px 10px rgba(31, 108, 236, .25); }
.auth-card {
  width: 100%;
  max-width: 520px;
  padding: clamp(31px, 4.2vw, 54px);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 36px;
  background: linear-gradient(145deg, rgba(250, 253, 255, .98), rgba(228, 239, 251, .98));
  box-shadow: -18px -18px 36px rgba(255, 255, 255, .82), 23px 27px 52px rgba(77, 112, 159, .2), inset 1px 1px 1px rgba(255, 255, 255, .96);
}
.auth-card-logo.auth-mascot { width: 128px; height: 128px; margin: -12px auto 10px; }
.auth-card h2 { margin: 0; color: #102d5e; font-size: 32px; letter-spacing: -.035em; }
.auth-card > .subtle { margin-top: 8px; font-size: 15px; }
.auth-card form { gap: 14px; margin-top: 28px; text-align: left; }
.auth-card label { gap: 8px; color: #375477; font-size: 13px; }
.auth-card input { min-height: 57px; border: 1px solid rgba(255, 255, 255, .94); border-radius: 16px; background: #e8f1fc; box-shadow: inset 5px 5px 10px rgba(154, 181, 213, .26), inset -5px -5px 10px rgba(255, 255, 255, .9); }
.auth-card input::placeholder { color: #91a5be; }
.auth-card input:focus { background: #f8fbff; box-shadow: inset 2px 2px 5px rgba(154, 181, 213, .18), 0 0 0 4px rgba(57, 125, 245, .12); }
.auth-card .btn-primary { width: 100%; min-height: 58px; margin-top: 7px; border-radius: 17px; font-size: 17px; box-shadow: 0 12px 19px rgba(17, 98, 236, .25), inset 1px 1px 0 rgba(255, 255, 255, .28); }
.auth-card .btn-primary:hover { transform: translateY(-2px); filter: brightness(1.03); }
.auth-card-hint { margin-top: 19px; text-align: center; font-size: 12px; }
.auth-setup-toggle { margin: 15px 0 0; text-align: center; }
.auth-setup-toggle .text-button { color: #1769e8; }
.auth-features { display: grid; gap: 14px; align-content: center; }
.auth-features h2 { margin: 0 0 4px; color: #123264; font-size: 21px; }
.auth-feature { display: flex; align-items: center; gap: 16px; min-height: 102px; padding: 15px 17px; border: 1px solid rgba(255, 255, 255, .86); border-radius: 23px; background: linear-gradient(145deg, #f4f9ff, #e3edf9); box-shadow: -6px -6px 13px rgba(255, 255, 255, .8), 8px 9px 17px rgba(95, 127, 166, .13); }
.auth-feature > span { display: grid; width: 58px; height: 58px; flex: 0 0 auto; place-items: center; color: #1b70ed; border-radius: 18px; background: linear-gradient(145deg, #f5faff, #d7e7fa); box-shadow: 5px 5px 10px rgba(85, 117, 159, .14), -4px -4px 9px #fff, inset 1px 1px 0 #fff; font-size: 27px; }
.auth-feature:nth-of-type(3) > span { color: #12a44d; }
.auth-feature:nth-of-type(4) > span { color: #1e78ee; }
.auth-feature div { display: grid; gap: 4px; }
.auth-feature strong { color: #173a70; font-size: 14px; }
.auth-feature small { color: #7188a7; font-size: 12px; line-height: 1.45; }

.app-shell { grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.sidebar { z-index: 2; gap: 16px; padding: 18px 13px; color: #e5efff; border-right: 1px solid rgba(126, 172, 230, .24); background: linear-gradient(155deg, #123b77 0%, #0d2d5b 57%, #09264e 100%); box-shadow: 12px 0 30px rgba(22, 58, 109, .15), inset -1px 0 rgba(255, 255, 255, .07); }
.side-brand { gap: 12px; padding: 0 8px 6px; font-size: 18px; letter-spacing: -.025em; }
.side-brand .brand-warrior-mark { width: 78px; height: 78px; border-color: rgba(248, 218, 105, .92); box-shadow: 0 8px 18px rgba(0, 0, 0, .3), 0 0 0 3px rgba(255, 255, 255, .09), inset 0 0 10px rgba(255, 222, 113, .3); }
.portal-label { padding: 0 8px; color: #c8dcfb; font-size: 11px; font-weight: 750; }
.nav { gap: 8px; }
.nav button { min-height: 43px; padding: 10px 13px; color: #d5e6ff; border: 1px solid transparent; border-radius: 13px; font-weight: 720; }
.nav button.active, .nav button:hover { color: white; border-color: rgba(128, 178, 244, .32); background: linear-gradient(145deg, #285c9e, #1d4b84); box-shadow: 4px 5px 10px rgba(3, 21, 53, .23), inset 1px 1px rgba(255, 255, 255, .11); }
.nav button.inbox-subtab { min-height: 32px; padding: 6px 12px 6px 27px; color: #c3d8f7; }
.sidebar-inbox-tags { gap: 5px; margin: -2px 0 4px; padding-left: 22px; }
.nav button.inbox-tag-item { min-height: 29px; border-radius: 9px; }
.admin-sidebar-brands { gap: 8px; max-height: 37vh; padding: 13px 9px; border-color: rgba(125, 173, 230, .31); background: rgba(4, 29, 68, .18); box-shadow: inset 1px 1px rgba(255, 255, 255, .04); }
.sidebar-brand-label { padding: 6px 7px; background: rgba(54, 102, 161, .16); }
.sidebar-brand-account { padding: 4px 3px; }
.side-user { padding: 16px 10px 9px; border-top-color: rgba(125, 173, 230, .31); }
.side-user .text-button { margin-top: 4px; color: #78adff; }

.workspace { min-width: 0; background: linear-gradient(145deg, #f1f7ff, #e6f0fb); }
.workspace-topbar { position: sticky; top: 0; z-index: 1; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px clamp(20px, 3vw, 44px); border-bottom: 1px solid rgba(194, 214, 239, .8); background: rgba(244, 249, 255, .84); box-shadow: 0 8px 20px rgba(102, 132, 171, .09); backdrop-filter: blur(18px); }
.workspace-search { display: flex; align-items: center; gap: 10px; width: min(520px, 45vw); min-height: 42px; padding: 0 17px; color: #8095b3; border: 1px solid rgba(255, 255, 255, .88); border-radius: 999px; background: #eaf2fc; box-shadow: inset 4px 4px 9px rgba(150, 177, 208, .18), inset -3px -3px 7px rgba(255, 255, 255, .8); font-size: 13px; }
.workspace-search > span:first-child { color: #2c66b4; font-size: 25px; line-height: 1; }
.workspace-actions { display: flex; align-items: center; gap: 14px; color: #264978; }
.workspace-online { display: inline-flex; align-items: center; gap: 7px; color: #386185; font-size: 12px; font-weight: 750; }
.workspace-online i { width: 9px; height: 9px; border-radius: 50%; background: #21c85f; box-shadow: 0 0 8px rgba(27, 207, 94, .78); }
.workspace-bell { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid rgba(255, 255, 255, .9); border-radius: 50%; background: linear-gradient(145deg, #f8fbff, #dce9f8); box-shadow: 4px 4px 9px rgba(101, 131, 169, .16), -3px -3px 8px #fff; font-size: 17px; }
.workspace-user { display: flex; align-items: center; gap: 9px; }
.workspace-user > b { display: grid; width: 38px; height: 38px; place-items: center; color: white; border-radius: 50%; background: linear-gradient(145deg, #3c7ee6, #164581); box-shadow: 0 5px 10px rgba(28, 69, 127, .2), 0 0 0 3px rgba(255, 255, 255, .72); font-size: 15px; }
.workspace-user > span { display: grid; gap: 1px; }
.workspace-user strong { max-width: 130px; overflow: hidden; color: #173a70; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.workspace-user small { color: #7489a6; font-size: 10px; }
.workspace-chevron { color: #5c789d; font-size: 18px; }
.main-content { padding: clamp(22px, 3.1vw, 42px); }
.page-head { margin-bottom: 22px; }
.page-head h1 { margin: 0; color: #0e3062; font-size: clamp(25px, 2.2vw, 33px); letter-spacing: -.04em; }
.page-head p { color: #607da3; font-size: 14px; }
.page-head-actions .btn { box-shadow: 4px 4px 9px rgba(93, 126, 168, .14), -3px -3px 7px rgba(255, 255, 255, .76); }

.card, .edit-admin-dialog, .brand-picker, .media-preview-dialog, .broadcast-json-dialog { border: 1px solid rgba(255, 255, 255, .92); background: linear-gradient(145deg, #f9fcff, #e7f0fa); box-shadow: -7px -7px 14px rgba(255, 255, 255, .83), 8px 10px 20px rgba(83, 117, 159, .14), inset 1px 1px rgba(255, 255, 255, .92); }
.card { border-radius: 20px; }
.card-pad { padding: clamp(18px, 2.1vw, 27px); }
.stat-grid { gap: 19px; }
.stat-card { min-height: 145px; padding: 24px; }
.stat-card .number { color: #123b78; font-size: 37px; letter-spacing: -.05em; }
.grid-2, .split { gap: 20px; }
.section-title h2, .card h2 { color: #123769; }
.data-table th { color: #547095; }
.data-table td { border-bottom-color: rgba(188, 210, 236, .58); }
.data-table tbody tr:hover { background: rgba(255, 255, 255, .42); }
input, select, textarea { border-color: rgba(255, 255, 255, .9); border-radius: 12px; background: #eff5fc; box-shadow: inset 3px 3px 7px rgba(151, 177, 207, .17), inset -3px -3px 7px rgba(255, 255, 255, .85); }
input:focus, select:focus, textarea:focus { border-color: #74a8ff; background: #fbfdff; box-shadow: inset 2px 2px 5px rgba(151, 177, 207, .14), 0 0 0 4px rgba(48, 121, 241, .12); }
.btn { border-radius: 12px; box-shadow: 3px 4px 8px rgba(91, 121, 160, .15), -2px -2px 6px rgba(255, 255, 255, .78); }
.btn:active { transform: translateY(1px); box-shadow: inset 2px 2px 5px rgba(75, 111, 157, .17); }
.btn-primary { background: linear-gradient(135deg, #2b85ff, #1261df); box-shadow: 0 9px 16px rgba(17, 96, 222, .22), inset 1px 1px rgba(255, 255, 255, .25); }
.btn-secondary { color: #244e86; border-color: rgba(177, 203, 236, .88); background: linear-gradient(145deg, #f9fcff, #e9f2fc); }
.btn-danger { background: linear-gradient(145deg, #fff, #fff2f1); }
.tag-chip { border-color: rgba(177, 207, 249, .9); background: linear-gradient(145deg, #f6faff, #dfeeff); box-shadow: 2px 2px 4px rgba(96, 129, 171, .09), inset 1px 1px rgba(255, 255, 255, .78); }

.inbox { height: calc(100vh - 174px); min-height: 560px; grid-template-columns: minmax(280px, 335px) minmax(0, 1fr) minmax(250px, 290px); overflow: hidden; background: #edf4fc; }
.conversation-pane { padding: 0 7px 7px; border-right-color: rgba(190, 210, 235, .75); background: linear-gradient(145deg, #edf4fc, #e5eef9); }
.inbox-tools { margin: 7px 0 5px; padding: 14px 10px; border-bottom-color: rgba(190, 210, 235, .7); }
.inbox-list-title { color: #183c70; }
.inbox-list-title span { background: #dae9fa; box-shadow: inset 1px 1px 3px rgba(90, 125, 170, .14); }
.conversation-row { margin: 5px 0; padding: 13px 10px; border: 1px solid transparent; border-bottom: 0; border-radius: 15px; background: transparent; }
.conversation-row:hover, .conversation-row.active { border-color: rgba(255, 255, 255, .86); background: linear-gradient(145deg, #edf5ff, #dceafa); box-shadow: 4px 5px 9px rgba(101, 133, 174, .11), -3px -3px 7px rgba(255, 255, 255, .7), inset 1px 1px rgba(255, 255, 255, .8); }
.conversation-row.active { box-shadow: inset 2px 2px 5px rgba(112, 148, 192, .11), inset -2px -2px 5px rgba(255, 255, 255, .8); }
.profile-avatar { box-shadow: 2px 3px 6px rgba(44, 79, 130, .17), 0 0 0 2px rgba(255, 255, 255, .62); }
.chat-pane { background: linear-gradient(145deg, #f7fbff, #eaf2fb); }
.chat-head { padding: 16px 20px; border-bottom-color: rgba(189, 210, 235, .76); background: rgba(250, 253, 255, .8); box-shadow: 0 4px 12px rgba(95, 127, 166, .06); }
.chat-account-full strong { color: #16427e; }
.chat-messages { gap: 14px; padding: 24px 22px; }
.bubble { padding: 11px 14px; border: 1px solid rgba(255, 255, 255, .82); border-radius: 19px 19px 19px 6px; background: linear-gradient(145deg, #ffffff, #eaf1f9); box-shadow: 4px 5px 10px rgba(101, 128, 163, .13), -2px -2px 6px rgba(255, 255, 255, .72); }
.bubble-row.outbound .bubble { color: #12335f; border-color: #a9c7ee; border-radius: 19px 19px 6px 19px; background: linear-gradient(145deg, #dbeafa, #cfdef3); box-shadow: 4px 5px 10px rgba(80, 116, 163, .17), inset 1px 1px rgba(255, 255, 255, .52); }
.bubble-meta { color: #69819f; }
.composer { padding: 13px 16px 12px; border-top-color: rgba(189, 210, 235, .75); background: rgba(248, 252, 255, .9); }
.composer textarea { min-height: 51px; background: #edf4fc; }
.composer-send-group { border: 0; border-radius: 13px; box-shadow: 0 8px 15px rgba(5, 159, 72, .19), inset 1px 1px rgba(255, 255, 255, .3); }
.customer-pane { border-left-color: rgba(189, 210, 235, .75); background: linear-gradient(145deg, #f7fbff, #e7f0fa); }
.customer-profile, .customer-tags { border-bottom-color: rgba(189, 210, 235, .75); }
.customer-tag-option { border-color: rgba(255, 255, 255, .9); border-radius: 12px; background: #edf4fc; box-shadow: inset 2px 2px 4px rgba(128, 157, 193, .1), inset -2px -2px 4px #fff; }
.customer-notes { background: #fffdf3; }
.customer-note { box-shadow: 4px 5px 9px rgba(150, 111, 9, .12), inset 1px 1px rgba(255, 255, 255, .46); }

.broadcast-target-reference, .broadcast-reference-workspace, .broadcast-summary-card { border-color: rgba(255, 255, 255, .88); box-shadow: -7px -7px 14px rgba(255, 255, 255, .78), 8px 10px 20px rgba(83, 117, 159, .12); }
.broadcast-target-reference, .broadcast-reference-preview { background: linear-gradient(145deg, #f9fcff, #e7f0fa); }
.broadcast-account-tile, .broadcast-reference-tabs button, .broadcast-reference-template-row button, .broadcast-upload-box, .broadcast-flex-image-picker { border-color: rgba(255, 255, 255, .92); background: #edf4fc; box-shadow: 3px 3px 7px rgba(104, 132, 167, .12), -2px -2px 5px rgba(255, 255, 255, .75); }
.broadcast-reference-tabs button.active { box-shadow: 0 8px 15px rgba(24, 101, 231, .21), inset 1px 1px rgba(255, 255, 255, .24); }

@media (max-width: 1120px) {
  .auth-layout { grid-template-columns: minmax(240px, .7fr) minmax(360px, 500px); }
  .auth-features { display: none; }
  .workspace-search { width: min(420px, 42vw); }
  .inbox { grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) minmax(225px, 260px); }
}

@media (max-width: 900px) {
  .auth-layout { min-height: auto; grid-template-columns: 1fr; max-width: 560px; }
  .auth-intro { display: none; }
  .auth-card { margin: auto; }
  .workspace-topbar { position: static; }
  .workspace-search { width: min(440px, 56vw); }
  .workspace-user > span, .workspace-online, .workspace-chevron { display: none; }
  .sidebar { background: linear-gradient(145deg, #123b77, #0d2d5b); }
}

@media (max-width: 560px) {
  .auth-page { padding: 20px; }
  .auth-card { padding: 31px 23px; border-radius: 27px; }
  .auth-card-logo.auth-mascot { width: 100px; height: 100px; }
  .workspace-topbar { min-height: 60px; padding: 9px 15px; }
  .workspace-search { width: 100%; font-size: 11px; }
  .workspace-actions { gap: 8px; }
  .main-content { padding: 17px 12px; }
  .page-head { align-items: center; }
  .page-head h1 { font-size: 24px; }
  .page-head p { display: none; }
  .inbox { border-radius: 17px; }
}

/* Head Admin sidebar hierarchy: principal tag menu, compact role heading, and icon-led navigation. */
.sidebar { gap: 13px; padding-top: 17px; }
.side-brand { display: grid; justify-items: center; gap: 7px; padding: 1px 8px 5px; text-align: center; }
.side-brand .brand-warrior-mark { width: 94px; height: 94px; }
.side-brand-copy { display: grid; gap: 2px; justify-items: center; }
.side-brand-copy strong { color: #fff; font-size: 20px; font-weight: 900; letter-spacing: -.035em; line-height: 1.12; white-space: nowrap; }
.side-brand-copy small { color: #c5daf8; font-size: 11px; font-weight: 700; line-height: 1.35; }
.side-brand .side-mascot {
  display: block;
  width: 118px;
  height: 118px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.side-brand .side-mascot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 7px 8px rgba(1, 18, 47, .32));
}
.portal-label { padding: 4px 10px 1px; color: #c7dbfa; font-size: 12px; font-weight: 780; }
.portal-label.head-admin-label { color: #eef6ff; font-size: 17px; font-weight: 900; letter-spacing: -.03em; }
.nav { gap: 7px; }
.nav button { display: flex; align-items: center; gap: 10px; min-height: 47px; padding: 8px 12px; text-align: left; }
.nav-icon { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; color: #dceaff; border-radius: 10px; background: linear-gradient(145deg, rgba(230, 242, 255, .17), rgba(82, 138, 211, .12)); box-shadow: inset 1px 1px rgba(255, 255, 255, .13), 2px 2px 5px rgba(0, 20, 53, .22); }
.nav-icon svg { width: 18px; height: 18px; overflow: visible; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.85; }
.nav-icon svg circle { fill: none; }
.nav-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.2;
  letter-spacing: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-label-inbox { color: #36df70; }
.nav button.active .nav-label-inbox, .nav button:hover .nav-label-inbox { color: #60f28d; }
.side-brand-copy .brand-name-highlight {
  color: #36df70;
  text-shadow: 0 0 11px rgba(54, 223, 112, .34);
}
.nav button.active .nav-icon, .nav button:hover .nav-icon { color: #fff; background: linear-gradient(145deg, rgba(235, 247, 255, .26), rgba(109, 172, 255, .23)); box-shadow: inset 1px 1px rgba(255, 255, 255, .22), 0 0 11px rgba(103, 175, 255, .22); }
.nav button.inbox-subtab { min-height: 39px; padding: 6px 10px 6px 24px; font-size: 13px; }
.nav button.inbox-subtab .nav-icon { width: 23px; height: 23px; border-radius: 8px; }
.nav button.inbox-subtab .nav-icon svg { width: 14px; height: 14px; }
.sidebar-inbox-tags { margin-top: -3px; padding-left: 23px; }

@media (max-width: 900px) {
  .side-brand { display: flex; justify-items: initial; gap: 9px; text-align: left; }
  .side-brand .brand-warrior-mark { width: 58px; height: 58px; }
  .side-brand .side-mascot { width: 64px; height: 64px; }
  .side-brand-copy { justify-items: start; }
  .side-brand-copy strong { font-size: 16px; }
  .side-brand-copy small { display: none; }
  .portal-label.head-admin-label { font-size: 13px; }
}

/* Keep the application frame fixed on desktop. Only the appropriate content
   pane scrolls, so the inbox never creates a second page-level scrollbar. */
@media (min-width: 901px) {
  html, body, #app { height: 100%; }
  body { overflow: hidden; }
  .app-shell { height: 100vh; height: 100dvh; min-height: 0; }
  .workspace { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
  .main-content { min-height: 0; overflow: auto; }
  .main-content.inbox-page { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; padding: 20px clamp(20px, 2.5vw, 34px) 22px; overflow: hidden; }
  .main-content.inbox-page .page-head { margin-bottom: 14px; }
  .main-content.inbox-page .inbox { height: auto; min-height: 0; max-height: 100%; }
  .main-content.inbox-page .conversation-pane, .main-content.inbox-page .chat-pane, .main-content.inbox-page .customer-pane { min-height: 0; }
}

/* Admin inherits the same sidebar typography scale as Head Admin. */
.portal-label { color: #eef6ff; font-size: 17px; font-weight: 900; letter-spacing: -.03em; }
.sidebar .nav button { font-size: 16px; }
.side-user strong { font-size: 16px; }

@media (max-width: 900px) {
  .portal-label, .portal-label.head-admin-label { font-size: 13px; }
}

/* Admin sidebar: keep the assigned-brand area expanded to the full available rail. */
@media (min-width: 901px) {
  .sidebar .admin-sidebar-brands {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .sidebar .admin-sidebar-brands::-webkit-scrollbar { display: none; width: 0; height: 0; }
}

/* Head Admin overview: a compact operating summary with dimensional icons and
   recent, privacy-safe audit activity instead of the old setup checklist. */
.overview-dashboard { display: grid; gap: 19px; }
.overview-page-head > div { display: flex; align-items: center; gap: 13px; }
.overview-page-head h1 { margin: 0; color: #0a326b; font-size: 29px; letter-spacing: -.045em; }
.overview-page-head p { margin: 5px 0 0; color: #6681a5; font-size: 14px; }
.overview-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; color: #2475e9; border: 1px solid rgba(191, 222, 255, .92); border-radius: 11px; background: linear-gradient(145deg, #f8fcff, #dceeff); box-shadow: inset 1px 1px rgba(255, 255, 255, .97), 3px 4px 8px rgba(46, 107, 177, .13); }
.overview-icon svg { width: 19px; height: 19px; overflow: visible; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.85; }
.overview-icon svg circle { fill: none; }
.overview-icon-green { color: #079b54; border-color: rgba(190, 239, 211, .95); background: linear-gradient(145deg, #f4fff8, #d6f8e4); }
.overview-icon-violet { color: #7a4bd7; border-color: rgba(224, 211, 255, .95); background: linear-gradient(145deg, #fcfaff, #ebe3ff); }
.overview-page-head .overview-icon { width: 47px; height: 47px; color: #fff; border-color: rgba(123, 194, 255, .68); border-radius: 14px; background: linear-gradient(145deg, #59a5ff, #1768d8); box-shadow: inset 1px 1px rgba(255, 255, 255, .3), 5px 7px 14px rgba(26, 91, 178, .28); }
.overview-page-head .overview-icon svg { width: 26px; height: 26px; }
.overview-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.overview-stat-card { display: flex; align-items: flex-start; gap: 13px; min-height: 142px; padding: 22px; }
.overview-stat-card > .overview-icon { width: 48px; height: 48px; border-radius: 14px; }
.overview-stat-card > .overview-icon svg { width: 25px; height: 25px; }
.overview-stat-card p { margin: 1px 0 0; color: #607ea4; font-size: 13px; }
.overview-stat-card strong { display: block; margin-top: 10px; color: #0a3471; font-size: 34px; letter-spacing: -.05em; line-height: 1; }
.overview-stat-card strong span { color: #6e88aa; font-size: 17px; }
.overview-stat-card small { display: block; margin-top: 8px; color: #7a92ad; font-size: 11px; }
.overview-content-grid { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(300px, .94fr); gap: 19px; }
.overview-panel { min-height: 348px; padding: clamp(18px, 2vw, 26px); }
.overview-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.overview-panel-head h2 { display: flex; align-items: center; gap: 9px; margin: 0; color: #0a356f; font-size: 19px; letter-spacing: -.03em; }
.overview-panel-head h2 .overview-icon { width: 30px; height: 30px; border-radius: 9px; }
.overview-panel-head h2 .overview-icon svg { width: 16px; height: 16px; }
.overview-panel-head .btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.overview-panel-head .btn .overview-icon { width: 20px; height: 20px; color: currentColor; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.overview-panel-head .btn .overview-icon svg { width: 16px; height: 16px; }
.overview-status-table { margin: 1px 0 0; }
.overview-status-table th:nth-child(1), .overview-status-table td:nth-child(1) { width: 39%; }
.overview-status-table th:nth-child(2), .overview-status-table td:nth-child(2) { width: 35%; }
.overview-status-table th:nth-child(3), .overview-status-table td:nth-child(3) { width: 26%; }
.overview-friend-link { display: grid; grid-template-columns: auto auto; align-items: center; justify-content: start; gap: 5px; }
.overview-friend-link a, .overview-friend-link button { min-height: 27px; padding: 4px 8px; font: inherit; font-size: 11px; font-weight: 800; line-height: 1; text-decoration: none; border-radius: 8px; cursor: pointer; }
.overview-friend-link-open { color: #087a46; border: 1px solid #aee8c7; background: linear-gradient(145deg, #f3fff8, #ddfae9); }
.overview-friend-link-copy { color: #1a5ca8; border: 1px solid #bfdcff; background: linear-gradient(145deg, #f7fbff, #e4f0ff); }
.overview-friend-link a:hover, .overview-friend-link button:hover { transform: translateY(-1px); filter: brightness(.98); }
.overview-friend-link small { grid-column: 1 / -1; color: #7a92ad; font-size: 10px; font-weight: 700; line-height: 1.25; }
.overview-friend-link-missing { color: #8b9aae; font-size: 11px; }
.overview-table-wrap { min-width: 0; }
.overview-pagination { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #dbe8f6; }
.overview-pagination-summary { color: #6c85a3; font-size: 12px; font-weight: 700; white-space: nowrap; }
.overview-pagination-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.overview-page-button { min-width: 31px; height: 31px; padding: 0 9px; color: #255385; font: inherit; font-size: 12px; font-weight: 800; line-height: 1; border: 1px solid #c7dcf5; border-radius: 9px; background: linear-gradient(145deg, #ffffff, #edf5ff); box-shadow: 0 3px 8px rgba(43, 94, 151, .08); cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.overview-page-button:hover:not(:disabled) { transform: translateY(-1px); border-color: #75adf2; background: #f7fbff; }
.overview-page-button.is-current { color: #ffffff; border-color: #1976e8; background: linear-gradient(145deg, #2e94ff, #1268df); box-shadow: 0 5px 12px rgba(28, 116, 225, .27); }
.overview-page-button:disabled { opacity: .42; cursor: default; }
.overview-page-previous, .overview-page-next { padding-inline: 11px; }
.overview-pagination-ellipsis { min-width: 13px; color: #7892af; font-size: 15px; font-weight: 900; line-height: 1; text-align: center; }
.overview-activity-list { display: grid; gap: 13px; }
.overview-activity-item { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 10px; align-items: start; }
.overview-activity-item .overview-icon { width: 29px; height: 29px; border-radius: 9px; }
.overview-activity-item .overview-icon svg { width: 15px; height: 15px; }
.overview-activity-item strong { display: block; color: #15427b; font-size: 13px; }
.overview-activity-item p { margin: 2px 0 0; color: #758fab; font-size: 11px; line-height: 1.45; }
.overview-activity-item time { display: block; margin-top: 2px; color: #99abc0; font-size: 10px; }

@media (max-width: 900px) {
  .overview-stat-grid, .overview-content-grid { grid-template-columns: 1fr; }
  .overview-panel { min-height: 0; }
}

@media (max-width: 560px) {
  .overview-page-head h1 { font-size: 24px; }
  .overview-page-head p { display: block; font-size: 12px; }
  .overview-stat-grid { gap: 13px; }
  .overview-stat-card { min-height: 0; padding: 18px; }
  .overview-panel-head { align-items: flex-start; flex-direction: column; }
  .overview-status-table th, .overview-status-table td { width: auto; }
  .overview-pagination { align-items: flex-start; flex-direction: column; }
  .overview-pagination-controls { justify-content: flex-start; }
  .line-account-webhook { grid-template-columns: 1fr; }
  .line-account-settings-actions { grid-template-columns: 1fr; }
  .line-account-settings-actions .btn { width: 100%; }
}
