@font-face {
  font-family: Inter;
  src: url(/fonts/inter/inter-vietnamese-wght-normal.woff2) format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0102-0103,
    U+0110-0111,
    U+0128-0129,
    U+0168-0169,
    U+01A0-01A1,
    U+01AF-01B0,
    U+0300-0301,
    U+0303-0304,
    U+0308-0309,
    U+0323,
    U+0329,
    U+1EA0-1EF9,
    U+20AB;
}
@font-face {
  font-family: Inter;
  src: url(/fonts/inter/inter-latin-wght-normal.woff2) format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --app-font:Inter,system-ui,sans-serif;
  --primary:#28644c;
  --primary-hover:#34795d;
  --primary-foreground:#fff;
  --primary-light:#eaf3ed;
  --background:#f5f6f8;
  --surface:#fff;
  --foreground:#24332e;
  --muted:#5f6d66;
  --border:#edf0ee;
  --border-strong:#dfe5e1;
  --border-focus:var(--primary);
  --ring-focus:#28644c1a;
  --secondary:#eef1ef;
  --button-hover:#f1f3f2;
  --item-hover:#f4f6f5;
  --success:#176348;
  --success-bg:#e9f5ee;
  --warning:#9a530f;
  --warning-bg:#fff3e2;
  --danger:#be2447;
  --danger-bg:#fff0f3;
  --elevation-popover:0 8px 28px #172c201a;
  --elevation-modal:0 24px 80px #10251b29;
  --bg:var(--background);
  --panel:var(--surface);
  --text:var(--foreground);
  --line:var(--border-strong);
  --green:var(--primary);
  --green-dark:var(--primary-hover);
  --pale:var(--primary-light);
  --red:var(--danger);
  --radius:12px;
  --shadow:none;
  --nav-width:236px;
  font-family: var(--app-font);
  color: var(--foreground);
  background: var(--background);
  color-scheme: light;
}
html {
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--app-font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background: var(--background);
  color: var(--foreground);
}
button,
input,
select,
textarea {
  font-family: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  font-weight: 500;
}
h1,
h2,
h3,
h4 {
  font-family: var(--app-font);
  letter-spacing: normal;
}
h1 {
  font-size: 26px;
  font-weight: 650;
  line-height: 1.3;
}
h2 {
  font-size: 16px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
small,
.small {
  font-size: 12px;
}
strong {
  font-weight: 600;
}
button,
table,
time,
.dashboard-stat,
.learner-cycle-stat {
  font-variant-numeric: tabular-nums;
}
::placeholder {
  color: var(--muted);
  opacity: 1;
}
.layout {
  grid-template-columns: var(--nav-width) minmax(0, 1fr);
  background: var(--background);
}
.sidebar {
  width: var(--nav-width);
  padding: 16px 12px;
  background: var(--surface);
  border-right: 1px solid var(--border-strong);
  gap: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-collapsed {
  --nav-width:76px;
}
.sidebar-collapsed .layout {
  grid-template-columns: var(--nav-width) minmax(0, 1fr);
}
.sidebar-collapsed .sidebar {
  width: var(--nav-width);
}
.sidebar .brand {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 8px 24px;
  margin: 0 0 12px;
  text-align: left;
  min-height: 70px;
  color: var(--foreground);
}
.workspace-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -2px;
  padding-right: 2px;
}
.brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.sidebar .brand-word {
  font-family: var(--app-font);
  font-size: 17px;
  letter-spacing: -.5px;
  font-weight: 650;
  line-height: 1.25;
}
.sidebar .brand small {
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.sidebar-collapsed .brand-copy {
  display: none;
}
.sidebar-collapsed .sidebar .brand {
  justify-content: center;
  padding: 8px 0 24px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 16px 12px 8px;
  font-weight: 600;
}
.nav-item {
  height: 40px;
  margin: 2px 0;
  padding: 0 12px;
  gap: 10px;
  position: relative;
  border-radius: 8px;
  font-size: 13px;
  color: #53625a;
  flex-shrink: 0;
}
.nav-item svg {
  width: 18px;
  height: 18px;
  opacity: .85;
}
.nav-item:hover {
  background: var(--item-hover);
  color: var(--foreground);
}
.nav-item.active {
  background: var(--secondary);
  color: var(--foreground);
  font-weight: 600;
}
.nav-item.active:before {
  display: none;
}
.nav-item.active svg {
  color: var(--primary);
  opacity: 1;
}
.nav-badge {
  background: var(--danger);
  color: white;
  font-size: 10px;
  border-radius: 6px;
  min-width: 19px;
  line-height: 19px;
  padding: 0 5px;
  text-align: center;
  margin-left: auto;
}
.sidebar-toggle {
  left: calc(var(--nav-width) - 1px);
  top: 32px;
  width: 24px;
  height: 24px;
  background: var(--surface);
  border-color: var(--border-strong);
  box-shadow: none;
  z-index: 42;
}
.sidebar-collapsed .sidebar-toggle {
  left: 75px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 16px 8px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}
.sidebar-bottom .local-pill {
  display: none;
}
.main {
  min-width: 0;
}
.topbar {
  height: 68px;
  background: var(--surface);
  backdrop-filter: none;
  border-color: var(--border-strong);
  padding: 0 28px;
  overflow: visible;
  transition: none;
}
.topbar.hidden-on-scroll {
  height: 68px;
  opacity: 1;
  border-bottom: 1px solid var(--border-strong);
}
.breadcrumb {
  gap: 10px;
  font-size: 13px;
}
.breadcrumb > svg {
  opacity: .45;
}
.top-search {
  height: 36px;
  min-width: 220px;
  background: var(--background);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 10px;
}
.top-search input {
  background: transparent;
  font-size: 12px;
}
.top-search:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--ring-focus);
}
.keycap {
  border: 0;
  background: var(--surface);
  font-size: 10px;
}
.desktop-profile .small {
  font-size: 12px;
}
.topbar .avatar {
  width: 34px;
  height: 34px;
}
.content {
  padding: 28px;
  max-width: 1760px;
  width: 100%;
  min-width: 0;
}
.page-head,
.publishing-page-head {
  margin-bottom: 24px;
  gap: 16px;
}
.page-head p {
  font-size: 13px;
  margin-top: 6px;
  color: var(--muted);
}
.btn {
  min-height: 40px;
  border-radius: 10px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--foreground);
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
  line-height: 1.4;
  transition: background-color .15s;
}
.btn:hover {
  background: var(--button-hover);
  border-color: var(--border-strong);
}
.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: none;
}
.btn.primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.btn.secondary {
  background: var(--secondary);
  border-color: transparent;
}
.btn.small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}
.btn.danger,
.btn.red {
  background: var(--danger-bg);
  border-color: transparent;
  color: var(--danger);
}
.btn:disabled {
  cursor: not-allowed;
  opacity: .5;
}
.icon-btn {
  height: 36px;
  width: 36px;
  border-radius: 9px;
  color: var(--muted);
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--button-hover);
  color: var(--foreground);
}
.text-btn {
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  min-height: 32px;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.input,
input.input,
select.input,
.search-field,
.search-field input {
  font-size: 14px;
}
.input,
input.input,
select.input {
  min-height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 9px 12px;
  background: var(--surface);
  color: var(--foreground);
  box-shadow: none;
}
textarea.input {
  min-height: 100px;
  line-height: 1.6;
  resize: vertical;
}
.input:focus,
input.input:focus,
select.input:focus,
textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--ring-focus);
}
:is(button, a):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.search-field {
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  min-width: 0;
}
.search-field input {
  min-width: 0;
}
.form-grid {
  gap: 16px;
}
.form-grid label,
form > label {
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
}
input[type=checkbox],
input[type=radio] {
  accent-color: var(--primary);
}
.check-label {
  gap: 8px;
  line-height: 1.5;
}
.form-error {
  color: var(--danger);
  font-size: 12px;
}
.help-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.notice {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.6;
}
.toolbar {
  gap: 12px;
  margin-bottom: 20px;
  min-width: 0;
}
.tabs {
  gap: 4px;
  min-width: 0;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
  border: 1px solid transparent;
  border-radius: 8px;
  white-space: nowrap;
  font-weight: 500;
  color: var(--muted);
}
.tab:hover {
  background: var(--item-hover);
  color: var(--foreground);
}
.tab.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: transparent;
  font-weight: 500;
}
.badge,
.tag {
  font-size: 11px;
  border-radius: 6px;
  padding: 3px 7px;
  font-weight: 500;
  line-height: 1.5;
}
.avatar {
  font-family: var(--app-font);
  font-weight: 600;
}
.panel,
.campaign-card,
.connection-card,
.media-card,
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: none;
  min-width: 0;
}
.panel-head {
  padding: 20px 24px;
  border-color: var(--border);
}
.panel-head h2 {
  font-size: 16px;
}
.panel-body {
  padding: 24px;
}
.section-title {
  margin: 24px 0 12px;
}
.empty {
  padding: 56px 24px;
  gap: 12px;
  color: var(--muted);
}
.empty > svg {
  color: #94a89c;
  stroke-width: 1.4;
}
.empty h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--foreground);
}
.empty p {
  max-width: 330px;
  font-size: 13px;
  line-height: 1.7;
}
.empty .btn {
  margin-top: 8px;
}
.table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  max-width: 100%;
  overflow: auto;
}
table {
  font-size: 13px;
  border-collapse: collapse;
}
thead th {
  background: #f8faf9;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .02em;
  font-weight: 600;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-strong);
}
tbody td {
  padding: 14px 16px;
  border-color: var(--border);
  vertical-align: middle;
}
tbody tr:hover {
  background: var(--item-hover);
}
table .btn {
  min-height: 32px;
  font-size: 12px;
  padding: 6px 10px;
}
.orders-workspace {
  background: transparent;
  padding: 0;
  font-size: 13px;
}
.orders-top {
  margin-bottom: 20px;
  justify-content: space-between;
  align-items: center;
}
.orders-title h1 {
  font-size: 26px;
}
.orders-title p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.orders-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 0;
  overflow: clip;
}
.orders-view-tabs {
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  gap: 6px;
}
.orders-view-tabs .btn {
  border: 0;
  min-height: 34px;
  padding: 7px 10px;
  background: transparent;
  color: var(--muted);
}
.orders-view-tabs [aria-pressed=true] {
  background: var(--primary-light);
  color: var(--primary);
}
.orders-search-row {
  padding: 16px;
  gap: 8px;
}
.orders-search-row > .input {
  max-width: 640px;
}
.orders-search-row > small {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.orders-status-tabs {
  padding: 0 16px 12px;
  gap: 6px;
  scrollbar-width: none;
}
.orders-status-tabs .btn {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.orders-status-tabs .btn[aria-pressed=true] {
  color: var(--primary);
  background: var(--primary-light);
  border-color: transparent;
}
.orders-status-tabs small {
  font-size: 11px;
  background: var(--secondary);
  color: var(--muted);
}
.orders-status {
  border-radius: 6px;
  font-size: 11px;
  min-height: 28px;
  box-shadow: none;
}
.orders-grid-wrap {
  border-top: 1px solid var(--border);
}
.orders-grid th {
  background: #f8faf9;
}
.orders-grid td {
  padding-top: 14px;
  padding-bottom: 14px;
}
.orders-row-menu,
.orders-multiselect > div {
  border-color: var(--border);
  border-radius: 10px;
  box-shadow: var(--elevation-popover);
}
.overview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.overview-head p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.dashboard-stat {
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 0;
  color: var(--foreground);
}
.dashboard-stat:hover {
  background: var(--item-hover);
}
.dashboard-stat strong {
  font-size: 27px;
  font-weight: 600;
  line-height: 1.2;
}
.dashboard-stat span {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.dashboard-stat .stat-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 8px;
  margin-bottom: 2px;
}
.dashboard-stat .stat-icon svg {
  width: 16px;
  height: 16px;
}
.dashboard-stat[data-route=dashboard-failed] .stat-icon {
  background: var(--danger-bg);
  color: var(--danger);
}
.dashboard-stat[data-route=dashboard-messages] .stat-icon,
.dashboard-stat[data-route=dashboard-comments] .stat-icon {
  background: var(--warning-bg);
  color: var(--warning);
}
.learner-cycle-panel {
  margin-bottom: 24px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.learner-cycle-values {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 0 16px 16px;
}
.learner-cycle-stat {
  padding: 14px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  gap: 10px;
}
.learner-cycle-stat:hover {
  background: var(--item-hover);
  border-color: transparent;
}
.learner-cycle-stat strong {
  font-size: 22px;
  font-weight: 600;
}
.learner-cycle-stat small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.cycle-glyph {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--background);
  font-size: 17px;
}
.dashboard-upcoming {
  margin-bottom: 24px;
}
.dashboard-three-days {
  gap: 0;
  padding: 0 8px 16px;
}
.dashboard-day {
  padding: 0 16px;
  min-width: 0;
}
.dashboard-day + .dashboard-day {
  border-left: 1px solid var(--border);
}
.dashboard-day h3 {
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
}
.dashboard-event {
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.5;
  min-width: 0;
}
.dashboard-event span {
  font-size: 12px;
}
.dashboard-content-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  gap: 0;
  padding: 4px 16px;
}
.dashboard-content-list > button {
  padding: 16px 8px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  text-align: left;
  min-width: 0;
}
.dashboard-content-list > button:hover {
  background: var(--item-hover);
}
.health-chart {
  background: var(--background);
  border: 0;
  border-radius: 10px;
  padding: 16px;
}
.system-health-panel {
  margin-top: 24px;
}
.health-meta {
  font-size: 11px;
  line-height: 1.6;
}
.content-grid {
  gap: 16px;
}
.content-date-group {
  margin-bottom: 28px;
}
.content-date-heading {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.card-cover {
  background: var(--background);
}
.content-grid-portrait .content-card > .card-cover {
  height: auto;
  aspect-ratio: 9 / 16;
}
.content-grid-portrait .content-card > .card-cover > .card-cover {
  position: absolute;
  inset: 0;
  height: 100%;
}
.content-grid-portrait .card-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.content-cover-toolbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  color: white;
  background: linear-gradient(#0009, transparent);
}
.content-cover-toolbar .social-stack { flex-shrink: 0; }
.content-cover-toolbar .badge {
  position: static;
  min-width: 0;
  font-size: 10px;
  padding: 3px 5px;
}
.content-cover-toolbar .badge.draft { background: #fff1d6; color: #754500; }
.content-cover-toolbar .badge.scheduled { background: #dceaff; color: #174c9d; }
.content-cover-toolbar .badge.published,.content-cover-toolbar .badge.manually_confirmed { background: #d9f3e4; color: #145c38; }
.content-cover-toolbar .badge.failed,.content-cover-toolbar .badge.blocked,.content-cover-toolbar .badge.unknown { background: #ffe0e4; color: #9a2038; }
.content-cover-toolbar .badge.demo_published { background: #eee2ff; color: #63379a; }
.content-cover-time { position: absolute; right: 8px; bottom: 8px; z-index: 1; max-width: calc(100% - 16px); padding: 4px 6px; border-radius: 4px; background: #13251dcc; color: white; font-size: 11px; }
.content-cover-actions { display: flex; margin-left: auto; flex-shrink: 0; }
.content-cover-actions button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}
.content-cover-actions button:hover { color: #d6f1e4; }
.content-cover-actions button:focus-visible { outline: 2px solid white; outline-offset: -2px; }
.content-card-compact .card-info h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 0;
  margin-bottom: 6px;
}
.content-card-time { text-align: right; font-size: 11px; color: var(--muted); }
.content-card-warning { margin: 4px 0 0; color: #92400e; font-size: 11px; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.library-page-head { flex-wrap: nowrap; justify-content: flex-start; gap: 16px; }
.library-header-actions { display: flex; align-items: center; gap: 8px; }
.library-header-actions button,.library-pagination button {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 0; padding: 0; background: transparent; color: var(--primary); cursor: pointer;
}
.library-header-actions button:hover,.library-pagination button:hover { color: var(--text); }
.library-pagination button:disabled { opacity: .3; cursor: default; }
.library-header-actions button:focus-visible,.library-pagination button:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.library-list-toolbar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 12px 0 16px; }
.library-list-toolbar > .library-pagination { margin: 0; min-height: 40px; }
.library-list-toolbar > .library-page-head { margin: 0; flex: 0 0 auto; }
.library-mobile-search { display: none !important; }
.library-list-toolbar .content-local-search { display: none; }
.library-list-toolbar .content-local-search.is-open { display: block; flex-basis: 100%; }
.library-filters { display: flex; align-items: flex-end; flex: 1 1 620px; min-width: 0; gap: 12px; flex-wrap: wrap; margin: 0; }
.library-picker { position: relative; min-width: 180px; max-width: 100%; margin: 0; padding: 0; border: 0; background: transparent; }
.library-picker summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; list-style: none; font-size: 13px; }
.library-picker summary::-webkit-details-marker { display: none; }
.library-picker-options { position: absolute; top: calc(100% + 5px); left: 0; z-index: 10; min-width: 100%; width: max-content; max-width: min(320px,80vw); max-height: 300px; overflow-y: auto; padding: 8px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px #0001; }
.library-picker-options label { display: flex; align-items: center; gap: 8px; padding: 9px 8px; font-size: 13px; cursor: pointer; }
.library-picker-options input { accent-color: var(--primary); }
.library-date { position: relative; display: grid; gap: 5px; font-size: 11px; color: var(--muted); }
.library-picker summary { height: 40px; min-height: 40px; margin: 0; box-sizing: border-box; }
.library-month { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; width: min(280px,calc(100vw - 40px)); background: white; border: 1px solid var(--line); border-radius: 10px; padding: 10px; box-shadow: 0 8px 24px #0002; color: var(--text); }
.library-date:last-of-type .library-month { left: auto; right: 0; }
.library-month-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 13px; }
.library-month button { border: 0; background: transparent; color: inherit; padding: 0; min-width: 32px; height: 32px; cursor: pointer; border-radius: 5px; }
.library-month-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 2px; text-align: center; }
.library-month-grid small { padding: 5px 0; color: var(--muted); }
.library-month button:hover { background: #e8f2ed; }
.library-month button[aria-pressed=true] { background: var(--primary); color: white; }
.library-month button.today { box-shadow: inset 0 0 0 1px var(--primary); }
.library-month button.other-month { color: var(--muted); }
.library-month button:disabled { opacity: .25; cursor: default; }
.library-history-sort { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.library-date input { width: 118px; min-height: 40px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--text); font: inherit; font-size: 13px; }
.library-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 2px; margin: 8px 0; }
.library-pagination span { color: var(--muted); font-size: 12px; margin-right: 8px; }
.library-results { grid-template-columns: repeat(4,minmax(0,1fr)); }
@media(max-width:980px){.library-results{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.library-results{grid-template-columns:minmax(0,1fr);}.library-filters{flex-basis:100%;}.library-list-toolbar>.library-pagination{margin-left:auto;}.library-filters .library-picker{flex:1;min-width:140px;}.library-picker summary{font-size:12px;white-space:nowrap;}.library-filters .content-local-search{flex-basis:100%;}.library-filters .search-field{width:100%;}}
.publication-icon {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  padding: 0; border: 0; border-radius: 0; background: transparent;
  color: var(--primary); cursor: pointer; text-decoration: none;
}
.publication-icon.danger { color: #b72b45; }
.publication-icon:hover { opacity: .7; }
.publication-icon:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; }
.published-destinations { display: grid; gap: 10px; }
.published-destinations > a,.published-destinations > div { display: flex; align-items: center; gap: 10px; padding: 12px; color: var(--primary); text-decoration: none; border-bottom: 1px solid var(--line); }
.published-destinations > a:hover { background: #edf5f0; }
.copy-page-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.copy-page-toolbar .library-page-head,.copy-page-toolbar .copy-mode-tabs { margin: 0; width: auto; flex: 0 0 auto; }
.copy-page-toolbar .copy-mode-tabs { display: flex; gap: 12px; padding: 0; flex-wrap: wrap; }
.copy-page-toolbar .copy-mode-tabs button { flex: 0 0 auto; min-width: 0; padding: 6px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--muted); font-size: 13px; }
.copy-page-toolbar .copy-mode-tabs button[aria-selected=true] { color: var(--primary); box-shadow: inset 0 -2px var(--primary); font-weight: 650; }
.auto-campaign-title,#auto-plan-rows .auto-section-head h3 { display: flex; align-items: center; gap: 6px; }
.auto-heading-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--primary); cursor: pointer; }
.auto-heading-icon:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.new-composer .publish-editor { padding-top: 16px; }
.new-composer .publish-section { margin-top: 14px; }
.composer-channel-picker { position: relative; padding: 0; border: 0; background: transparent; }
.composer-channel-picker summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; list-style: none; }
.composer-channel-picker summary::-webkit-details-marker { display: none; }
.composer-channel-options { position: absolute; top: calc(100% + 4px); inset-inline: 0; z-index: 5; max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: white; box-shadow: 0 8px 24px #0001; }
.composer-channel-options label { display: flex; align-items: center; gap: 8px; padding: 10px 6px; cursor: pointer; }
.composer-channel-options input { accent-color: var(--primary); }
.composer-character-count { margin: -4px 0 14px; text-align: right; color: var(--muted); font-size: 11px; }
.composer-character-count.over-limit { color: #b4233c; font-weight: 600; }
.composer-media-actions { display: flex; align-items: center; gap: 8px; }
.composer-media-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--primary); cursor: pointer; }
.composer-library { max-height: 260px; overflow-y: auto; }
.new-composer .publish-actions { gap: 10px; flex-wrap: wrap; }
.new-composer .publish-preview-pane { padding-top: 16px; }
@media(max-width:600px){.copy-page-toolbar{gap:8px;}.copy-page-toolbar .library-header-actions button{width:28px;}.copy-page-toolbar .copy-mode-tabs{gap:10px;}.copy-page-toolbar .copy-mode-tabs button{font-size:12px;}}
.card-cover[data-action="open-published-content"]:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
@media(max-width:600px){
  .library-list-toolbar { gap: 8px; margin-top: 0; }
  .library-list-toolbar .library-filters { display: contents; }
  .library-header-actions { gap: 0; }
  .library-header-actions button { width: 32px; height: 36px; }
  .library-mobile-search { display: inline-grid !important; }
  .library-list-toolbar .library-date input { width: 88px; }
  .library-list-toolbar .library-picker { flex: 1 0 130px; min-width: 130px; }
  .library-list-toolbar .library-pagination { flex-basis: 100%; min-height: 28px; }
  .library-list-toolbar .library-pagination button { width: 30px; height: 28px; }
  .library-results-mobile { display: grid; gap: 8px; --swipe-card-width: clamp(80px,calc((100svh - 360px) * .16),112px); }
  .library-swipe-row { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; padding-bottom: 3px; }
  .library-swipe-row .content-card { flex: 0 0 var(--swipe-card-width); min-width: 0; scroll-snap-align: start; border-radius: 7px; }
  .library-swipe-row .content-card:hover { transform: none; }
  .library-swipe-row .card-info { padding: 4px; }
  .library-swipe-row .card-info h3 { font-size: 10px; line-height: 12px; height: 24px; margin: 0; }
  .library-swipe-row .content-card-warning { font-size: 9px; line-height: 11px; -webkit-line-clamp: 2; }
  .library-swipe-row .content-cover-toolbar { padding: 3px; gap: 2px; flex-wrap: wrap; }
  .library-swipe-row .content-cover-toolbar .badge { font-size: 7px; padding: 2px; }
  .library-swipe-row .social-stack { gap: 1px; }
  .library-swipe-row .social-stack .social { width: 12px; height: 12px; font-size: 8px; }
  .library-swipe-row .content-cover-actions { margin-left: auto; }
  .library-swipe-row .content-cover-actions button { width: 22px; height: 22px; }
  .library-swipe-row .content-cover-actions svg { width: 12px; height: 12px; }
  .library-swipe-row .content-cover-time { right: 3px; bottom: 3px; max-width: calc(100% - 6px); padding: 2px; font-size: 7px; }
}
.card-info {
  padding: 16px;
}
.card-info h3 {
  font-size: 14px;
  line-height: 1.6;
}
.publishing-toolbar {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-strong);
}
.publishing-list-head {
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.connection-grid {
  gap: 16px;
}
.connection-card,
.campaign-card {
  padding: 24px;
}
.media-grid {
  gap: 16px;
}
.media-card > div {
  padding: 16px;
}
.calendar-grid {
  background: var(--surface);
  border-radius: 12px;
  overflow: clip;
  border-color: var(--border-strong);
}
.calendar-day {
  border-color: var(--border);
  min-height: 130px;
  padding: 10px;
}
.calendar-day.today {
  background: var(--primary-light);
}
.calendar-day .day-num {
  font-size: 12px;
}
.calendar-event {
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 11px;
}
.calendar-head {
  margin-bottom: 20px;
}
.settings-tabs {
  gap: 8px;
  border-color: var(--border);
}
.content.inbox-page {
  height: calc(100dvh - 68px);
  padding: 16px;
  max-width: none;
  overflow: hidden;
}
.content.inbox-page .inbox-layout {
  grid-template-columns: 320px minmax(0, 1fr);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.conversation-list {
  background: var(--surface);
  border-color: var(--border);
}
.conversation-item {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  min-width: 0;
}
.conversation-item:hover {
  background: var(--item-hover);
}
.conversation-item.active {
  background: var(--primary-light);
  border-left-color: var(--primary);
}
.conversation-item h3 {
  font-size: 13px;
  line-height: 1.5;
}
.conversation-item p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.conversation-item small {
  font-size: 10px;
}
.conversation-item .avatar {
  width: 40px;
  height: 40px;
  font-size: 12px;
}
.conversation-search {
  padding: 12px;
  background: var(--surface);
  border-color: var(--border);
}
.conversation-list .tabs {
  padding: 12px 12px 0;
  gap: 0;
}
.conversation-list .tab {
  padding: 8px 9px;
  font-size: 11px;
  min-height: 34px;
}
.chat-head {
  min-height: 72px;
  padding: 12px 20px;
  background: var(--surface);
  border-color: var(--border);
}
.chat-head h3 {
  font-size: 14px;
}
.chat-head small {
  font-size: 11px;
  color: var(--muted);
}
.chat-messages {
  background: #f4f6f5;
  padding: 24px;
}
.bubble {
  font-size: 14px;
  line-height: 1.65;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: none;
  border: 1px solid #e8ece9;
}
.bubble-wrap.out .bubble {
  background: #e6f1e8;
  border-color: #dde9df;
}
.chat-compose {
  background: var(--surface);
  padding: 12px 16px;
  border-color: var(--border);
}
.chat-compose textarea {
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--background);
  color: var(--foreground);
  font-size: 14px;
  line-height: 1.6;
}
.chat-quick-buttons {
  gap: 6px;
}
.chat-quick-buttons button {
  border-radius: 6px;
}
.comment-post-context {
  border-radius: 10px;
  box-shadow: none;
}
.comment-tag-filter > summary {
  font-size: 12px;
}
.conversation-toolbar {
  background: var(--surface);
}
.modal-backdrop {
  background: #14261e66;
  backdrop-filter: blur(3px);
  padding: 24px;
}
.modal {
  border-radius: 16px;
  box-shadow: var(--elevation-modal);
  border: 1px solid #ffffff80;
  background: var(--surface);
  max-height: calc(100dvh - 48px);
}
.modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.modal-head h2 {
  font-size: 18px;
  font-weight: 600;
}
.modal-body {
  padding: 24px;
  background: var(--surface);
  min-height: 0;
  scroll-padding-block: 16px;
}
.modal-footer {
  background: var(--surface);
  border-color: var(--border);
  padding: 16px 24px;
  gap: 10px;
  flex-shrink: 0;
}
.modal-footer .btn {
  min-height: 40px;
}
.modal-head .icon-btn {
  background: var(--background);
}
.toast {
  border-radius: 12px;
  box-shadow: var(--elevation-popover);
  font-size: 13px;
}
.login-card,
.auth-card,
.setup-card {
  border-radius: 16px;
  box-shadow: var(--elevation-modal);
  border-color: var(--border);
  background: var(--surface);
}
.login-card input,
.auth-card input {
  font-size: 16px;
  min-height: 48px;
}
.login-card h1,
.auth-card h1 {
  font-size: 26px;
}
.order-editor-modal {
  border-radius: 16px;
}
.order-editor-section {
  border-color: var(--border);
  border-radius: 12px;
  box-shadow: none;
}
.order-editor-footer {
  background: var(--surface);
  border-color: var(--border);
}
* {
  --scrollbar-thumb:transparent;
}
*:hover {
  --scrollbar-thumb:color-mix(in srgb,var(--foreground) 16%,transparent);
}
.is-scrolling {
  --scrollbar-thumb:color-mix(in srgb,var(--foreground) 28%,transparent);
}
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--foreground) 40%, transparent);
}
@supports not selector(::-webkit-scrollbar) {
  * {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
  }
  *:hover {
    scrollbar-color: color-mix(in srgb, var(--foreground) 18%, transparent) transparent;
  }
  .is-scrolling {
    scrollbar-color: color-mix(in srgb, var(--foreground) 28%, transparent) transparent;
  }
}
@media (min-width: 1600px) {
  .content {
    padding: 32px 40px;
  }
  .topbar {
    padding-inline: 40px;
  }
  .dashboard-stat {
    padding: 20px;
  }
  .content.inbox-page {
    padding: 20px 24px;
  }
}
@media (min-width: 901px) and (max-width: 1200px) {
  :root {
    --nav-width:208px;
  }
  .sidebar-collapsed {
    --nav-width:76px;
  }
  .sidebar .brand-word {
    font-size: 15px;
  }
  .topbar {
    padding: 0 24px;
  }
  .content {
    padding: 24px;
  }
  .dashboard-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .content.inbox-page .inbox-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .layout,
  .sidebar-collapsed .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .main {
    grid-column: 1;
  }
  .sidebar,
  .sidebar-collapsed .sidebar {
    width: 236px;
    max-width: calc(100vw - 48px);
    padding: 16px 12px;
  }
  .sidebar-collapsed .brand-copy {
    display: grid;
  }
  .sidebar-collapsed .sidebar .brand {
    justify-content: flex-start;
  }
  .sidebar-toggle {
    display: none;
  }
  .topbar,
  .topbar.hidden-on-scroll {
    height: 64px;
    padding: 0 16px;
    gap: 8px;
  }
  .content {
    padding: 20px 16px 92px;
  }
  .top-search {
    display: none;
  }
  .breadcrumb {
    font-size: 13px;
    gap: 8px;
  }
  .topbar #topbar-right {
    gap: 8px;
  }
  .topbar #topbar-right > .btn {
    font-size: 11px;
    padding: 6px 10px;
    min-height: 34px;
  }
  .desktop-profile {
    display: none;
  }
  .page-head,
  .publishing-page-head {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .page-head h1,
  .publishing-page-head h1,
  .orders-title h1,
  h1 {
    font-size: 23px;
  }
  .overview-head {
    align-items: flex-start;
    margin-bottom: 20px;
  }
  .overview-head > .row {
    gap: 6px;
  }
  .overview-head .btn {
    padding: 8px 10px;
    font-size: 12px;
  }
  .dashboard-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .learner-cycle-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .panel-head,
  .panel-body {
    padding: 16px;
  }
  .content.inbox-page {
    height: calc(100dvh - 128px);
    padding: 0;
    overflow: hidden;
  }
  .content.inbox-page .inbox-layout {
    grid-template-columns: minmax(0, 1fr);
    border: 0;
    border-radius: 0;
  }
  .chat-head {
    min-height: 68px;
    padding: 10px 14px;
  }
  .chat-messages {
    padding: 16px;
  }
  .chat-compose {
    padding: 10px 12px;
  }
  .mobile-bottom {
    height: 64px;
    padding: 6px 10px max(6px, env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--border-strong);
    box-shadow: none;
  }
  .mobile-bottom button {
    color: var(--muted);
    font-size: 10px;
    gap: 4px;
  }
  .mobile-bottom button.active {
    color: var(--primary);
  }
  .mobile-bottom .new-button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary);
    margin-top: -4px;
    box-shadow: none;
  }
  .mobile-bottom button svg {
    width: 20px;
    height: 20px;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .modal {
    max-height: calc(100dvh - 24px);
    border-radius: 14px;
  }
  .modal-head {
    padding: 16px;
  }
  .modal-body {
    padding: 16px;
  }
  .modal-footer {
    padding: 12px 16px;
  }
  .orders-top {
    gap: 12px;
    flex-wrap: wrap;
  }
  .orders-title h1 {
    font-size: 23px;
  }
  .orders-top > .row {
    margin-left: auto;
  }
  .orders-view-tabs {
    padding: 10px;
  }
  .orders-search-row {
    padding: 12px;
  }
  .orders-search-row > .input {
    min-width: 0;
    flex-basis: 100%;
  }
  .orders-status-tabs {
    padding: 0 12px 12px;
  }
  .health-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calendar-day {
    min-height: 100px;
    padding: 6px;
  }
  .calendar-event {
    font-size: 10px;
    padding: 4px;
  }
  .connection-card,
  .campaign-card {
    padding: 16px;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 14px;
  }
  .input,
  input.input,
  select.input,
  .search-field {
    min-height: 44px;
  }
  .input,
  input.input,
  select.input,
  .search-field input,
  .chat-compose textarea,
  textarea {
    font-size: 16px;
  }
  .btn {
    min-height: 44px;
  }
  .btn.small,
  .orders-view-tabs .btn,
  .orders-status-tabs .btn {
    min-height: 34px;
  }
  .overview-head {
    flex-wrap: wrap;
  }
  .overview-head > .row {
    width: 100%;
  }
  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .dashboard-stat {
    padding: 16px;
    gap: 8px;
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .dashboard-stat .stat-icon {
    grid-row: 1/3;
    grid-column: 2;
    margin: 0;
    align-self: center;
    width: 34px;
    height: 34px;
  }
  .dashboard-stat strong {
    font-size: 25px;
  }
  .dashboard-stat span {
    font-size: 12px;
  }
  .dashboard-stat:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
  .learner-cycle-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 8px 12px;
  }
  .learner-cycle-stat {
    padding: 12px 8px;
  }
  .learner-cycle-stat strong {
    font-size: 20px;
  }
  .cycle-glyph {
    min-width: 28px;
    height: 28px;
    font-size: 15px;
  }
  .dashboard-three-days {
    grid-template-columns: 1fr;
    padding: 0 16px 16px;
    gap: 16px;
  }
  .dashboard-day {
    padding: 0;
  }
  .dashboard-day + .dashboard-day {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }
  .dashboard-content-list {
    grid-template-columns: 1fr;
    padding: 0 12px;
  }
  .dashboard-content-list > button {
    padding: 14px 4px;
  }
  .health-chart-grid {
    grid-template-columns: 1fr;
  }
  .system-health-panel .panel-head {
    align-items: flex-start;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .panel-head {
    gap: 12px;
    flex-wrap: wrap;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .toolbar .search-field {
    width: 100%;
  }
  .publishing-list-head .search-field {
    width: 100%;
  }
  .publishing-toolbar .tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .tab {
    font-size: 12px;
    min-height: 36px;
    padding: 8px 10px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .orders-top > .row {
    gap: 6px;
  }
  .orders-top .btn {
    padding: 7px 10px;
    font-size: 12px;
  }
  .orders-title {
    width: 100%;
  }
  .orders-view-tabs {
    gap: 4px;
    flex-wrap: wrap;
  }
  .orders-tools {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }
  .orders-search-row > .btn {
    padding: 7px 10px;
    font-size: 12px;
  }
  .orders-search-row > small {
    width: 100%;
    margin: 0;
  }
  .orders-status-tabs {
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .modal-footer .btn {
    min-height: 44px;
  }
  .modal-body .form-grid {
    grid-template-columns: 1fr;
  }
  .chat-head h3 {
    font-size: 14px;
  }
  .conversation-item {
    padding: 14px 16px;
  }
  .bubble {
    font-size: 15px;
    padding: 10px 14px;
  }
  .chat-head .row {
    gap: 8px;
  }
  .chat-head .icon-btn {
    width: 32px;
    height: 36px;
  }
  .chat-head > .row {
    min-width: 0;
  }
  .chat-head .grow {
    min-width: 0;
  }
  .calendar-grid {
    border-radius: 8px;
  }
  .calendar-day {
    padding: 4px;
    min-height: 88px;
  }
  .calendar-day .day-num {
    font-size: 11px;
  }
  .calendar-event {
    font-size: 10px;
    line-height: 1.35;
    word-break: break-word;
  }
  .page-head .row {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .empty {
    padding: 40px 20px;
  }
}
.learner-cycle-panel .panel-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.dashboard-event {
  display: grid;
  grid-template-columns: 16px auto minmax(0, 1fr);
  align-items: start;
  gap: 4px 6px;
  min-height: 70px;
  text-align: left;
}
.dashboard-event svg {
  margin-top: 3px;
}
.dashboard-event time {
  font-size: 12px;
}
.dashboard-event > span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5;
}
.dashboard-event > .schedule-state {
  grid-column: 2/-1;
  text-align: left;
  white-space: normal;
  font-size: 10px;
  font-weight: 500;
}
.dashboard-event:only-child {
  margin-bottom: 0;
}
.breadcrumb > a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  white-space: nowrap;
}
.breadcrumb > a:first-child {
  min-width: 32px;
  justify-content: center;
}
.keycap {
  color: var(--muted);
}
.avatar.peach {
  color: #81542f;
}
.avatar.lilac {
  color: #66507d;
}
.avatar.sage {
  color: #395b43;
}
.badge.scheduled {
  color: #43577e;
  background: #edf0fa;
}
.badge.demo_published,
.badge.demo {
  color: #765619;
  background: #faf2df;
}
.badge.draft,
.badge.bot-count {
  color: #53645a;
  background: var(--secondary);
}
.health-state.unknown,
.health-chart.unknown,
.health-meta,
.health-legend small,
.health-thresholds,
.health-thresholds span {
  color: var(--muted);
}
.health-chart.healthy {
  color: var(--success);
}
.health-chart.warning,
.health-legend .warning,
.health-state.warning,
.learner-cycle-stat.orange {
  color: var(--warning);
}
.health-chart.danger,
.health-state.danger {
  color: var(--danger);
}
.schedule-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 16px;
}
.schedule-legend span {
  font-size: 12px;
  min-width: 0;
}
.schedule-state,
.dashboard-event > .schedule-state {
  font-size: 11px;
}
.dashboard-content-list {
  gap: 4px;
}
.dashboard-content-list > button {
  border-radius: 8px;
}
.nav-item {
  margin-block: 2px;
  min-height: 40px;
}
.nav-item.active {
  margin-bottom: 4px;
}
.help-text {
  text-wrap: pretty;
}
.brand small,
.nav-label,
.health-meta,
.health-chart small,
.health-thresholds span,
.health-legend small {
  font-size: 12px;
}
@supports selector(::-webkit-scrollbar) {
  * {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
}
@media (max-width: 600px) {
  .learner-cycle-panel .panel-head {
    padding: 16px;
  }
  .dashboard-event {
    min-height: 64px;
  }
}
@media (max-width: 900px) {
  .mobile-bottom {
    align-items: center;
    justify-content: space-around;
  }
  .mobile-bottom > button {
    height: 48px;
    min-height: 48px;
    min-width: 48px;
    align-self: center;
    margin: 0;
    justify-content: center;
    font-size: 11px;
  }
  .mobile-bottom > .new-button {
    height: 44px;
    min-height: 44px;
    width: 44px;
    flex: 0 0 44px;
    margin: 0;
    transform: none;
    border-radius: 12px;
  }
  .topbar > .row:first-child {
    min-width: 0;
  }
  .topbar .breadcrumb {
    min-width: 0;
  }
  .topbar #topbar-right > .btn {
    font-size: 12px;
  }
  .schedule-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .breadcrumb > a:first-child,
  .breadcrumb > a:first-child + svg {
    display: none !important;
  }
  .breadcrumb > a:last-of-type {
    white-space: nowrap;
    font-size: 13px;
  }
  .topbar #topbar-right {
    gap: 4px;
  }
  .topbar .icon-btn {
    width: 32px;
  }
  .schedule-legend {
    grid-template-columns: 1fr 1fr;
  }
  .schedule-legend span {
    font-size: 11px;
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
.sidebar .brand small,
.desktop-profile .muted,
.notification-permission-prompt {
  font-size: 12px !important;
}
.orders-footer small {
  color: var(--muted);
  font-size: 12px;
}
.orders-status.status-draft {
  background: #087e82;
}
.shipping-orders.orders-dense th {
  background: #f8faf9;
  border-color: var(--border-strong);
}
.shipping-orders.orders-dense td {
  border-color: var(--border-strong);
}
.shipping-orders.orders-dense th .btn {
  min-width: 32px;
  min-height: 32px;
}
.orders-link,
.orders-copy-value {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  max-width: 100%;
}
.orders-view-tab [data-orders-action=remove-view],
.orders-view-tabs > [data-orders-action=new-view] {
  min-width: 32px;
  min-height: 32px;
}
.orders-status-tabs {
  mask-image:
    linear-gradient(
      to right,
      #000 0%,
      #000 calc(100% - 16px),
      transparent);
}
@media (min-width: 769px) {
  .shipping-orders.orders-dense [data-column=code] {
    position: sticky;
    left: 0;
    background: var(--surface);
    z-index: 2;
    box-shadow: 1px 0 0 var(--border);
  }
  .shipping-orders.orders-dense th[data-column=code] {
    z-index: 4;
    background: #f8faf9;
  }
}
@media (max-width: 768px) {
  .orders-table-scroll {
    overflow: visible;
    max-height: none;
    padding: 12px;
    background: var(--background);
  }
  .shipping-orders.orders-dense {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto;
  }
  .shipping-orders.orders-dense colgroup,
  .shipping-orders.orders-dense thead {
    display: none;
  }
  .shipping-orders.orders-dense tbody {
    display: grid;
    gap: 12px;
  }
  .shipping-orders.orders-dense tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    padding: 16px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: var(--surface);
  }
  .shipping-orders.orders-dense td {
    display: block;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    border: 0 !important;
    position: static !important;
    padding: 0 !important;
    overflow-wrap: anywhere;
    white-space: normal;
    box-shadow: none !important;
    background: transparent !important;
  }
  .shipping-orders.orders-dense td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 4px;
  }
  .shipping-orders.orders-dense td[data-column=code],
  .shipping-orders.orders-dense td[data-column=address],
  .shipping-orders.orders-dense td[data-column=product],
  .shipping-orders.orders-dense td[data-column=status],
  .shipping-orders.orders-dense td[colspan] {
    grid-column: 1/-1;
  }
  .shipping-orders.orders-dense .orders-status {
    min-height: 40px;
  }
  .orders-footer {
    gap: 16px;
    align-items: flex-start;
  }
  .orders-footer > div:first-child {
    line-height: 1.8;
  }
  .orders-footer small {
    display: block;
  }
  .orders-search-row > input {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }
  .orders-title p {
    font-size: 12px;
  }
  .orders-status-tabs {
    padding-bottom: 12px;
  }
  .orders-status-tabs .btn {
    min-height: 40px;
  }
  .mobile-bottom > button {
    font-size: 12px;
  }
  .orders-workspace .orders-top {
    gap: 16px;
  }
}
.nav-item {
  margin-block: 4px;
}
.schedule-state,
.dashboard-event > .schedule-state,
.schedule-legend span {
  font-size: 12px;
}
.cycle-glyph {
  color: var(--primary);
}
#topbar-right > button[title="B\1eadt th\f4ng b\e1o tr\ean thi\1ebft b\1ecb  n\e0y"] {
  font-size: 12px !important;
}
.shipping-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.shipping-filters > .input {
  flex: 1 1 150px;
  min-width: 0;
}
.shipping-filters > input.input {
  flex: 2 1 240px;
}
.notice,
.alert,
.connection-card p,
.settings-panel p {
  overflow-wrap: anywhere;
}
.settings-tabs {
  max-width: 100%;
  overflow-x: auto;
  flex-wrap: nowrap;
}
.table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}
@media (max-width: 900px) {
  .topbar:has(#phacdo-portal-target) {
    height: auto;
    min-height: 68px;
    display: flex;
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 8px;
  }
  .topbar:has(#phacdo-portal-target) > #topbar-right {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }
  .topbar #phacdo-portal-target {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    min-width: max-content;
  }
  .topbar #phacdo-portal-target button {
    flex-shrink: 0;
  }
  .breadcrumb #phacdo-breadcrumb-portal {
    display: none;
  }
}
.notice {
  display: block;
  line-height: 1.7;
}
.notice > svg:first-child {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
}
.notice .mono {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.connection-card .row.wrap {
  gap: 8px;
}
.orders-tools .btn,
.orders-footer .btn {
  min-width: 32px;
}
.topbar #topbar-right > .icon-btn {
  width: 40px;
  height: 40px;
}
.topbar #topbar-right > button.btn {
  height: 40px;
  min-height: 40px;
}
.shipping-orders.orders-dense tr {
  border-color: var(--border);
}
@media (max-width: 900px) {
  .topbar #topbar-right > .icon-btn {
    width: 36px;
    height: 36px;
  }
  .topbar #topbar-right > button.btn {
    height: 36px;
    min-height: 36px;
  }
}
.learner-cycle-stat small,
.badge {
  font-size: 12px;
}
.content-local-search {
  display: none;
}
@media (max-width: 900px) {
  .content-local-search {
    display: block;
    width: 100%;
  }
}
[data-page=dashboard] .overview-head {
  margin-bottom: 16px;
}
[data-page=dashboard] .overview-head h1 {
  font-size: 24px;
}
[data-page=dashboard] .overview-head p {
  margin-top: 4px;
  font-size: 12px;
}
[data-page=dashboard] .dashboard-stats {
  gap: 8px;
  margin-bottom: 16px;
}
[data-page=dashboard] .dashboard-stat {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 4px 8px;
  padding: 12px;
  align-items: center;
  min-height: 80px;
}
[data-page=dashboard] .dashboard-stat .stat-icon {
  grid-column: 1;
  grid-row: 1/3;
  width: 28px;
  height: 28px;
  margin: 0;
}
[data-page=dashboard] .dashboard-stat strong {
  font-size: 23px;
  grid-column: 2;
}
[data-page=dashboard] .dashboard-stat > span:last-child {
  grid-column: 2;
  font-size: 12px;
  line-height: 1.4;
}
[data-page=dashboard] .learner-cycle-panel {
  margin-bottom: 16px;
}
[data-page=dashboard] .learner-cycle-panel .panel-head {
  padding: 12px 16px;
  margin: 0;
}
[data-page=dashboard] .learner-cycle-panel h2 {
  font-size: 15px;
}
[data-page=dashboard] .learner-cycle-values {
  padding: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}
[data-page=dashboard] .learner-cycle-stat {
  padding: 8px;
  gap: 8px;
  min-height: 56px;
}
[data-page=dashboard] .learner-cycle-stat strong {
  font-size: 20px;
  line-height: 1.2;
}
[data-page=dashboard] .cycle-glyph {
  min-width: 26px;
  width: 26px;
  height: 26px;
  font-size: 15px;
}
@media (min-width: 1500px) {
  [data-page=dashboard] .learner-cycle-values {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
  [data-page=dashboard] .learner-cycle-stat {
    padding: 10px 6px;
  }
  [data-page=dashboard] .learner-cycle-stat strong {
    font-size: 18px;
  }
}
@media (max-width: 900px) {
  [data-page=dashboard] .dashboard-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  [data-page=dashboard] .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  [data-page=dashboard] .dashboard-stat:last-child:nth-child(odd) {
    grid-column: auto;
  }
  [data-page=dashboard] .learner-cycle-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  [data-page=dashboard] .learner-cycle-stat strong {
    font-size: 18px;
  }
  [data-page=dashboard] .learner-cycle-panel .panel-head {
    gap: 4px;
  }
}
.social.zalo_personal,
.social.zalo_oa {
  background: #146bc3 !important;
  color: #fff !important;
}
.social.instagram {
  background: #a44274;
  color: #fff;
}
.social.blogger {
  background: #a95615;
  color: #fff;
}
.notice {
  color: #67582d;
}
.badge.connected {
  color: #35632d;
  background: #eaf3e7;
}
.content.inbox-page .chat-filter-populated {
  color: #a74c0c !important;
}
.chat-messages > .chat-day {
  background: #616b76;
  color: #fff;
}
.bubble time,
.bubble-wrap time {
  color: #59675f;
}
.chat-topic-select {
  color: #43584a;
}
.chat-tag-popup [data-header-tag] {
  opacity: 1;
  color: #24372f;
}
.chat-tag-popup [data-header-tag] > span:nth-child(2) {
  color: inherit;
}
.chat-tag-popup [data-header-tag].assigned {
  color: var(--tag-ink,#24372f);
}
.stock-low {
  color: #80531e;
}
.bar > span {
  color: #193b2c;
}
.calendar-cell.outside {
  opacity: 1;
}
.calendar-cell.outside .calendar-date {
  color: #63715e;
}
.tag:not([style*=color]) {
  color: #4a603b;
}
.badge.active {
  color: #405c45;
}
.inbox-topbar-tools .tab.chat-filter-populated {
  color: #a74c0c !important;
}
.dashboard-event>span{overflow:hidden;grid-column:3;grid-row:1;max-height:3em}
.dashboard-event>.schedule-state{grid-column:2/-1;grid-row:2;margin-left:0;max-width:none;line-height:1.4}
/* Keep the two chat panes side by side above the phone breakpoint.
   The 900px shell breakpoint must not stack two visible panes. */
@media (min-width:761px) {
  .content.inbox-page .inbox-layout { display:grid; grid-template-columns:minmax(230px,30%) minmax(0,1fr); grid-template-rows:minmax(0,1fr); min-height:0; }
  .content.inbox-page .conversation-list, .content.inbox-page .chat { min-height:0; height:100%; }
}
@media (max-width:760px), (hover:none) and (pointer:coarse) and (max-width:1400px) {
  .main:has(>.inbox-topbar)>.content.inbox-page { height:calc(100dvh - 52px - 76px - env(safe-area-inset-bottom)); }
  .content.inbox-page { height:calc(100dvh - 68px - 76px - env(safe-area-inset-bottom)); padding:0; min-height:0; }
  .content.inbox-page .inbox-layout { height:100%; min-height:0; }
  .content.inbox-page .chat-compose { flex-shrink:0; }
  .content.inbox-page .chat-messages { min-height:0; }
}
@media (max-width:760px) {
  .content.inbox-page .inbox-layout { display:block; }
  .content.inbox-page .inbox-layout.has-selection .conversation-list { display:none; }
  .content.inbox-page .inbox-layout:not(.has-selection) .chat { display:none; }
}
/* Calendar cards share identity, state and a compact platform strip. */
.dashboard-three-days.dashboard-two-days{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-day-heading{display:flex;align-items:center;gap:6px;min-height:32px}
.dashboard-day-heading .icon-btn{width:32px;height:32px;flex-shrink:0;padding:5px}
.dashboard-day-heading>span{min-width:0}
.calendar-card.dashboard-event,.calendar-cell>.calendar-card{display:block;min-width:0;text-align:left}
.calendar-card .calendar-card-meta{display:flex;align-items:center;gap:6px;min-width:0;overflow:visible;white-space:normal;font-size:11px}
.calendar-card .calendar-card-platforms{display:flex;align-items:center;gap:3px;flex-wrap:wrap;min-width:0;overflow:visible;margin-left:auto}
.calendar-card .calendar-card-platforms .social{display:inline-flex;align-items:center;justify-content:center;flex:0 0 16px;width:16px;height:16px;min-width:16px;font-size:10px;line-height:1;border-radius:4px;overflow:hidden}
.calendar-card .calendar-card-meta>svg{flex:0 0 14px}
.calendar-card .calendar-card-title,.calendar-cell>.calendar-card .calendar-card-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;margin:5px 0;font-size:12px;line-height:1.5;font-weight:500}
.calendar-card.dashboard-event>.schedule-state{display:block;max-width:none;margin:0;padding:0;text-align:left}
.calendar-day-more{display:block;margin:8px 0 0;padding:5px 2px;font-size:12px;min-height:32px;white-space:normal;text-align:left}
@media(max-width:600px){.dashboard-three-days.dashboard-two-days{grid-template-columns:1fr}.dashboard-two-days .dashboard-day+.dashboard-day{border-left:0}}
.calendar-actions>.calendar-filter:first-child .calendar-filter-options{left:0;right:auto;max-width:min(260px,calc(100vw - 32px))}

/* Video lists use image covers; decoding begins only after Play. */
.media-video-cover{position:relative;display:block;width:100%;padding:0;border:0;background:#e9f0ed;cursor:pointer;min-height:100px;overflow:hidden;border-radius:inherit}.media-video-cover img{display:block;width:100%;height:100%;max-height:320px;object-fit:cover}.media-video-cover>span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:8px 12px;border-radius:20px;background:#ffffffeb;color:#28664f;white-space:nowrap}

.comment-video-shell{width:100%}.comment-video-launch{position:relative;display:grid;place-items:center;width:100%;min-height:180px;aspect-ratio:16/9;padding:0;border:0;background:#e9edeb;cursor:pointer;overflow:hidden;border-radius:8px}.comment-video-launch img{width:100%;height:100%;object-fit:contain;position:absolute;inset:0}.comment-video-launch>span{position:relative;display:grid;place-items:center;background:#244f40;color:#fff;border-radius:50%;width:56px;height:56px}.comment-video-shell video,.comment-video-shell iframe{width:100%;max-height:420px;aspect-ratio:16/9;border:0}
/* Shared media folders and picker: existing brand tokens, compact square covers. */
.media-browser{display:grid;grid-template-columns:210px minmax(0,1fr);gap:20px;min-width:0}.media-library-browser{margin-top:20px}.media-folder-list{display:flex;flex-direction:column;gap:12px;min-width:0}.media-folder-card{position:relative;display:flex;align-items:center;gap:10px;min-height:64px;padding:16px 12px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff);color:var(--ink);text-align:left;cursor:pointer;flex-shrink:0;margin-top:7px}.media-folder-card:before{content:'';position:absolute;width:38px;height:8px;left:12px;top:-8px;border:1px solid var(--line);border-bottom:0;border-radius:5px 5px 0 0;background:inherit}.media-folder-card.active{background:var(--primary-soft,#e8f2ed);color:var(--primary);border-color:var(--primary)}.media-folder-card span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;font-size:13px}.media-folder-card small{font-size:12px;opacity:.8}.media-browser-content{min-width:0}.media-browser-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}.media-browser-toolbar input{flex:1;min-width:160px}.media-browser-toolbar select{width:auto;max-width:100%}.media-file-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500}.media-picker-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(116px,1fr))!important;gap:14px!important;max-height:60vh;overflow-y:auto;align-content:start}.media-picker-item{position:relative;min-width:0}.media-picker-item .chat-library-tile{position:relative;width:100%;aspect-ratio:1;padding:0;border-radius:10px;overflow:hidden;border:2px solid transparent;background:var(--surface,#fff)}.media-picker-item .chat-library-tile img{width:100%;height:100%;object-fit:cover}.media-picker-item .chat-library-tile[aria-pressed=true]{border-color:var(--primary)}.media-picker-item .chat-library-check{top:7px;right:7px;bottom:auto;left:auto;border-radius:50%;width:22px;height:22px}.media-picker-item .media-file-name{margin-top:6px}.media-tile-favorite{position:absolute;top:7px;left:7px;border:0;border-radius:50%;background:#ffffffe8;color:var(--muted);padding:5px;display:grid;place-items:center;cursor:pointer}.media-tile-favorite.active{color:#c1326b}.media-tile-favorite.active svg{fill:currentColor}.media-date-range{margin-bottom:12px}.media-date-range label{font-size:12px}.media-library-browser .media-card>img,.media-library-browser .media-video-cover{aspect-ratio:1;width:100%;height:auto;object-fit:cover}.media-library-browser .media-card>div>p{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.media-browser .media-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}.chat-library-footer{display:flex;gap:12px;justify-content:space-between;align-items:center;padding-top:12px}.chat-library-footer input[type=file]{max-width:210px}.media-library-browser .media-drop{padding:12px;font-size:13px}
@media(max-width:760px){.media-browser{grid-template-columns:minmax(0,1fr);gap:14px}.media-folder-list{flex-direction:row;overflow-x:auto;max-width:100%;padding-top:8px;padding-bottom:4px}.media-folder-card{width:125px;min-height:60px;flex-wrap:wrap;gap:6px;padding:10px}.media-folder-card span{font-size:12px;flex-basis:80px}.media-folder-card small{margin-left:auto}.media-browser-toolbar{gap:8px}.media-browser-toolbar input{flex-basis:100%;min-width:0}.media-browser-toolbar select{flex:1;min-width:0;font-size:12px}.media-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;max-height:52dvh}.media-file-name{font-size:11px}.media-browser .media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-library-footer{flex-wrap:wrap}.chat-library-footer .btn{font-size:12px}.chat-library-footer input[type=file]{width:160px}.media-tile-favorite{padding:3px;top:5px;left:5px}.media-picker-item .chat-library-check{width:18px;height:18px;top:5px;right:5px}}

.media-browser-toolbar input,.media-browser-toolbar select{font:inherit;font-size:13px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);color:var(--ink)}.media-folder-list::-webkit-scrollbar,.media-picker-grid::-webkit-scrollbar{width:6px;height:6px}.media-folder-list::-webkit-scrollbar-thumb,.media-picker-grid::-webkit-scrollbar-thumb{background:#b7c5be;border-radius:6px}.media-folder-list,.media-picker-grid{scrollbar-width:thin;scrollbar-color:#b7c5be transparent}
/* Content library: six compact portrait cards on desktop/unfolded screens. */
@media(min-width:601px){.content-grid.library-results{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.library-results .content-card{min-width:0}.library-results .content-cover-toolbar{padding:4px;gap:3px;flex-wrap:wrap}.library-results .content-cover-toolbar .badge{font-size:9px;padding:3px}.library-results .content-cover-actions button{width:24px;height:26px}.library-results .content-cover-actions svg{width:14px;height:14px}.library-results .content-cover-toolbar .social{width:16px;height:16px;font-size:10px}.library-results .content-cover-time{font-size:9px;right:4px;bottom:4px;max-width:calc(100% - 8px);padding:3px 4px}}

/* Minimal media browser; keep controls reachable without framed cards. */
.media-folder-list{gap:2px}.media-folder-card,.media-folder-card.active{min-height:44px;margin:0;padding:8px 4px;border:0;border-radius:0;background:transparent;box-shadow:none;flex-wrap:nowrap}.media-folder-card:before{display:none}.media-folder-card.active span{color:var(--primary);font-weight:700}.media-folder-card:not(.active) span{font-weight:400}.media-folder-card svg{width:18px;height:18px}.media-folder-list>.btn{border:0;background:transparent;text-align:left;justify-content:flex-start;font-size:12px}
.media-picker-item .chat-library-tile,.media-picker-item .chat-library-tile[aria-pressed=true]{border:0;box-shadow:none;background:transparent;border-radius:6px}.media-picker-item .chat-library-tile:focus-visible,.media-action:focus-visible,.media-folder-card:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.media-picker-item .chat-library-check{background:var(--primary);color:white}.media-action{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:40px;min-height:40px;padding:8px;border:0;border-radius:0;background:transparent;color:var(--primary);cursor:pointer;text-decoration:none;box-shadow:none}.media-action:disabled{opacity:.4;cursor:default}.media-action.active{color:#c1326b}.media-action.active svg{fill:currentColor}.chat-library-footer{flex-wrap:nowrap}.media-library-browser .media-drop{padding:0;min-height:10px;border:0;background:transparent}.media-library-browser .media-card{border:0;box-shadow:none;background:transparent;border-radius:0;padding:0;overflow:hidden;min-width:0}.media-library-browser .media-card>div{padding:6px 0}.media-library-browser .media-card .media-metadata{display:none}.media-library-browser .media-card .media-description{margin:4px 0;font-size:12px}.media-library-browser .media-card .row{gap:0;flex-wrap:nowrap}.media-image-cover,.media-library-browser .media-video-cover{display:block;position:relative;border:0;padding:0;width:100%;aspect-ratio:1;background:transparent;overflow:hidden;border-radius:6px;cursor:pointer}.media-image-cover img{display:block;width:100%;height:100%;object-fit:cover}.media-library-browser .media-video-cover>span{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:#0008;color:#fff}.media-image-cover,.chat-library-tile{-webkit-touch-callout:none;user-select:none}.media-image-cover img,.chat-library-tile img{pointer-events:none;-webkit-user-drag:none}
.media-lightbox{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;background:#000d;padding:56px 12px 16px;box-sizing:border-box}.media-lightbox>img,.media-lightbox>video{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;border:0;border-radius:0;background:transparent;box-shadow:none}.media-lightbox-tools{position:absolute;top:max(8px,env(safe-area-inset-top));right:12px;display:flex;gap:12px}.media-lightbox-tools button{display:grid;place-items:center;border:0;background:transparent;color:white;width:44px;height:44px;padding:8px;cursor:pointer}.media-lightbox-tools button[aria-pressed=true]{color:#84e1b0}.media-lightbox-tools button:focus-visible{outline:2px solid white}
@media(max-width:760px){.media-folder-list{gap:16px;padding:0 0 4px}.media-folder-card{width:auto;min-height:40px;gap:6px;padding:6px 0}.media-folder-card span{flex-basis:auto}.media-folder-card small{margin:0}.media-browser{gap:10px}.media-library-browser{margin-top:10px}.media-browser-toolbar{margin-bottom:8px}.media-library-browser .media-card>div{padding:4px 0}.media-library-browser .media-description{display:none!important}.media-library-browser .media-action{min-width:36px;min-height:40px;padding:7px}.media-library-browser .media-card .row{justify-content:space-between}.media-lightbox{padding:56px 0 12px}.media-picker-grid{max-height:55dvh}}

.media-picker-grid .media-picker-item{border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;border-radius:0}.media-library-browser .media-card .row{padding:0;overflow:visible}.media-library-browser .media-image-cover img{height:100%;background:transparent}

.media-lightbox{background:#111}

/* Focused touch conversations, including unfolded phones. */
.content.inbox-page #reply-form textarea{min-height:40px;line-height:22px;padding:8px 10px;resize:none;box-sizing:border-box}
body.thread-compact #page.content.inbox-page,body.thread-compact .main:has(>.inbox-topbar)>#page.content.inbox-page{height:var(--thread-height);padding:0;min-height:0}
body.thread-compact .inbox-layout,body.thread-compact .comments-workspace{display:block!important;height:100%;min-height:0;margin:0;grid-template-columns:minmax(0,1fr)!important}
body.thread-compact .inbox-layout.has-selection>.conversation-list,body.thread-compact .inbox-layout:not(.has-selection)>.chat,body.thread-compact .comments-workspace.has-selection>.comment-post-list,body.thread-compact .comments-workspace:not(.has-selection)>.comment-work-area{display:none!important}
body.thread-compact .inbox-layout>.chat,body.thread-compact .conversation-list,body.thread-compact .comment-post-list{height:100%;min-height:0}
body.thread-compact .comments-workspace.has-selection>.comment-work-area{display:grid;height:100%;min-height:0;grid-template-rows:auto minmax(0,1fr) auto}
body.thread-compact .chat-head [data-action=back-inbox],body.thread-compact .comment-chat-head [data-action=back-comments]{display:inline-flex!important;flex-shrink:0}
body.thread-compact .chat-side{display:none!important}
body.thread-typing .mobile-bottom{display:none!important}
body.thread-typing .main{padding-bottom:0!important}
body.thread-selected .topbar .inbox-topbar-tools{display:none!important}
body.thread-compact #reply-form{padding:6px 10px;min-height:0}
body.thread-compact #reply-form .chat-compose-row{margin-top:4px}
.drive-library-grid .drive-file{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:130px;width:100%;color:var(--primary);text-decoration:none;white-space:normal;text-align:center}
.media-pagination{gap:8px;justify-content:flex-end;margin:8px 0;flex-wrap:wrap}
.media-pagination button:disabled{opacity:.35;cursor:default}
