@import url('/fonts.css');

.sidebar {
    position: relative;
}

.sidebar-toggle {
    position: fixed;
    left: 232px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: white;
    border: 1px solid #e1e7dc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 40;
    color: #6f7b70;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, background 0.2s, color 0.2s, left 0.2s;
}

.sidebar-toggle:hover {
    color: var(--green);
    background: #f4f7f1;
}

.sidebar-collapsed .sidebar-toggle {
    transform: translate(-50%, -50%) rotate(180deg);
    left: 70px;
}

.sidebar-collapsed .sidebar {
    width: 70px;
}

.sidebar-collapsed .sidebar .nav-item {
    justify-content: center;
    padding: 10px 0;
}

.sidebar-collapsed .sidebar .nav-text,
.sidebar-collapsed .sidebar .nav-label,
.sidebar-collapsed .sidebar .brand-word,
.sidebar-collapsed .sidebar small,
.sidebar-collapsed .sidebar .workspace strong,
.sidebar-collapsed .sidebar .workspace small,
.sidebar-collapsed .sidebar .local-pill {
    display: none !important;
}

.sidebar-collapsed .sidebar .brand {
    padding: 0 0 20px;
    justify-content: center;
}

.sidebar-collapsed .sidebar .workspace {
    padding: 10px 0;
    justify-content: center;
}

.sidebar-collapsed .sidebar .workspace svg {
    display: none;
}

.sidebar-collapsed .main {
    margin-left: -162px;
}

/* 232 - 70 = 162 */
:root {
    --bg: #f7f8f5;
    --panel: #fff;
    --text: #24372f;
    --muted: #78847e;
    --line: #e6eae4;
    --green: #28644c;
    --green-dark: #184d38;
    --pale: #eaf1e8;
    --lime: #d9e8be;
    --red: #c45550;
    --radius: 16px;
    --shadow: 0 8px 35px #203c2910;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-synthesis: none
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-size: 15px;
    line-height: 1.5
}
.notification-chat-boot{min-height:100dvh;background:#f4f6f3;color:#17352b;display:flex;flex-direction:column}.notification-chat-boot header{min-height:64px;padding:max(12px,env(safe-area-inset-top)) 18px 12px;display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:center;background:#fff;border-bottom:1px solid #dfe7df}.notification-chat-boot header>span{font-size:30px;grid-row:1/3}.notification-chat-boot header strong{font-size:16px}.notification-chat-boot header small{color:#7d8a84}.notification-chat-boot main{flex:1;overflow:auto;padding:18px 14px calc(24px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:8px}.notification-chat-boot-row{max-width:82%;align-self:flex-start}.notification-chat-boot-row>div{padding:10px 12px;border-radius:15px;background:#fff;box-shadow:0 1px 2px #17352b12;white-space:pre-wrap}.notification-chat-boot-row.outgoing{align-self:flex-end}.notification-chat-boot-row.outgoing>div{background:#dcebdd}.notification-chat-boot-row small{display:block;margin:3px 6px;color:#7d8a84;font-size:10px}.notification-chat-boot-row.outgoing small{text-align:right}

button,
input,
select,
textarea {
    font: inherit
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent
}

button {
    cursor: pointer
}

button {
    color: inherit
}

a {
    color: var(--green);
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

button:disabled {
    opacity: .5;
    cursor: wait
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #8dbba4;
    outline-offset: 3px
}

h1,
h2,
h3,
h4,
p {
    margin: 0
}

h1 {
    font-size: 30px;
    letter-spacing: -.9px;
    font-weight: 650;
    line-height: 1.3
}

h2 {
    font-size: 19px;
    letter-spacing: -.35px
}

h3 {
    font-size: 16px
}

small,
.small {
    font-size: 13px
}

.muted {
    color: var(--muted)
}

.green {
    color: var(--green)
}

.red {
    color: var(--red)
}

.mono {
    font-family: monospace
}

.row {
    display: flex;
    align-items: center;
    gap: 12px
}

.between {
    justify-content: space-between
}

.wrap {
    flex-wrap: wrap
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.grow {
    flex: 1;
    min-width: 0
}

.nowrap {
    white-space: nowrap
}

.hidden {
    display: none !important
}

.boot {
    height: 100vh;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 15px
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    background: var(--green);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font: italic 700 33px Georgia
}

.layout {
    display: grid;
    grid-template-columns: 232px 1fr;
    min-height: 100vh
}

.sidebar {
    position: fixed;
    width: 232px;
    inset: 0 auto 0 0;
    background: #f0f3ed;
    border-right: 1px solid #e1e7dc;
    padding: 28px 18px 18px;
    display: flex;
    flex-direction: column;
    z-index: 35
}

.brand {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 0 13px 24px
}

.brand-word {
    font-family: Georgia, serif;
    font-weight: 700;
    font-size: 31px;
    letter-spacing: -1.5px;
    line-height: 1
}

.brand small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    letter-spacing: 1.6px;
    color: #84917b;
    text-transform: uppercase
}

.workspace {
    border: 1px solid #dce4d7;
    border-radius: 11px;
    background: #ffffff85;
    padding: 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 2px 25px
}

.workspace-icon {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    background: #dfe9d7;
    border-radius: 8px;
    color: var(--green);
    font-weight: 700
}

.workspace strong {
    font-size: 13px;
    display: block
}

.workspace small {
    font-size: 11px;
    color: var(--muted)
}

.nav-label {
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1.6px;
    color: #8b9785;
    font-weight: 650;
    padding: 10px 14px
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    background: none;
    border-radius: 9px;
    text-align: left;
    margin: 2px 0;
    font-size: 14px;
    color: #6f7b70
}

.nav-item:hover {
    background: #e6ece1
}

.nav-item.active {
    background: #dfe9d8;
    color: #254f3d;
    font-weight: 650
}

.nav-item.active:before {
    content: '';
    position: absolute;
    left: 0;
    height: 20px;
    width: 3px;
    background: var(--green);
    border-radius: 0 3px 3px 0
}

.nav-badge {
    margin-left: auto;
    background: white;
    padding: 0 6px;
    border-radius: 5px;
    font-size: 11px;
    color: var(--green)
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 25px
}

.local-pill {
    margin: 12px 9px 0;
    font-size: 12px;
    color: #819079;
    display: flex;
    align-items: center;
    gap: 7px
}

.local-pill:before {
    content: '';
    width: 6px;
    height: 6px;
    background: #6b9971;
    border-radius: 50%
}

.main {
    grid-column: 2;
    min-width: 0
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    transition: height 0.3s ease, opacity 0.2s ease, padding 0.3s ease, border-color 0.3s ease;
    height: 82px;
    border-bottom: 1px solid var(--line);
    background: #fff9;
    backdrop-filter: blur(10px);
    padding: 0 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    overflow: hidden;
}

.topbar.hidden-on-scroll {
    height: 0;
    opacity: 0;
    border-bottom-color: transparent;
    padding-top: 0;
    padding-bottom: 0;
}

.breadcrumb {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #98a198
}

.breadcrumb strong {
    color: #52624f;
    font-weight: 500
}

.top-search {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    width: 250px;
    color: #8b958b
}

.top-search input {
    border: 0;
    outline: none !important;
    width: 100%;
    font-size: 13px;
    background: none
}

.keycap {
    font-size: 11px;
    border: 1px solid var(--line);
    padding: 0 4px;
    border-radius: 4px
}

.icon-btn {
    border: 1px solid transparent;
    background: transparent;
    border-radius: 9px;
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    position: relative
}

.icon-btn:hover {
    background: var(--pale)
}

.notification-dot {
    width: 6px;
    height: 6px;
    background: #cb8c63;
    position: absolute;
    top: 6px;
    right: 8px;
    border: 1px solid white;
    border-radius: 100%
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e4d9c7;
    color: #6a624f;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 650
}

.avatar.sage {
    background: #dce9da;
    color: #4d7057
}

.avatar.lilac {
    background: #e7e0ed;
    color: #857592
}

.avatar.peach {
    background: #f0dfd1;
    color: #a57857
}

.content {
    padding: 30px 38px 35px;
    max-width: 1700px;
    margin: auto
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px
}

.page-head p {
    color: var(--muted);
    margin-top: 7px;
    font-size: 14px
}

.btn {
    border: 1px solid var(--line);
    background: #fff;
    min-height: 39px;
    padding: 8px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 550;
    white-space: nowrap;
    line-height: 1.45
}

.btn:hover {
    background: #f0f4ef
}

.btn.primary {
    background: var(--green);
    border-color: var(--green);
    color: white;
    box-shadow: 0 2px 3px #20503b15
}

.btn.primary:hover {
    background: var(--green-dark)
}

.btn.soft {
    background: var(--pale);
    color: var(--green);
    border-color: transparent
}

.btn.danger {
    color: var(--red);
    background: #fff5f3;
    border-color: #f2d9d5
}

.btn.small {
    padding: 5px 10px;
    min-height: 31px;
    font-size: 12px
}

.btn.full {
    width: 100%
}

.text-btn {
    border: 0;
    background: none;
    display: inline-flex;
    gap: 5px;
    align-items: center;
    color: var(--green);
    font-size: 13px;
    padding: 4px
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 22px 0
}

.stat {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 19px 21px
}

.stat-label {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center
}

.stat-label svg {
    color: #7a987e
}

.stat-value {
    font-size: 30px;
    letter-spacing: -1px;
    font-weight: 600;
    margin-top: 10px
}

.stat-foot {
    margin-top: 8px;
    font-size: 11px;
    color: var(--muted)
}

.stat-foot span {
    color: var(--green);
    background: #eff5eb;
    padding: 2px 5px;
    border-radius: 4px;
    margin-right: 5px
}

.welcome {
    background: #e9efdf;
    border: 1px solid #e0e8d6;
    border-radius: 15px;
    min-height: 145px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 23px 29px;
    overflow: hidden;
    position: relative
}

.welcome h2 {
    font-size: 24px;
    letter-spacing: -.6px;
    font-weight: 600;
    max-width: 510px
}

.welcome p {
    font-size: 13px;
    color: #7e8e72;
    margin: 8px 0 15px
}

.welcome-art {
    height: 140px;
    width: 235px;
    flex-shrink: 0;
    position: relative;
    align-self: flex-end;
    margin-bottom: -23px
}

.art-card {
    position: absolute;
    width: 115px;
    height: 145px;
    background: #fffcf3;
    border: 1px solid #d4dfc9;
    border-radius: 10px;
    right: 60px;
    top: 10px;
    transform: rotate(-11deg);
    box-shadow: 0 8px 20px #445c2710;
    padding: 16px
}

.art-card:before {
    content: '';
    display: block;
    width: 35px;
    height: 35px;
    background: #bfd7a7;
    border-radius: 50%;
    margin: 0 auto 13px
}

.art-card:after {
    content: '';
    display: block;
    border-top: 5px solid #dde5d3;
    border-bottom: 5px solid #dde5d3;
    width: 74px;
    height: 18px
}

.art-bubble {
    position: absolute;
    top: 30px;
    right: 12px;
    border-radius: 10px;
    background: white;
    padding: 10px;
    color: #709064;
    font-size: 11px;
    box-shadow: var(--shadow);
    transform: rotate(7deg)
}

.art-leaf {
    position: absolute;
    width: 45px;
    height: 85px;
    border-radius: 100% 0 100% 0;
    background: #aac493;
    right: 10px;
    bottom: -5px;
    transform: rotate(25deg)
}

.art-leaf.two {
    right: 180px;
    bottom: -25px;
    background: #c4d4b5;
    transform: rotate(-30deg)
}

.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 22px;
    align-items: start
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden
}

.panel-head {
    padding: 19px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    gap: 10px
}

.panel-head h2 {
    font-size: 16px
}

.panel-body {
    padding: 22px
}

.week-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 12px 17px;
    gap: 6px;
    border-bottom: 1px solid var(--line)
}

.day-chip {
    padding: 7px 4px;
    text-align: center;
    border-radius: 9px;
    border: 0;
    background: none;
    font-size: 12px;
    color: var(--muted)
}

.day-chip strong {
    display: block;
    font-size: 18px;
    margin-top: 4px;
    font-weight: 500;
    color: var(--text)
}

.day-chip.today {
    background: var(--green);
    color: #d6e8dd
}

.day-chip.today strong {
    color: #fff
}

.day-dot {
    width: 4px;
    height: 4px;
    background: #8eae72;
    display: block;
    margin: 5px auto 0;
    border-radius: 50%
}

.scheduled-row {
    display: flex;
    gap: 15px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    align-items: center
}

.scheduled-row:last-child {
    border: 0
}

.time-col {
    min-width: 46px;
    font-size: 12px;
    color: var(--muted)
}

.time-col strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text)
}

.thumbnail {
    width: 58px;
    height: 66px;
    flex-shrink: 0;
    border-radius: 9px;
    overflow: hidden;
    display: grid;
    place-items: center;
    position: relative
}

.thumbnail img,
.thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.thumb-art {
    background: #e7eadf;
    position: relative;
    overflow: hidden
}

.thumb-art.sage {
    background: #dbe5d3
}

.thumb-art.sand {
    background: #ede6d9
}

.thumb-art.lilac {
    background: #e7e0ec
}

.thumb-art.peach {
    background: #efdfd2
}

.thumb-art:before {
    content: '';
    position: absolute;
    width: 33%;
    height: 62%;
    background: #f6f4e9;
    border-radius: 8px 8px 13px 13px;
    bottom: 13%;
    left: 34%;
    box-shadow: 7px 8px 1px #30472c12;
    transform: rotate(-9deg)
}

.thumb-art:after {
    content: '';
    position: absolute;
    width: 25%;
    height: 9%;
    background: #789471;
    border-radius: 3px 3px 0 0;
    left: 34%;
    bottom: 75%;
    transform: rotate(-9deg)
}

.thumb-art.sand:before {
    width: 53%;
    height: 49%;
    left: 24%;
    border-radius: 3px 3px 12px 12px;
    background: #b6aa87;
    transform: rotate(8deg)
}

.thumb-art.sand:after {
    width: 25%;
    height: 20%;
    left: 37%;
    bottom: 61%;
    border: 3px solid #b6aa87;
    border-bottom: 0;
    background: none;
    border-radius: 50% 50% 0 0;
    transform: rotate(8deg)
}

.thumb-art.lilac:before {
    width: 52%;
    height: 65%;
    left: 25%;
    border-radius: 3px;
    background: #9d8caf
}

.thumb-art.lilac:after {
    width: 2%;
    height: 62%;
    left: 32%;
    bottom: 13%;
    background: #e4caa8
}

.thumb-art.peach:before {
    width: 53%;
    height: 46%;
    left: 20%;
    background: #bd8d71;
    border-radius: 3px 3px 22px 22px;
    transform: none
}

.thumb-art.peach:after {
    width: 25%;
    height: 30%;
    left: 59%;
    bottom: 25%;
    background: none;
    border: 5px solid #bd8d71;
    border-radius: 50%;
    transform: none
}

.scheduled-row h3 {
    font-size: 13px;
    font-weight: 550;
    margin-bottom: 7px
}

.social-stack {
    display: flex;
    align-items: center;
    gap: 4px
}

.social {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: 11px;
    font-weight: 750;
    color: #fff;
    background: #4267b2;
    flex-shrink: 0;
    line-height: 1
}

.social.instagram {
    background: #ba5788
}

.social.tiktok,
.social.threads,
.social.x {
    background: #242827
}

.social.youtube {
    background: #ed5b58
}

.social.zalo,
.social.zalo_personal {
    background: #2476df
}

.social.devto {
    background: #202325;
    font-size: 8px;
    border-radius: 4px
}

.social.blogger {
    background: #e38b3a
}

.social.reddit {
    background: #e86c44
}

.social.facebook_personal {
    background: #537cca
}

.social.large {
    width: 40px;
    height: 40px;
    font-size: 20px
}

.social.large.devto {
    font-size: 12px
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    border-radius: 5px;
    padding: 4px 7px;
    background: #eef1ed;
    color: #6c7f6c;
    white-space: nowrap
}

.badge.scheduled,
.badge.confirmed,
.badge.processing,
.badge.configured {
    background: #edf0fa;
    color: #7683a8
}

.badge.published,
.badge.connected,
.badge.delivered,
.badge.paid,
.badge.settled,
.badge.resolved {
    background: #eaf3e7;
    color: #62885b
}

.badge.demo,
.badge.demo_published {
    background: #f5f0e4;
    color: #988053
}

.badge.failed,
.badge.unknown,
.badge.blocked,
.badge.discrepancy,
.badge.delivery_failed {
    background: #faece8;
    color: #b77768
}

.badge.awaiting_manual,
.badge.pickup_pending,
.badge.assisted {
    background: #fbf2e4;
    color: #af905c
}

.tag {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #edf2e7;
    color: #7c906a
}

.inbox-preview {
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 11px;
    cursor: pointer
}

.inbox-preview:hover {
    background: #fafbf8
}

.inbox-preview h3 {
    font-size: 12px;
    font-weight: 600
}

.inbox-preview p {
    font-size: 12px;
    color: var(--muted);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 3px
}

.inbox-preview small {
    font-size: 10px;
    color: #9ca599
}

.inbox-preview .avatar {
    width: 33px;
    height: 33px;
    font-size: 11px
}

.channel-line {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 0;
    font-size: 12px
}

.channel-line small {
    margin-left: auto
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 26px 0 15px
}

.section-title h2 {
    font-size: 17px
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.content-card {
    border: 1px solid var(--line);
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s
}

.content-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow)
}

.card-cover {
    height: 168px;
    position: relative
}

.card-cover img,
.card-cover video {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.card-cover .badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    background: #fffc
}

.card-cover .play-icon {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: #fff9;
    border-radius: 50%;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center
}

.card-cover .cover-word {
    position: absolute;
    right: 17px;
    bottom: 20px;
    z-index: 1;
    font-family: Georgia, serif;
    font-size: 24px;
    color: #ffffffb0;
    font-style: italic;
    writing-mode: vertical-rl
}

.card-info {
    padding: 14px 15px
}

.card-info h3 {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 13px;
    min-height: 38px
}

.card-info .row {
    font-size: 11px;
    color: var(--muted)
}

.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 21px;
    flex-wrap: wrap
}

.tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap
}

.tab {
    border: 0;
    background: none;
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 7px;
    font-size: 13px
}

.tab.active {
    background: #e7efdf;
    color: var(--green);
    font-weight: 600
}

.search-field {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--muted)
}

.search-field input {
    border: 0;
    outline: none;
    width: 180px;
    font-size: 13px;
    background: none
}

.table-wrap {
    overflow-x: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px
}

th {
    color: #8a9387;
    font-weight: 500;
    font-size: 11px;
    background: #fafbf8;
    padding: 13px 18px;
    white-space: nowrap
}

td {
    padding: 16px 18px;
    border-top: 1px solid var(--line);
    vertical-align: middle
}

td strong {
    font-size: 13px;
    font-weight: 600
}

tr:hover td {
    background: #fcfdfa
}

td .thumbnail {
    width: 42px;
    height: 46px
}

td .muted {
    font-size: 11px
}

.empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--muted)
}

.empty svg {
    color: #a2b39a;
    margin-bottom: 14px
}

.empty h3 {
    color: #60715d;
    font-weight: 550;
    margin-bottom: 6px
}

.empty p {
    font-size: 13px;
    max-width: 400px;
    margin: auto
}

.empty .btn {
    margin-top: 18px
}

.notice {
    padding: 12px 16px;
    border: 1px solid #e6e5d2;
    border-radius: 9px;
    background: #faf9ef;
    color: #928664;
    font-size: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px
}

.notice svg {
    flex-shrink: 0
}

.notice.success {
    background: #edf4e9;
    border-color: #dce8d4;
    color: #6e8562
}

.connection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.connection-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white
}

.connection-card h3 {
    font-size: 14px
}

.connection-card p {
    font-size: 12px;
    color: var(--muted);
    margin: 15px 0;
    min-height: 52px
}

.capabilities {
    display: flex;
    gap: 5px;
    margin: 13px 0;
    flex-wrap: wrap
}

.calendar {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: white
}

.calendar-labels,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr))
}

.calendar-labels div {
    padding: 12px;
    text-align: center;
    background: #f0f4eb;
    font-size: 12px;
    color: var(--muted)
}

.calendar-cell {
    min-height: 140px;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    padding: 8px
}

.calendar-cell:nth-child(7n) {
    border-right: 0
}

.calendar-cell.outside {
    background: #fafbf8;
    color: #b5bcb0
}

.calendar-date {
    font-size: 12px;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    margin-bottom: 5px
}

.calendar-date.today {
    background: var(--green);
    color: white;
    border-radius: 50%
}

.calendar-event {
    padding: 6px 7px;
    border-radius: 5px;
    background: #eff4e8;
    font-size: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    border-left: 2px solid #9db184;
    color: #6e8060;
    overflow: hidden
}

.calendar-event:hover {
    background: #e3ecd9
}

.calendar-event strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
    font-weight: 550
}

.inbox-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr) 300px;
    height: 100%;
    background: white;
    overflow: hidden
}

.conversation-list {
    border-right: 1px solid var(--line);
    overflow-y: auto;
    background: #fff
}

.conversation-search {
    padding: 15px;
    border-bottom: 1px solid var(--line)
}

.conversation-item {
    padding: 12px 15px;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 10px;
    cursor: pointer;
    position: relative
}

.conversation-item.active {
    background: #f0f5eb;
    border-left: 3px solid #789f6a;
    padding-left: 12px
}

.conversation-item h3 {
    font-size: 13px;
    font-weight: 600
}

.conversation-item p {
    font-size: 12px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 2px;
    line-height: 1.4
}

.conversation-item .avatar {
    width: 40px;
    height: 40px
}

.unread-dot {
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    position: absolute;
    right: 13px;
    top: 23px;
    border: 2px solid #fff
}

.chat {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    background: #f0f2f5
}

.chat-head {
    padding: 12px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    min-height: 60px
}

.chat-head h3 {
    font-size: 15px;
    font-weight: 600
}

.chat-head small {
    font-size: 12px
}

.chat-messages {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.bubble-wrap {
    max-width: 70%;
    align-self: flex-start
}

.bubble-wrap.outgoing {
    align-self: flex-end
}

.bubble {
    background: white;
    border-radius: 16px;
    padding: 8px 14px;
    white-space: pre-wrap;
    font-size: 14px;
    overflow-wrap: anywhere;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: #1c1e21
}

.outgoing .bubble {
    background: #dcf8c6
}

.bubble-wrap.note {
    align-self: stretch;
    max-width: 100%
}

.note .bubble {
    background: #fff6df;
    border-radius: 8px
}

.bubble-wrap small {
    font-size: 11px;
    color: #8a9387;
    display: block;
    margin: 4px 2px
}

.outgoing small {
    text-align: right
}

.chat-compose {
    border-top: 1px solid var(--line);
    padding: 12px 16px;
    background: #fff
}

.chat-compose textarea {
    border: 1px solid transparent;
    resize: vertical;
    width: 100%;
    min-height: 45px;
    outline: none;
    background: #f0f2f5;
    font-size: 14px;
    color: var(--text);
    padding: 10px 12px;
    border-radius: 20px;
    line-height: 1.4
}

.chat-compose textarea:focus {
    background: #fff;
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(40, 100, 76, 0.1)
}

.chat-compose .btn {
    min-height: 36px;
    border-radius: 20px
}

.chat-side {
    border-left: 1px solid var(--line);
    overflow: auto;
    background: #fff
}

.customer-mini {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid var(--line)
}

.customer-mini .avatar {
    width: 64px;
    height: 64px;
    font-size: 24px;
    margin-bottom: 10px
}

.customer-mini h3 {
    font-size: 16px
}

.side-section {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line)
}

.side-section h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px
}

.side-section p {
    font-size: 13px;
    color: #1c1e21;
    margin-bottom: 8px
}

.metrics-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 22px;
    height: 220px;
    padding-top: 20px
}

.bar-group {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    gap: 8px
}

.bar {
    background: #b4cba0;
    border-radius: 6px 6px 0 0;
    min-height: 3px;
    position: relative
}

.bar span {
    position: absolute;
    top: -23px;
    left: 0;
    right: 0;
    color: var(--green);
    font-size: 12px
}

.bar-label {
    font-size: 10px;
    color: var(--muted)
}

.progress-row {
    margin-bottom: 20px
}

.progress-track {
    height: 7px;
    background: #eff2ea;
    border-radius: 8px;
    margin-top: 8px;
    overflow: hidden
}

.progress-fill {
    height: 100%;
    background: #9cb486;
    border-radius: 8px
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px
}

.field label {
    font-size: 12px;
    font-weight: 550;
    color: #687560
}

.field input,
.field textarea,
.field select,
.input {
    border: 1px solid #dfe5da;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
    color: var(--text);
    width: 100%;
    font-size: 13px;
    min-height: 41px
}

.field textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.7
}

.field small {
    font-size: 11px;
    color: var(--muted)
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px
}

.field.span-2 {
    grid-column: 1/-1
}

.check-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: #64705c;
    cursor: pointer;
    margin-bottom: 10px
}

.check-label input {
    accent-color: var(--green);
    width: 16px;
    height: 16px
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: #20312765;
    backdrop-filter: blur(3px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px
}

.modal {
    background: var(--bg);
    border-radius: 17px;
    max-width: 620px;
    width: 100%;
    max-height: 92vh;
    box-shadow: 0 20px 80px #12271830;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.modal.wide {
    max-width: 980px
}

.modal-head {
    padding: 20px 25px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white
}

.modal-head h2 {
    font-size: 19px
}

.modal-body {
    padding: 24px 25px;
    overflow-y: auto;
    min-height: 0
}

.modal-footer {
    padding: 17px 25px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: white
}

.compose-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 23px
}

.compose-preview {
    background: white;
    border: 1px solid var(--line);
    border-radius: 13px;
    overflow: hidden;
    align-self: start
}

.compose-preview .card-cover {
    height: 230px
}

.compose-preview .preview-text {
    padding: 15px;
    font-size: 12px;
    white-space: pre-wrap;
    overflow-wrap: anywhere
}

.channel-choices {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 17px
}

.channel-choice {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    background: white;
    border-radius: 7px;
    padding: 7px 9px;
    cursor: pointer;
    font-size: 11px
}

.channel-choice:has(input:checked) {
    border-color: #88a776;
    background: #ecf3e6
}

.channel-choice input {
    accent-color: var(--green)
}

.dropzone {
    border: 1.5px dashed #cdd8c5;
    background: #f6f9f1;
    border-radius: 10px;
    text-align: center;
    padding: 22px 15px;
    color: #899a7b;
    cursor: pointer;
    margin-bottom: 17px
}

.dropzone:hover {
    background: #edf3e6
}

.dropzone strong {
    display: block;
    color: #6a805a;
    font-size: 13px;
    margin-top: 6px
}

.dropzone small {
    font-size: 11px
}

.upload-list {
    display: flex;
    gap: 9px;
    margin-bottom: 15px;
    flex-wrap: wrap
}

.upload-list img,
.upload-list video {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 7px
}

.upload-item {
    position: relative
}

.upload-item button {
    position: absolute;
    right: -6px;
    top: -6px;
    border: 0;
    background: #fff;
    border-radius: 50%;
    width: 21px;
    height: 21px;
    font-size: 13px;
    box-shadow: var(--shadow)
}

details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 10px 13px;
    margin-bottom: 10px
}

summary {
    font-size: 12px;
    font-weight: 550;
    cursor: pointer
}

details .field {
    margin-top: 12px
}

.toast {
    padding: 13px 18px;
    border-radius: 10px;
    background: #254c38;
    color: white;
    font-size: 13px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 450px;
    animation: toast-in .2s ease-out
}

.toast.error {
    background: #9e5750
}

#toast-root {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px
}

@keyframes toast-in {
    from {
        transform: translateY(10px);
        opacity: 0
    }

    to {
        transform: none;
        opacity: 1
    }
}

.login-screen {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr
}

.login-story {
    padding: 60px 10%;
    background: #e8efdf;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden
}

.login-story h1 {
    font-family: Georgia, serif;
    font-size: 48px;
    line-height: 1.22;
    font-weight: 500;
    margin: 50px 0 20px;
    max-width: 500px
}

.login-story p {
    color: #71846b;
    max-width: 400px;
    line-height: 1.8;
    font-size: 15px
}

.login-story .brand {
    padding: 0
}

.login-art {
    height: 170px;
    margin-top: 40px;
    display: flex;
    gap: 13px;
    align-items: center
}

.login-art .thumbnail {
    width: 110px;
    height: 140px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transform: rotate(-8deg)
}

.login-art .thumbnail:nth-child(2) {
    transform: rotate(5deg);
    margin-top: 25px
}

.login-art .thumbnail:nth-child(3) {
    transform: rotate(-3deg)
}

.login-form-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px
}

.login-form {
    width: 100%;
    max-width: 385px
}

.login-form h2 {
    font-size: 25px;
    margin-bottom: 8px
}

.login-form>p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 28px
}

.login-form .field input {
    min-height: 45px
}

.login-footer {
    margin-top: 22px;
    color: #9aa491;
    text-align: center;
    font-size: 11px
}

.form-error {
    color: var(--red);
    font-size: 13px;
    margin-bottom: 13px;
    white-space: pre-wrap
}

.mobile-only {
    display: none
}

.mobile-bottom {
    display: none
}

.offline-banner {
    background: #aa7655;
    color: white;
    text-align: center;
    font-size: 12px;
    padding: 6px
}

.order-items {
    border: 1px solid var(--line);
    border-radius: 9px;
    overflow: hidden;
    margin-bottom: 15px
}

.order-item {
    display: grid;
    grid-template-columns: 1fr 75px 80px 30px;
    gap: 10px;
    padding: 10px;
    background: white;
    align-items: center;
    border-bottom: 1px solid var(--line);
    font-size: 12px
}

.order-item:last-child {
    border: 0
}

.order-item input {
    padding: 6px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 5px
}

.order-totals {
    background: #edf3e7;
    padding: 15px;
    border-radius: 9px;
    display: grid;
    gap: 8px;
    font-size: 13px
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.detail-list {
    display: grid;
    gap: 12px
}

.detail-list .row {
    font-size: 13px;
    justify-content: space-between
}

.divider {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 18px 0
}

.help-text {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7
}

.audit-row {
    font-size: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line)
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.media-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden
}

.media-card img,
.media-card video {
    height: 175px;
    width: 100%;
    object-fit: cover;
    background: #edf1e8
}

.media-card div {
    padding: 12px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis
}

.campaign-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    padding: 23px
}

.campaign-card h3 {
    font-size: 17px;
    margin-bottom: 8px
}

.campaign-card p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px
}

.toggle {
    accent-color: var(--green);
    width: 18px;
    height: 18px
}

.mobile-scrim {
    display: none
}

.doc-line {
    padding: 15px 0;
    border-bottom: 1px solid var(--line)
}

.doc-line h3 {
    font-size: 14px
}

.doc-line p {
    font-size: 12px;
    margin-top: 7px;
    color: var(--muted);
    white-space: pre-wrap
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 15px
}

.notification-item {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white
}

.notification-item h3 {
    font-size: 13px;
    margin-bottom: 4px
}

.notification-item p {
    font-size: 12px;
    color: var(--muted)
}

.print-label {
    border: 2px solid #333;
    background: white;
    padding: 25px;
    max-width: 500px;
    margin: auto;
    color: #222
}

.print-label h2 {
    font-size: 28px;
    margin: 15px 0
}

.print-label p {
    margin: 8px 0
}

.variant-box {
    margin-top: 10px
}

.form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px
}

.main-footer {
    display: flex;
    justify-content: space-between;
    color: #a0a898;
    font-size: 10px;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--line)
}

.stock-low {
    color: #b88954
}

.collection-header {
    padding: 13px 20px;
    background: #f3f6ef;
    font-size: 12px;
    color: #74816b
}

.stat.inline {
    padding: 14px 18px
}

.stat.inline .stat-value {
    font-size: 24px
}

.product-description {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8
}

@media(min-width:1550px) {
    .content {
        padding: 35px 48px
    }

    .content-grid {
        gap: 22px
    }

    .card-cover {
        height: 210px
    }

    .dashboard-columns {
        grid-template-columns: 1fr 355px
    }

    .sidebar {
        width: 246px
    }

    .layout {
        grid-template-columns: 246px 1fr
    }
}

@media(max-width:1200px) {
    .layout {
        grid-template-columns: 205px 1fr
    }

    .sidebar {
        width: 205px;
        padding: 25px 11px 15px
    }

    .content {
        padding: 25px
    }

    .topbar {
        padding: 0 25px
    }

    .dashboard-columns {
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 16px
    }

    .stats {
        gap: 10px
    }

    .stat {
        padding: 15px
    }

    .stat-value {
        font-size: 26px
    }

    .content-grid {
        gap: 12px
    }

    .card-cover {
        height: 145px
    }

    .connection-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .inbox-layout {
        grid-template-columns: 230px minmax(0, 1fr)
    }

    .chat-side {
        display: none
    }

    .top-search {
        width: 205px
    }

    .welcome-art {
        width: 160px
    }

    .welcome h2 {
        font-size: 21px
    }

    .media-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media(max-width:980px) {
    .dashboard-columns {
        grid-template-columns: 1fr
    }

    .dashboard-aside {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px
    }

    .dashboard-aside .panel {
        margin: 0 !important
    }

    .content-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .card-cover {
        height: 185px
    }

    .welcome-art {
        display: none
    }

    .top-search {
        display: none
    }

    .stats {
        grid-template-columns: repeat(2, 1fr)
    }

    .calendar-cell {
        min-height: 110px;
        padding: 5px
    }

    .calendar-event {
        padding: 4px;
        font-size: 9px
    }

    .calendar-event strong {
        font-size: 10px
    }

    .settings-grid {
        grid-template-columns: 1fr
    }

    .compose-grid {
        grid-template-columns: 1fr 240px
    }

    .metrics-grid {
        grid-template-columns: 1fr
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .login-story {
        padding: 40px
    }

    .login-story h1 {
        font-size: 37px
    }
}

@media(max-width:760px) {
    .sidebar-toggle {
        display: none;
    }

    body {
        font-size: 15px
    }

    .layout {
        display: block
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform .2s;
        width: 250px
    }

    .menu-open .sidebar {
        transform: translateX(0)
    }

    .menu-open .mobile-scrim {
        display: block;
        position: fixed;
        inset: 0;
        background: #1b2f2560;
        z-index: 34
    }

    .main {
        width: 100%
    }

    .topbar {
        height: 65px;
        padding: 0 18px;
        background: #fff
    }

    .mobile-only {
        display: inline-grid
    }

    .topbar .breadcrumb {
        font-size: 12px
    }

    .topbar .desktop-profile {
        display: none
    }

    .content {
        padding: 22px 17px 85px
    }

    .page-head {
        align-items: flex-start;
        margin-bottom: 20px;
        gap: 12px
    }

    .page-head h1 {
        font-size: 25px
    }

    .page-head p {
        font-size: 12px;
        max-width: 270px
    }

    .page-head .btn {
        min-height: 37px;
        padding: 8px 10px;
        font-size: 12px
    }

    .page-head .head-actions {
        flex-shrink: 0
    }

    .page-head .head-actions .secondary-head {
        display: none
    }

    .welcome {
        padding: 22px;
        min-height: auto;
        border-radius: 13px
    }

    .welcome h2 {
        font-size: 21px;
        max-width: 300px
    }

    .welcome p {
        font-size: 12px
    }

    .stats {
        margin: 17px 0;
        gap: 10px
    }

    .stat {
        padding: 14px 13px;
        border-radius: 10px
    }

    .stat-label {
        font-size: 11px
    }

    .stat-label svg {
        width: 16px
    }

    .stat-value {
        font-size: 27px;
        margin-top: 6px
    }

    .stat-foot {
        font-size: 10px
    }

    .stat-foot span {
        padding: 1px 3px;
        margin-right: 2px
    }

    .dashboard-columns {
        gap: 18px
    }

    .dashboard-aside {
        display: flex;
        flex-direction: column;
        gap: 18px
    }

    .dashboard-aside .panel:first-child {
        display: block
    }

    .panel-head {
        padding: 15px 17px
    }

    .panel-head h2 {
        font-size: 15px
    }

    .panel-body {
        padding: 18px
    }

    .scheduled-row {
        padding: 15px;
        gap: 12px
    }

    .scheduled-row h3 {
        font-size: 12px
    }

    .scheduled-row .badge {
        font-size: 9px;
        padding: 3px 5px
    }

    .thumbnail {
        width: 49px;
        height: 58px
    }

    .time-col {
        min-width: 36px;
        font-size: 10px
    }

    .time-col strong {
        font-size: 12px
    }

    .content-grid {
        gap: 12px
    }

    .card-cover {
        height: 170px
    }

    .card-info {
        padding: 12px
    }

    .card-info h3 {
        font-size: 12px;
        min-height: 36px
    }

    .card-info .row {
        font-size: 10px
    }

    .toolbar {
        gap: 10px
    }

    .tabs {
        gap: 3px;
        flex-wrap: nowrap;
        overflow: auto;
        max-width: 100%;
        padding-bottom: 3px
    }

    .tab {
        font-size: 12px;
        padding: 7px 11px;
        white-space: nowrap
    }

    .search-field {
        width: 100%
    }

    .search-field input {
        width: 100%
    }

    .mobile-bottom {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fffffff5;
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--line);
        z-index: 40;
        justify-content: space-around;
        padding: 8px 8px max(8px, env(safe-area-inset-bottom))
    }

    .mobile-bottom button {
        border: 0;
        background: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: #929e87;
        min-width: 48px;
        font-size: 10px
    }

    .mobile-bottom button.active {
        color: var(--green)
    }

    .mobile-bottom button.new-button {
        background: var(--green);
        color: white;
        border-radius: 12px;
        width: 48px;
        min-height: 44px;
        justify-content: center;
        margin-top: -15px;
        box-shadow: 0 3px 15px #1c4e3b22
    }

    .connection-grid {
        grid-template-columns: 1fr
    }

    .calendar {
        overflow: auto
    }

    .calendar-labels,
    .calendar-grid {
        min-width: 640px
    }

    .calendar-cell {
        min-height: 115px
    }

    .calendar-event strong {
        font-size: 10px
    }

    .notice {
        font-size: 11px;
        padding: 10px 12px
    }

    .inbox-layout {
        display: block;
        height: calc(100dvh - 240px);
        min-height: 400px;
        border-radius: 10px
    }

    .conversation-list {
        height: 100%;
        border: 0
    }

    .chat {
        height: 100%
    }

    .inbox-layout:not(.has-selection) .chat {
        display: none
    }

    .inbox-layout.has-selection .conversation-list {
        display: none
    }

    .chat-head {
        padding: 12px
    }

    .chat-messages {
        padding: 18px 13px
    }

    .chat-compose {
        padding: 12px
    }

    .bubble {
        font-size: 14px
    }

    .inbox-page .page-head {
        margin-bottom: 13px
    }

    .inbox-page .notice {
        margin-bottom: 10px
    }

    .inbox-page .page-head h1 {
        font-size: 23px
    }

    .bubble-wrap {
        max-width: 90%
    }

    .modal-backdrop {
        padding: 0;
        align-items: flex-end
    }

    .modal,
    .modal.wide {
        max-height: 96dvh;
        border-radius: 18px 18px 0 0;
        max-width: 100%
    }

    .modal-head {
        padding: 17px 19px
    }

    .modal-head h2 {
        font-size: 18px
    }

    .modal-body {
        padding: 20px 18px
    }

    .modal-footer {
        padding: 14px 18px max(16px, env(safe-area-inset-bottom))
    }

    .compose-grid {
        grid-template-columns: 1fr
    }

    .compose-preview {
        display: none
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .field.span-2 {
        grid-column: auto
    }

    .field input,
    .field textarea,
    .field select {
        font-size: 16px
    }

    .field label {
        font-size: 13px
    }

    .field small {
        font-size: 12px
    }

    .check-label {
        font-size: 14px
    }

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

    .order-item {
        grid-template-columns: 1fr 55px 65px 26px;
        gap: 5px
    }

    .login-screen {
        display: block;
        background: #e8efdf;
        min-height: 100dvh
    }

    .login-story {
        padding: 25px 25px 10px
    }

    .login-story h1 {
        font-size: 29px;
        margin: 25px 0 10px;
        max-width: 310px
    }

    .login-story p {
        display: none
    }

    .login-art {
        display: none
    }

    .login-form-wrap {
        padding: 22px 25px 40px
    }

    .login-form {
        max-width: 420px;
        background: white;
        border: 1px solid var(--line);
        padding: 25px;
        border-radius: 17px
    }

    .login-form h2 {
        font-size: 23px
    }

    .login-form .field input {
        font-size: 16px
    }

    .login-footer {
        font-size: 11px
    }

    .login-story .brand-word {
        font-size: 27px
    }

    .main-footer {
        display: none
    }

    #toast-root {
        bottom: 85px;
        left: 15px;
        right: 15px
    }

    .toast {
        max-width: none;
        font-size: 13px
    }

    .media-card img,
    .media-card video {
        height: 145px
    }

    .btn,
    .icon-btn {
        min-height: 40px
    }

    .chat-compose .btn {
        min-height: 40px
    }

    .search-field input {
        font-size: 16px
    }

    .table-wrap {
        margin: 0
    }

    th,
    td {
        padding: 12px
    }

    .page-head .btn span.mobile-hide {
        display: none
    }

    .bar-chart {
        gap: 12px
    }

    .sidebar .nav-item {
        min-height: 44px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important
    }
}

@media print {
    body>* {
        display: none !important
    }

    #modal-root {
        display: block !important
    }

    .modal-backdrop {
        position: static;
        background: white;
        padding: 0
    }

    .modal {
        max-height: none;
        box-shadow: none;
        border: 0;
        width: 100%;
        max-width: none
    }

    .modal-head,
    .modal-footer {
        display: none
    }

    .modal-body {
        padding: 0;
        overflow: visible
    }

    .print-label {
        margin: 0;
        border: 1px solid black
    }
}

@media(min-width:761px) {
    body {
        --sidebar-width: 232px
    }

    .layout {
        grid-template-columns: var(--sidebar-width) minmax(0, 1fr)
    }

    .sidebar {
        width: var(--sidebar-width);
        overflow-y: auto;
        overflow-x: hidden
    }

    .sidebar-collapsed {
        --sidebar-width: 70px
    }

    .sidebar-collapsed .main {
        margin-left: 0
    }

    .sidebar-toggle,
    .sidebar-collapsed .sidebar-toggle {
        left: calc(var(--sidebar-width) - 20px);
        top: 24px;
        transform: translate(-50%, -50%);
        width: 28px;
        height: 28px;
        box-shadow: none
    }

    .sidebar-collapsed .sidebar-toggle {
        transform: translate(-50%, -50%) rotate(180deg)
    }

    .sidebar-collapsed .sidebar {
        padding-top: 52px
    }

    .sidebar-collapsed .sidebar .brand {
        display: none
    }

    .sidebar-collapsed .sidebar .nav-item {
        position: relative
    }

    .sidebar-collapsed .sidebar .badge {
        position: absolute;
        right: 0;
        top: 0
    }
}

@media(min-width:761px) and (max-width:1100px) {
    body:not(.sidebar-collapsed) {
        --sidebar-width: 205px
    }
}

@media(min-width:1550px) {
    body:not(.sidebar-collapsed) {
        --sidebar-width: 246px
    }
}

@media(max-width:760px) {
    .sidebar-collapsed .main {
        margin-left: 0
    }

    .sidebar-collapsed .sidebar {
        width: 250px
    }

    .sidebar-collapsed .sidebar .nav-text,
    .sidebar-collapsed .sidebar .nav-label {
        display: block !important
    }
}

/* Multi-channel publisher — adapted from automulti-v3 to the current sage theme. */
.publishing-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px
}

.publishing-page-head h1 {
    margin-top: 4px
}

.publishing-page-head p,
.publishing-list-head p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 5px
}

.publishing-create {
    min-height: 43px
}

.publishing-hero {
    min-height: 265px;
    border: 1px solid #dce6d6;
    border-radius: 18px;
    background: linear-gradient(115deg, #e6efde 0%, #f2f5ea 62%, #edf1e5 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding: 35px 43px;
    margin-bottom: 16px;
    position: relative
}

.publishing-hero:before {
    content: '';
    position: absolute;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    background: #d6e4ca80;
    right: 70px;
    top: -100px
}

.publishing-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 555px
}

.publishing-kicker {
    display: inline-block;
    color: #637d59;
    background: #fff9;
    border: 1px solid #d9e4d2;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 1.5px
}

.publishing-hero h2 {
    font-family: Georgia, serif;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -.7px;
    margin: 13px 0 9px;
    color: #2a4939
}

.publishing-hero-copy>p {
    font-size: 13px;
    line-height: 1.7;
    color: #708069;
    max-width: 510px;
    margin-bottom: 20px
}

.publishing-calendar {
    background: #ffffffad;
    border-color: #d8e2d2
}

.publishing-hero-art {
    width: 285px;
    height: 210px;
    position: relative;
    flex-shrink: 0
}

.publishing-art-card {
    position: absolute;
    background: #fffdf7;
    border: 1px solid #d4dfce;
    border-radius: 14px;
    box-shadow: 0 15px 35px #36502e18
}

.publishing-art-card.back {
    width: 142px;
    height: 175px;
    right: 66px;
    top: 16px;
    transform: rotate(-11deg);
    background: #9bb38e
}

.publishing-art-card.front {
    width: 151px;
    height: 180px;
    right: 42px;
    top: 24px;
    transform: rotate(5deg);
    padding: 25px 21px;
    color: #789271
}

.publishing-art-card.front span {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #e5edde;
    display: grid;
    place-items: center;
    margin-bottom: 26px
}

.publishing-art-card.front i {
    display: block;
    height: 6px;
    border-radius: 5px;
    background: #e5e9df;
    margin-top: 9px
}

.publishing-art-card.front i:nth-of-type(2) {
    width: 76%
}

.publishing-art-card.front i:nth-of-type(3) {
    width: 52%
}

.publishing-float {
    position: absolute;
    background: #fff;
    border: 1px solid #e0e7db;
    box-shadow: 0 8px 24px #3e543817;
    border-radius: 9px;
    padding: 8px 10px;
    font-size: 10px;
    color: #62745e;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 3
}

.publishing-float.one {
    left: 4px;
    top: 42px;
    transform: rotate(-3deg)
}

.publishing-float.two {
    right: 0;
    bottom: 17px;
    padding: 7px
}

.publishing-float.two .social {
    margin-left: -4px;
    border: 2px solid white;
    width: 25px;
    height: 25px
}

.publishing-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px
}

.publishing-stats>div {
    padding: 17px 19px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center
}

.publishing-stats span {
    font-size: 12px;
    color: #667364;
    font-weight: 600
}

.publishing-stats strong {
    grid-row: 1/3;
    grid-column: 2;
    font-size: 26px;
    font-weight: 600;
    color: var(--green);
    padding-left: 15px
}

.publishing-stats small {
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.publishing-list-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 13px
}

.publishing-list-head h2 {
    font-size: 18px
}

.publishing-toolbar {
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
    margin-bottom: 18px
}

.modal.wide:has(.publish-composer) {
    max-width: 1120px;
    background: #f6f8f4
}

.modal:has(.publish-composer) .modal-body {
    padding: 0
}

.publish-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr);
    min-height: 670px
}

.publish-editor {
    padding: 26px 28px 0;
    background: #fff;
    border-right: 1px solid var(--line)
}

.publish-preview-pane {
    padding: 28px;
    background: linear-gradient(145deg, #eef3e9, #f8f7f0);
    position: relative
}

.publish-intro {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px
}

.publish-intro h3,
.publish-preview-head h3 {
    font-size: 20px;
    letter-spacing: -.4px;
    margin-top: 3px
}

.publish-intro p,
.publish-section-head p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px
}

.publish-eyebrow {
    font-size: 10px;
    letter-spacing: 1.6px;
    font-weight: 750;
    color: #78906f
}

.publish-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 5px;
    background: #f2f5ef;
    border: 1px solid #e4e9df;
    border-radius: 13px;
    margin-bottom: 22px
}

.publish-mode {
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #748076;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    text-align: left
}

.publish-mode:hover {
    background: #fff9
}

.publish-mode.active {
    background: #fff;
    border-color: #d7e1d2;
    color: var(--green);
    box-shadow: 0 3px 12px #2549340d
}

.publish-mode span {
    display: flex;
    flex-direction: column
}

.publish-mode strong {
    font-size: 13px
}

.publish-mode small {
    font-size: 10px;
    font-weight: 400;
    color: var(--muted)
}

.publish-section {
    border-top: 1px solid #edf0ea;
    padding: 20px 0
}

.publish-section-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px
}

.publish-section-head h4 {
    font-size: 14px
}

.publish-step {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: var(--pale);
    color: var(--green);
    font-size: 11px;
    font-weight: 750
}

.publish-channels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px
}

.publish-channel {
    min-width: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: .15s
}

.publish-channel:hover {
    border-color: #b9cbb1;
    background: #fbfdf9
}

.publish-channel:has(input:checked) {
    border-color: #86a879;
    background: #edf4e9;
    box-shadow: inset 0 0 0 1px #86a879
}

.publish-channel input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.publish-channel>span:nth-of-type(2) {
    min-width: 0
}

.publish-channel strong,
.publish-channel small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.publish-channel strong {
    font-size: 12px
}

.publish-channel small {
    font-size: 10px;
    color: var(--muted);
    margin-top: 2px
}

.publish-channel>i {
    width: 19px;
    height: 19px;
    border: 1px solid #d6ddd1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: transparent
}

.publish-channel:has(input:checked)>i {
    background: var(--green);
    border-color: var(--green);
    color: #fff
}

.publish-channel-icon .social {
    width: 28px;
    height: 28px
}

.publish-empty {
    grid-column: 1/-1;
    padding: 14px;
    border: 1px dashed #ccd7c7;
    border-radius: 10px;
    color: var(--muted);
    font-size: 12px;
    text-align: center
}

.publish-caption-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -5px 0 14px
}

.publish-dropzone {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px dashed #bdcdb6;
    border-radius: 11px;
    background: #f8faf6;
    color: #79916d;
    cursor: pointer
}

.publish-dropzone:hover {
    background: #eff5eb;
    border-color: #8eaa82
}

.publish-dropzone span {
    display: flex;
    flex-direction: column
}

.publish-dropzone strong {
    font-size: 12px;
    color: #56704e
}

.publish-dropzone small {
    font-size: 10px;
    color: var(--muted)
}

.publish-details {
    padding-top: 4px
}

.publish-schedule-panel {
    padding: 14px 14px 1px;
    margin: 2px 0 12px;
    border-radius: 10px;
    background: #f0f5ec;
    border: 1px solid #dfe9da
}

.publish-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin: 5px -28px 0;
    padding: 15px 28px;
    background: #fffc;
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.publish-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px
}

.live-pill {
    font-size: 10px;
    color: #63805c;
    background: #fff;
    padding: 5px 8px;
    border: 1px solid #dde6d8;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 5px
}

.live-pill i {
    width: 6px;
    height: 6px;
    background: #78a26e;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #e4eee0
}

.publish-phone {
    max-width: 345px;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 16px 45px #40513b17
}

.publish-phone .card-cover {
    height: 285px
}

.publish-reactions {
    padding: 12px 15px;
    border-top: 1px solid var(--line);
    color: #85977a
}

.publish-tip {
    display: flex;
    gap: 9px;
    max-width: 345px;
    margin: 18px auto 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #ffffffa8;
    color: #6d7b68;
    font-size: 11px;
    line-height: 1.5
}

.publish-tip svg {
    flex-shrink: 0;
    color: #839d77
}

.publish-tip strong {
    color: #4b6347;
    margin-right: 3px
}

@media(max-width:900px) {
    .publish-layout {
        grid-template-columns: minmax(0, 1fr) 280px
    }

    .publish-preview-pane {
        padding: 22px
    }

    .publish-editor {
        padding: 22px 22px 0
    }

    .publish-actions {
        margin-left: -22px;
        margin-right: -22px;
        padding-left: 22px;
        padding-right: 22px
    }

    .publish-phone .card-cover {
        height: 220px
    }
}

@media(max-width:760px) {
    .publishing-page-head {
        align-items: center
    }

    .publishing-page-head p {
        display: none
    }

    .publishing-hero {
        padding: 25px 22px;
        min-height: 235px
    }

    .publishing-hero h2 {
        font-size: 26px
    }

    .publishing-hero-art {
        display: none
    }

    .publishing-stats {
        grid-template-columns: 1fr
    }

    .publishing-list-head {
        align-items: stretch;
        flex-direction: column
    }

    .publishing-list-head .search-field {
        width: 100%
    }

    .modal:has(.publish-composer) .modal-head {
        padding: 14px 18px
    }

    .publish-layout {
        display: block
    }

    .publish-editor {
        padding: 18px 18px 0;
        border-right: 0
    }

    .publish-preview-pane {
        display: none
    }

    .publish-channels {
        grid-template-columns: 1fr
    }

    .publish-mode {
        padding: 9px
    }

    .publish-mode small {
        display: none
    }

    .publish-actions {
        margin-left: -18px;
        margin-right: -18px;
        padding: 12px 18px max(14px, env(safe-area-inset-bottom))
    }

    .publish-actions>.row {
        margin-left: auto
    }

    .publish-intro h3 {
        font-size: 18px
    }
}

.content-card-actions {
    display: flex;
    gap: 7px;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid var(--line)
}

.content-card-actions .btn {
    flex: 1;
    min-height: 32px
}

.content-card-actions .danger {
    color: #ad5d56
}

.content-card-meta {
    min-height: 22px
}

.publish-channel-tools {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: #9aa496
}

.publish-channel-tools button {
    border: 0;
    background: none;
    padding: 2px;
    color: var(--green);
    font-size: 10px
}

.schedule-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: -3px 0 13px
}

.schedule-presets button {
    border: 1px solid #cedcc8;
    border-radius: 999px;
    background: #fff;
    padding: 5px 9px;
    color: #607957;
    font-size: 10px
}

.schedule-presets button:hover {
    background: #e6efe1;
    border-color: #9ab68e
}

.media-library-picker {
    margin-top: 10px
}

.media-library-picker summary {
    display: flex;
    align-items: center;
    gap: 6px
}

.media-pick-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    margin-top: 10px;
    max-height: 230px;
    overflow: auto
}

.media-pick {
    position: relative;
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 9px;
    background: #eef2eb;
    padding: 0;
    overflow: hidden
}

.media-pick img,
.media-pick video {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.media-pick span {
    position: absolute;
    inset: auto 0 0;
    background: #1f3023b8;
    color: #fff;
    padding: 3px;
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.media-pick i {
    display: none;
    position: absolute;
    right: 4px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    place-items: center
}

.media-pick.selected {
    border-color: var(--green)
}

.media-pick.selected i {
    display: grid
}

.publishing-history {
    margin-top: 30px
}

.publishing-history .panel-head p {
    margin-top: 4px
}

.publishing-history td {
    font-size: 12px
}

.publication-error {
    max-width: 340px;
    margin-top: 4px;
    color: #b56a62;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.history-actions {
    justify-content: flex-end;
    gap: 5px
}

.publication-remote-cleanup {
    justify-content: space-between;
    align-items: center;
    gap: 16px
}

.publication-remote-cleanup>div {
    min-width: 0
}

.publication-remote-cleanup .help-text {
    margin: 4px 0 0
}

.publication-remote-cleanup .btn {
    flex-shrink: 0
}

@media(max-width:760px) {
    .media-pick-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .publishing-history {
        margin-top: 22px
    }

    .publishing-history table {
        min-width: 760px
    }

    .publication-remote-cleanup {
        align-items: stretch;
        flex-direction: column
    }
}

/* Comment center — post boxes and moderation tools inspired by automulti-v3. */
.comment-toolbar {
    margin-bottom: 14px
}

.comments-workspace {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    height: calc(100dvh - 245px);
    min-height: 570px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden
}

.comment-post-list {
    min-width: 0;
    overflow-y: auto;
    background: #fbfcfa;
    border-right: 1px solid var(--line)
}

.comment-work-area {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(150px, 42%) minmax(260px, 1fr);
    background: #f6f8f4
}

.comment-column-title {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 49px;
    padding: 13px 15px;
    background: #fffc;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px
}

.comment-column-title span {
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--pale);
    color: var(--green);
    text-align: center;
    font-size: 10px
}

.comment-post-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 11px;
    width: 100%;
    padding: 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    text-align: left;
    color: inherit
}

.comment-post-card:hover {
    background: #f4f8f1
}

.comment-post-card.active {
    background: #edf4e8;
    box-shadow: inset 3px 0 var(--green)
}

.comment-post-cover {
    position: relative
}

.comment-post-thumb {
    width: 72px;
    height: 82px;
    border-radius: 9px;
    overflow: hidden;
    background: #e5ecdf
}

.comment-post-thumb img,
.comment-post-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.comment-post-thumb.thumb-art:after {
    content: '';
    display: block;
    width: 35px;
    height: 43px;
    border-radius: 7px;
    background: #fffdf4;
    box-shadow: 8px 7px #99aa8b55;
    transform: rotate(-7deg);
    margin: 18px auto
}

.comment-platform {
    position: absolute;
    right: -5px;
    bottom: -4px
}

.comment-platform .social {
    border: 2px solid #fff
}

.comment-post-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-top: 1px
}

.comment-post-info>strong {
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.comment-post-info>small {
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.comment-post-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
    font-size: 9px;
    color: var(--muted)
}

.comment-post-stats span {
    display: flex;
    align-items: center;
    gap: 3px
}

.comment-post-stats b {
    font-weight: 600;
    color: #a3544f;
    background: #fff0ed;
    border-radius: 999px;
    padding: 2px 5px
}

.comment-post-stats time {
    margin-left: auto
}

.comment-feed-scroll {
    padding: 12px;
    overflow-y: auto
}

.comment-box {
    position: relative;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    margin-bottom: 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px #27402d08
}

.comment-box:hover {
    border-color: #b8cbae
}

.comment-box.active {
    border-color: #7fa170;
    box-shadow: 0 0 0 2px #dfead8
}

.comment-box-head {
    display: flex;
    align-items: center;
    gap: 9px
}

.comment-box-head h3 {
    font-size: 12px
}

.comment-box-head small,
.comment-box-head span {
    font-size: 10px;
    color: var(--muted)
}

.comment-box-head .unread-dot {
    top: 10px;
    right: 10px
}

.comment-box>p {
    font-size: 12px;
    line-height: 1.55;
    margin: 10px 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere
}

.comment-box-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #edf0ea;
    padding-top: 8px
}

.comment-box-actions .text-btn {
    font-size: 10px
}

.comment-box-actions .text-btn.active {
    color: #b95252
}

.comment-box-actions>span {
    margin-left: auto
}

.comment-box-actions .badge {
    font-size: 8px
}

.comment-detail {
    min-height: 0;
    border-top: 1px solid var(--line)
}

.comment-detail .chat-head {
    border-radius: 0
}

.comment-detail .chat-compose {
    padding-bottom: 13px
}

.comment-detail .empty {
    margin: auto
}

.icon-btn.active {
    color: #c05050;
    background: #fff0ef
}

@media(max-width:980px) {
    .comments-workspace {
        grid-template-columns: 250px minmax(0, 1fr)
    }
}

@media(max-width:760px) {
    .comment-toolbar .search-field {
        display: none
    }

    .comments-workspace {
        display: block;
        height: calc(100dvh - 205px);
        min-height: 430px
    }

    .comment-post-list,
    .comment-work-area {
        height: 100%;
        border: 0
    }

    .comments-workspace .comment-work-area {
        display: none
    }

    .comments-workspace.has-post .comment-post-list {
        display: none
    }

    .comments-workspace.has-post .comment-work-area {
        display: grid
    }

    .comment-work-area {
        grid-template-rows: auto minmax(150px, 40%) minmax(250px, 1fr)
    }

    .comment-post-card {
        grid-template-columns: 76px minmax(0, 1fr)
    }

    .comment-post-thumb {
        width: 76px
    }

    .comment-detail .chat-head .btn {
        display: none
    }
}

/* Facebook comments use the rounded conversation style from automulti-v3. */
.comment-feed-scroll {
    padding: 18px 22px
}

.comment-thread {
    max-width: 780px;
    margin: 0 0 22px
}

.comment-thread-row {
    display: flex;
    align-items: flex-start;
    gap: 12px
}

.comment-thread-row>.avatar {
    width: 42px;
    height: 42px;
    margin-top: 2px
}

.comment-thread-body {
    min-width: 0;
    flex: 1
}

.comment-bubble {
    display: block;
    width: 100%;
    padding: 14px 17px;
    border: 1px solid #e6ebe3;
    border-radius: 20px 20px 20px 7px;
    background: #fff;
    text-align: left;
    color: inherit;
    box-shadow: 0 2px 9px #27402d0b
}

.comment-thread.active .comment-bubble {
    border-color: #9bb993;
    box-shadow: 0 0 0 2px #e2ecdd
}

.comment-bubble:hover {
    border-color: #b9cbb2;
    box-shadow: 0 5px 16px #27402d11
}

.comment-bubble-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 5px
}

.comment-bubble-head strong {
    font-size: 13px
}

.comment-bubble-head time {
    font-size: 10px;
    color: var(--muted);
    font-weight: 600
}

.comment-bubble-text {
    display: block;
    font-size: 13px;
    line-height: 1.6;
    color: #59675f;
    white-space: pre-wrap;
    overflow-wrap: anywhere
}

.comment-bubble-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 6px 0 0 9px
}

.comment-bubble-actions .text-btn {
    padding: 2px;
    font-size: 10px;
    color: #7e8b82
}

.comment-bubble-actions .text-btn.active {
    color: #bd5353
}

.comment-bubble-actions>b {
    font-size: 9px;
    color: #a3544f;
    background: #fff0ed;
    border-radius: 999px;
    padding: 2px 6px
}

.comment-reply-bubble {
    max-width: 86%;
    margin: 10px 0 0 28px;
    padding: 10px 13px;
    border-radius: 16px 16px 5px 16px;
    background: #e7f1e2;
    border: 1px solid #d4e4ce
}

.comment-reply-bubble span {
    display: block;
    font-size: 9px;
    color: #72816f;
    margin-bottom: 3px
}

.comment-reply-bubble p {
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap
}

.comment-detail {
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end
}

.comment-detail>.chat-head,
.comment-detail>.chat-messages {
    display: none
}

.comment-reply-context {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin: 14px 16px 0;
    padding: 11px 14px;
    border-left: 4px solid #91aa86;
    border-radius: 0 10px 10px 0;
    background: #eef4ea
}

.comment-reply-context span {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted)
}

.comment-reply-context strong {
    font-size: 12px
}

.comment-reply-context p {
    font-size: 11px;
    color: #69766e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 620px
}

.comment-work-area {
    grid-template-rows: auto minmax(0, 1fr) auto
}

.comment-thread {
    max-width: none
}

.comment-author-avatar {
    overflow: hidden;
    padding: 0
}

.comment-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.comment-chat-head {
    min-height: 66px;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 11px
}

.comment-chat-head>.avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px
}

.comment-chat-head strong {
    display: block;
    font-size: 14px;
    color: var(--ink)
}

.comment-chat-head small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    color: var(--muted)
}

.comment-feed-scroll {
    min-height: 0;
    background: #f3f6f1
}

.comment-detail {
    border-top: 1px solid var(--line)
}

.comment-detail .chat-compose {
    width: 100%;
    padding: 13px 16px;
    background: #fff
}

.comment-detail .chat-compose textarea {
    min-height: 58px;
    max-height: 130px
}

.comment-thread {
    width: min(760px, calc(100% - 24px))
}

.comment-bubble {
    width: auto;
    max-width: 100%
}

.comment-thread.active .comment-bubble {
    border-color: #dce5d8;
    box-shadow: 0 2px 9px #27402d0b
}

.content.inbox-page {
    height: calc(100dvh - 82px);
    max-width: none;
    padding-bottom: 18px;
    display: flex;
    flex-direction: column
}

.content.inbox-page .comment-toolbar {
    flex: 0 0 auto
}

.content.inbox-page .comments-workspace {
    height: auto;
    min-height: 0;
    flex: 1
}

.comment-person-card {
    position: relative;
    width: 100%;
    padding: 13px 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    text-align: left
}

.comment-person-card:hover {
    background: #f6f9f4
}

.comment-person-card.active {
    background: #edf4e8;
    box-shadow: inset 3px 0 var(--green)
}

.comment-person-card>.avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px
}

.comment-person-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px
}

.comment-person-name strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px
}

.comment-person-name time {
    flex-shrink: 0;
    font-size: 9px;
    color: var(--muted)
}

.comment-person-card p {
    margin: 3px 0 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    color: #65726a
}

.comment-person-card small {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    color: var(--muted)
}

.comment-person-card small .social {
    width: 16px;
    height: 16px;
    font-size: 9px
}

.comment-person-card>b {
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 9px
}

.comment-feed-scroll {
    display: flex;
    flex-direction: column;
    gap: 13px
}

.comment-message {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    width: min(760px, 82%)
}

.comment-message.outgoing {
    align-self: flex-end;
    justify-content: flex-end
}

.comment-message>.avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px
}

.comment-message-content {
    min-width: 0
}

.comment-message-bubble {
    padding: 10px 14px;
    border-radius: 17px 17px 17px 5px;
    background: #fff;
    border: 1px solid #e5eae2;
    box-shadow: 0 1px 3px #253b2d0a
}

.comment-message.outgoing .comment-message-bubble {
    border-radius: 17px 17px 5px 17px;
    background: #e3efdd;
    border-color: #d4e4cd
}

.comment-message-bubble p {
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere
}

.comment-message-bubble img,
.comment-message-bubble video {
    display: block;
    max-width: 320px;
    max-height: 280px;
    margin-top: 8px;
    border-radius: 10px
}

.comment-message-meta {
    min-height: 22px;
    margin: 3px 5px 0;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 9px;
    color: var(--muted)
}

.comment-message.outgoing .comment-message-meta {
    justify-content: flex-end
}

.comment-message-meta .text-btn {
    padding: 1px;
    font-size: 9px;
    color: #75837a
}

#comment-reply-preview {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  max-width: 100%;
  padding-top: 8px;
}
#comment-reply-preview:empty { display: none; }
#comment-reply-preview .comment-media-preview { flex: 0 0 130px; }
.comment-media-preview {
    position: relative;
    width: 132px;
    margin: 8px 0 10px;
    padding: 5px;
    background: #f7f9f5;
    border: 1px solid var(--line);
    border-radius: 10px
}

.comment-media-preview img,
.comment-media-preview video {
    display: block;
    width: 120px;
    height: 78px;
    object-fit: cover;
    border-radius: 7px;
    background: #17201b
}

.comment-media-preview span {
    display: block;
    margin-top: 4px;
    padding: 0 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
    color: var(--muted)
}

.comment-media-preview button {
    position: absolute;
    z-index: 3;
    right: -8px;
    top: -8px;
    width: 24px;
    height: 24px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #304c3d;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 16px;
    line-height: 1;
    box-shadow: 0 2px 7px #0003
}

.comment-message-meta .danger-text {
    color: #a95a55
}

.comment-message.failed .comment-message-bubble {
    background: #fff1ef;
    border-color: #e7b7b0
}

.comment-message.failed .comment-message-meta {
    max-width: 440px;
    color: #a5453d;
    text-align: right
}

@media(max-width:760px) {
    .comment-feed-scroll {
        padding: 14px
    }

    .comment-thread {
        margin-bottom: 18px
    }

    .comment-thread-row>.avatar {
        width: 36px;
        height: 36px
    }

    .comment-bubble {
        padding: 12px 14px;
        border-radius: 17px 17px 17px 6px
    }

    .comment-reply-context {
        margin: 10px 11px 0
    }

    .comment-reply-context .btn {
        display: none
    }
}

@media(max-width:760px) {
    .comment-work-area {
        grid-template-rows: auto minmax(0, 1fr) auto
    }

    .content.inbox-page {
        height: calc(100dvh - 65px);
        padding-bottom: 76px
    }
}

.template-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px
}

.template-attachment {
    position: relative;
    width: 110px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px
}

.template-attachment img,
.template-attachment video {
    width: 100%;
    height: 75px;
    object-fit: contain;
    border-radius: 5px
}

.template-attachment span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px
}

.template-attachment button {
    position: absolute;
    right: 2px;
    top: 2px;
    padding: 1px 7px;
    min-height: 26px;
    background: white
}

#template-media-grid {
    max-height: 50vh;
    overflow: auto
}

.chat-library-tile[hidden] {
    display: none !important
}

.copy-media {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px
}

.copy-media img,
.copy-media video {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 12px;
    background: #eef1f0
}

#copy-preview-form .input {
    flex: 1;
    min-width: 180px
}

#drive-config-form label,
#drive-folder-form label {
    display: block;
    margin: 14px 0
}

#drive-config-form .input,
#drive-folder-form .input {
    margin-top: 6px
}

.copy-job-controls .input {
    width: auto;
    flex: 0 1 180px;
    margin: 0
}

.copy-job-controls input.input {
    flex: 1 1 260px
}

.copy-job-table th,
.copy-job-table td {
    padding: 10px 8px
}

.copy-job-table td {
    font-size: 12px
}

.copy-job-table .btn.small {
    flex-shrink: 0
}

.copy-job-table td:last-child {
    overflow: visible
}
.template-attachments{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.template-attachment{position:relative;width:110px;border:1px solid var(--line);border-radius:8px;padding:6px}.template-attachment img,.template-attachment video{width:100%;height:75px;object-fit:contain;border-radius:5px}.template-attachment span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.template-attachment button{position:absolute;right:2px;top:2px;padding:1px 7px;min-height:26px;background:white}#template-media-grid{max-height:50vh;overflow:auto}
.chat-library-tile[hidden]{display:none!important}
.copy-media{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.copy-media img,.copy-media video{width:100%;max-height:520px;object-fit:contain;border-radius:12px;background:#eef1f0}#copy-preview-form .input{flex:1;min-width:180px}#drive-config-form label,#drive-folder-form label{display:block;margin:14px 0}#drive-config-form .input,#drive-folder-form .input{margin-top:6px}

.copy-job-controls .input{width:auto;flex:0 1 180px;margin:0}.copy-job-controls input.input{flex:1 1 260px}.copy-job-table th,.copy-job-table td{padding:10px 8px}.copy-job-table td{font-size:12px}.copy-job-table .btn.small{flex-shrink:0}.copy-job-table td:last-child{overflow:visible}
.copy-job-controls{flex-wrap:wrap;gap:10px;margin-bottom:12px}.copy-job-controls>input{flex:1;min-width:200px}.copy-job-controls>select{width:auto}.copy-platform-filter{position:relative;min-width:170px}.copy-platform-filter summary{cursor:pointer;padding:10px 14px;border:1px solid var(--line);border-radius:8px;background:white}.copy-platform-filter>div{position:absolute;right:0;top:100%;z-index:30;width:240px;max-height:360px;overflow:auto;padding:8px;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #0002}.copy-platform-filter label{display:flex;align-items:center;gap:10px;padding:8px;margin:0;cursor:pointer}.copy-platform-filter label:hover{background:#f1f5f2}.copy-platform-icon{display:inline-flex;align-items:center;justify-content:center;color:white;width:22px;height:22px;border-radius:6px;font-weight:700;font-size:12px;flex-shrink:0}.copy-selection-bar{gap:8px;min-height:40px;margin-bottom:8px}.copy-job-table{width:100%;min-width:850px;table-layout:fixed}.copy-job-table th,.copy-job-table td{padding:10px 8px;text-align:left;vertical-align:middle}.copy-job-table input[type=checkbox]{width:17px;height:17px;cursor:pointer;accent-color:var(--primary)}.copy-sort{background:none;border:0;padding:0;color:inherit;font:inherit;cursor:pointer}.copy-sort:hover{color:var(--primary)}.copy-caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.copy-status{gap:5px;flex-wrap:wrap}.copy-job-table small{display:block;overflow-wrap:anywhere}
.copy-job-table tr[data-copy-row]{touch-action:pan-y;-webkit-touch-callout:none}.copy-job-table tr[data-copy-row]:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}.copy-job-table tr:has([data-copy-select]:checked){box-shadow:inset 3px 0 var(--primary);background:#eaf3ec!important}
.copy-publication-icon{border:0;padding:0;text-decoration:none;cursor:pointer;width:25px;height:25px}.copy-publication-icon:hover{outline:2px solid #b9c7bc;outline-offset:2px}.copy-publication-icon:disabled{cursor:default}.copy-publication-icon:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.publish-validation{padding:14px 16px;background:#fff7e6;border:1px solid #e8ca80;border-radius:10px;color:#754e13}.publish-validation ul{padding-left:20px;margin:10px 0}.publish-validation li+li{margin-top:8px}.publish-validation p{margin:8px 0 0;font-size:12px}
.chat-channel-picker{position:relative;margin-top:6px}.chat-channel-picker summary{list-style:none;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:white;cursor:pointer}.chat-channel-picker summary:after{content:"⌄";float:right}.chat-channel-picker>div{position:absolute;left:0;right:0;top:100%;z-index:50;max-height:280px;overflow:auto;padding:8px;border:1px solid var(--line);border-radius:10px;background:white;box-shadow:0 8px 24px #0002}.chat-channel-picker label{display:flex;align-items:center;gap:8px;margin:0;padding:10px}.chat-channel-picker label:hover{background:#eff5ec}.chat-channel-picker small{color:var(--text-muted);margin-left:auto}

.calendar-event.chat-calendar-reminder{width:100%;text-align:left;border:1px solid #f0b7bf;background:#fff0f2;color:#aa2337;cursor:pointer}.calendar-appointment-label{display:inline-flex;align-items:center;gap:4px;color:#c62640}.calendar-legend{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin-top:12px}.calendar-legend>span{display:inline-flex;align-items:center;gap:4px}

.comment-sync-status{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.comment-channel-status{font-size:12px;border:1px solid #dbe4db;border-radius:8px;padding:7px 10px;display:flex;align-items:center;gap:5px;flex-wrap:wrap}.comment-channel-status.error{border-color:#edbdba;background:#fff5f4;color:#963d35}.comment-toolbar select{max-width:220px}
#comment-channel{appearance:none;-webkit-appearance:none;min-width:174px;height:38px;padding:0 38px 0 13px;border:1px solid var(--line);border-radius:9px;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2368796d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center;color:var(--text);font:inherit;font-size:13px;line-height:1;cursor:pointer;outline:none;box-shadow:0 1px 2px #1f38250a;transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}
#comment-channel:hover{border-color:#b5c5b8;background-color:#fbfcfa}#comment-channel:focus-visible{border-color:var(--primary);box-shadow:0 0 0 3px #2d6a4f1a}#comment-channel:disabled{cursor:not-allowed;opacity:.6;background-color:var(--surface-sunken)}

body.comments-route .topbar{display:none}body.comments-route .content.inbox-page{height:100dvh;padding-top:12px}
.comment-original-post{border:1px solid #dce5dc;border-radius:12px;background:#fff;padding:12px 16px;margin:12px 16px}.comment-original-heading{display:flex;align-items:center;justify-content:space-between}.comment-post-excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;margin:5px 0 10px;line-height:1.5}.comment-post-stats,.comment-parent-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;color:#687a70;font-size:12px}.comment-stat{display:inline-flex;align-items:center;gap:5px}.comment-post-stats time{margin-left:auto}.comment-parent-context{margin:12px 16px;padding:14px 16px;background:#f2f5f9;border:1px solid #d8e1ea;border-left:3px solid #71879f;border-radius:10px}.comment-parent-author{display:flex;gap:12px;align-items:center;margin-top:8px;font-weight:600}.comment-parent-author time{font-size:11px;font-weight:400;color:#718077}.comment-parent-context p{white-space:pre-wrap;margin:8px 0;overflow-wrap:anywhere}.comment-current-label{margin:14px 20px 8px;display:flex;gap:12px;align-items:center;color:#576d5f;font-weight:600;flex-wrap:wrap}.comment-reply-destination{padding:5px 9px;margin:5px 0;background:#edf4e8;border-radius:6px;font-size:12px;color:#316147}.comment-context-errors{margin:8px 20px;font-size:11px;color:#89633b}.comment-context-errors p{overflow-wrap:anywhere}.comment-parent-actions .active,.comment-current-label .active{color:#236647;font-weight:700}

#comment-sync-status{display:block;margin:0 0 8px;font-size:12px;color:#68796d}#comment-sync-status summary{cursor:pointer;padding:3px 8px}.comment-sync-content{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.comment-reply-target-label{display:block;color:#6b7c70;margin-bottom:5px}

.copy-mode-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:18px}.copy-mode-tabs button{border:1px solid #dce5d8;border-radius:8px;padding:10px 14px;background:#fff;cursor:pointer}.copy-mode-tabs button[aria-selected=true]{background:#e8f0df;color:#205a44;font-weight:600}.copy-source-table td{vertical-align:top}.auto-plan-card{border-bottom:1px solid #e1e7dc;padding:12px 0}.auto-platforms{position:relative}.auto-platforms[open]{background:white;border:1px solid #dce5d8;border-radius:8px;padding:8px}.auto-platforms label{display:block}#auto-plan-form fieldset{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0;padding:10px;border:1px solid #dce5d8;border-radius:8px}#auto-plan-form fieldset label{display:flex;align-items:center;gap:5px}#auto-plan-form label{margin-top:8px}#copy-auto-body .panel{margin-bottom:18px}#copy-auto-body select{max-width:100%}#auto-source-form label{min-width:0}#auto-source-status{overflow-wrap:anywhere}

.calendar-event.copy-calendar-event{background:#eaf2fb;color:#245b8b;border:1px solid #bdd4eb;width:100%;text-align:left;cursor:pointer}

.auto-item-published{background:#e9f6eb}.auto-item-failed,.auto-item-unknown{background:#fff0ee}.auto-item-preparing,.auto-item-publishing{background:#fff8df}.auto-platforms{position:relative}.auto-platforms[open]{z-index:12}.auto-platforms label{display:flex;align-items:center;gap:8px;padding:6px}.auto-platforms[open]{background:white;border:1px solid var(--border);border-radius:8px;padding:8px}#auto-plan-preview{max-height:280px;overflow:auto}.copy-source-table td:nth-last-child(3){max-width:600px}.copy-mode-tabs{flex-wrap:wrap}

#copy-auto-body .row{gap:8px}#auto-source-form{align-items:end;gap:14px}#auto-source-form>.btn{align-self:end;height:42px}#copy-auto-body .table-wrap{overflow-x:auto}#auto-source-select{min-width:250px;flex:1}#auto-plan-rows select.input{width:auto;min-width:140px}#copy-auto-body th .text-btn{font:inherit;color:inherit;background:transparent;border:0;padding:0}#copy-auto-body .panel-body>h2{margin-bottom:6px}.copy-source-table td a{overflow-wrap:anywhere}#auto-source-status p{padding:12px;background:#f4f6ef;border-radius:8px;margin:10px 0}
/* Compact source scanning and campaign workspace. */
#copy-auto-body{--auto-muted:#73817b;--auto-line:#e5ebe5;--auto-surface:#f6f8f4}
#copy-auto-body .auto-panel{margin-bottom:16px;border-radius:14px;overflow:visible}
#copy-auto-body .auto-panel>.panel-body{padding:22px 24px;min-width:0}
#copy-auto-body h2{font-size:19px;margin:0 0 18px}#copy-auto-body h3{font-size:15px;margin:0;white-space:nowrap}
#auto-source-form.auto-scan-form{display:block;margin:0 0 14px}#auto-source-form label,.auto-source-picker{display:block;font-size:12px;color:var(--auto-muted)}
#auto-source-form .input,.auto-source-picker .input{margin-top:6px;height:40px;min-width:0;width:100%}
.auto-scan-dates{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:12px;margin-top:12px}.auto-scan-dates .btn{height:40px;display:flex;gap:6px;align-items:center;justify-content:center;min-width:96px}
#auto-source-select{min-width:0;font-size:12px}.auto-source-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.auto-source-actions:empty{display:none}.auto-selection-count{font-size:12px;color:#26634e;margin-left:8px}
#auto-source-status p{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:transparent;padding:0;margin:12px 0 0;font-size:12px;color:var(--auto-muted)}.auto-scan-note{flex-basis:100%}.auto-state{display:inline-flex;align-items:center;padding:3px 8px;border-radius:6px;background:#eef4e9;color:#42634c;font-size:11px;white-space:nowrap}.auto-state.warn{background:#fff2dc;color:#9d6b16}
.auto-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}.auto-count{font-size:11px;font-weight:500;color:var(--auto-muted);background:var(--auto-surface);padding:3px 7px;border-radius:5px;margin-left:5px}
.auto-list-tools{display:flex;gap:12px;align-items:center}.auto-list-tools>.input{width:260px;max-width:100%;height:36px;font-size:12px}.auto-inline-check{display:flex;align-items:center;gap:6px;font-size:12px;white-space:nowrap}.auto-inline-check input{margin:0}
#copy-auto-body .auto-compact-table{width:100%;font-size:12px;border-collapse:collapse;margin:0}.auto-compact-table th{font-size:11px;font-weight:500;color:var(--auto-muted);background:#f6f8f4;white-space:nowrap}.auto-compact-table th,.auto-compact-table td{padding:12px 10px;vertical-align:top;border-bottom:1px solid var(--auto-line)}.auto-compact-table td:first-child{color:var(--auto-muted);width:34px}.auto-compact-table .auto-check{width:34px;padding-right:4px}.auto-compact-table input[type=checkbox]{width:16px;height:16px;accent-color:#27654f;margin:0;vertical-align:middle}.auto-compact-table time{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px}.auto-compact-table time span{display:block;color:var(--auto-muted);font-size:11px;margin-top:3px}.auto-compact-table .auto-caption{min-width:220px;width:60%;max-width:none;line-height:1.55}.auto-caption a{color:inherit;white-space:pre-wrap;overflow-wrap:anywhere}.auto-caption a:hover{color:#27654f}.auto-row-selected{background:#f0f6e9}.auto-compact-table .auto-empty{padding:28px 12px;text-align:center;color:var(--auto-muted)}
.auto-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;font-size:11px;color:var(--auto-muted)}.auto-pager>div{display:flex;gap:9px;align-items:center}.auto-pager .btn{height:30px;min-width:30px;padding:0 9px;font-size:17px}.auto-pager button:disabled{opacity:.35;cursor:default}
.auto-manager-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) auto;align-items:end;gap:12px}.auto-manager-row>label{font-size:12px;color:var(--auto-muted);min-width:0}.auto-manager-row .input{width:100%;min-width:0;height:38px;margin-top:5px;font-size:12px}.auto-manager-actions{display:flex;gap:6px;flex-wrap:wrap}.auto-plan-card{border:0;padding:0}.auto-manager-actions .btn{height:38px}
.auto-plan-picker-field{min-width:0;font-size:12px;color:var(--auto-muted)}.auto-plan-picker{margin-top:5px}.auto-plan-picker>summary>span{overflow:hidden;text-overflow:ellipsis}.auto-plan-picker .auto-multi-menu{width:100%;max-width:100%;box-sizing:border-box}.auto-plan-picker .auto-multi-menu>.input{margin:0 0 6px}.auto-plan-picker [hidden]{display:none!important}.auto-plan-picker .auto-plan-empty{padding:10px;margin:0}.auto-plan-picker label span{min-width:0;overflow-wrap:anywhere}.auto-plan-picker label small{display:block}
.auto-result-filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-width:0}.auto-result-filters>.input,#auto-plan-rows .auto-result-filters>select.input{height:36px;width:auto;min-width:120px;font-size:12px}.auto-result-filters>input.input{width:200px}.auto-result-filters .auto-multi{min-width:146px;font-size:12px}.auto-item-selection{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 10px}.auto-item-selection .btn{font-size:11px;padding:5px 9px}.auto-row-actions{display:flex;gap:4px;flex-wrap:wrap;min-width:130px}.auto-row-actions .btn{font-size:11px;padding:4px 7px}.auto-result-table .auto-caption{width:40%}.auto-result-table td:last-child{max-width:190px}
.auto-multi{position:relative;border:1px solid #d9e2d7;border-radius:8px;background:white;min-width:0}.auto-multi>summary{height:38px;display:flex;align-items:center;gap:7px;padding:0 12px;cursor:pointer;list-style:none;color:#2c493c;white-space:nowrap}.auto-multi>summary::-webkit-details-marker{display:none}.auto-multi>summary:after{content:'⌄';margin-left:auto;color:#84928b}.auto-multi[open]{z-index:30}.auto-multi-menu{position:absolute;z-index:40;top:calc(100% + 5px);left:0;background:white;box-shadow:0 10px 30px #1e392022;border:1px solid #dce5d9;border-radius:10px;padding:6px;min-width:100%;width:max-content;max-width:min(340px,calc(100vw - 60px));max-height:245px;overflow:auto}.auto-multi-menu>label{display:flex!important;align-items:center;gap:8px;margin:0!important;padding:9px 10px!important;font-size:12px;color:#304a3b;cursor:pointer;border-radius:6px;white-space:normal}.auto-multi-menu>label:hover{background:#f3f7ee}.auto-multi-menu input{margin:0;accent-color:#27654f;flex-shrink:0}.auto-multi-menu label:first-child{border-bottom:1px solid #eef1ea}.auto-multi-menu small{font-size:10px;color:#819084}.auto-provider-dot{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;background:#eff3ed;border-radius:6px}.auto-platforms[open]{padding:0;border:1px solid #d9e2d7;border-radius:8px}.auto-platforms .auto-multi-menu{left:auto;right:0}
.modal:has(#auto-plan-form){max-width:850px;width:calc(100% - 40px);border-radius:16px}.modal:has(#auto-plan-form) .modal-body{padding:22px 24px;overflow-y:auto}.modal:has(#auto-plan-form) .modal-head{padding:20px 24px}.modal:has(#auto-plan-form) h2{font-size:19px}
#auto-plan-form{font-size:12px;--auto-muted:#73817b}#auto-plan-form label{display:block;margin:0;color:#63776b;font-size:12px}#auto-plan-form .input{height:40px;min-width:0;font-size:13px;margin-top:6px;width:100%}#auto-plan-form .auto-form-heading,#auto-plan-form .auto-form-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.auto-form-heading{padding-bottom:18px;border-bottom:1px solid #e7ece4}.auto-form-two{margin-bottom:16px}.auto-form-three{display:grid;grid-template-columns:1fr 1fr .85fr;gap:12px;margin-bottom:16px}
#auto-plan-form fieldset.auto-config-fields{display:block;padding:18px 0 0;margin:0;border:0;min-width:0}#auto-plan-form fieldset:disabled{opacity:.7}#auto-plan-form fieldset:disabled summary{pointer-events:none}.auto-multi-field>span{display:block;color:#63776b;margin-bottom:6px}.auto-date-field{display:flex;position:relative;min-width:0}.auto-date-field input[type=text]{padding-right:38px}.auto-date-picker{position:absolute;right:0;top:6px;width:34px;height:40px;border:0;color:transparent;background:transparent;cursor:pointer;padding:7px;font-size:0}.auto-date-picker::-webkit-datetime-edit{display:none}.auto-date-picker::-webkit-calendar-picker-indicator{opacity:.65;margin:0;width:18px;height:18px}
#auto-time-slots{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:6px}.auto-time-chip{position:relative;width:104px;display:inline-flex;align-items:center}#auto-plan-form .auto-time-chip .input{margin:0;padding:9px 28px 9px 12px;letter-spacing:1px;font-variant-numeric:tabular-nums}.auto-time-chip .icon-btn{position:absolute;right:1px;top:4px;width:25px;height:32px;font-size:17px;color:#98a49d}.auto-time-row{display:flex;flex-wrap:wrap;gap:0 15px;align-items:center}.auto-time-row>label:first-child{width:100%}.auto-time-row .auto-interval{margin-left:auto!important;width:130px;margin-top:8px!important}.auto-time-row #auto-time-slots>.btn{height:40px;min-width:40px;font-size:22px}
.auto-config-note{padding:12px;background:#f2f7eb;color:#426448;line-height:1.6;border-radius:9px;margin-top:14px}.auto-inline-create{display:flex;gap:8px;align-items:end;padding-top:10px}.auto-inline-create>.input{flex:1}#auto-plan-form .auto-inline-create .btn{height:40px}.auto-form-help{font-size:11px;color:#819082;margin:16px 0}.auto-form-footer{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #e7ece4;padding-top:16px}.auto-form-footer .btn{min-height:40px}#auto-plan-preview:not(:empty){background:#f7f9f4;border-radius:8px;padding:10px;margin-bottom:12px;font-size:12px}#auto-plan-preview p{margin:4px 0}
@media(min-width:1100px){.auto-scan-form .auto-source-url{max-width:100%}.auto-section-head:has(.auto-result-filters){align-items:flex-start}}
@media(max-width:900px){.auto-manager-row{grid-template-columns:1fr 1fr}.auto-manager-actions{grid-column:1/-1}.auto-result-filters{width:100%}.auto-result-filters>input.input{flex:1;min-width:180px}.auto-compact-table{min-width:670px}.auto-result-table{min-width:900px}.auto-form-three{grid-template-columns:1fr 1fr}.auto-form-three>label:last-child{grid-column:1/-1}.auto-result-filters .auto-multi{flex:1}}
@media(max-width:600px){#copy-auto-body .auto-panel>.panel-body{padding:16px}.copy-mode-tabs{gap:5px;margin-bottom:12px}.copy-mode-tabs button{padding:9px 10px;font-size:12px;flex:1;min-width:100px}#copy-auto-body h2{font-size:17px;margin-bottom:14px}.auto-scan-dates{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:6px}.auto-scan-dates .btn{min-width:54px;padding:0 9px}.auto-scan-dates .btn svg{display:none}#auto-source-form .input{font-size:11px;padding:8px 5px}.auto-source-actions{gap:6px}.auto-source-actions .btn{font-size:11px;padding:6px 8px}.auto-selection-count{margin-left:0}.auto-list-tools{width:100%;gap:8px}.auto-list-tools>.input{flex:1;min-width:0;width:0}.auto-manager-row{gap:10px;grid-template-columns:1fr}.auto-manager-actions{grid-column:auto}.auto-manager-actions .btn{flex:1}.auto-result-filters{display:grid;grid-template-columns:1fr 1fr;gap:7px}.auto-result-filters>input.input{grid-column:1/-1;width:100%;min-width:0}.auto-result-filters>.input,#auto-plan-rows .auto-result-filters>select.input{min-width:0;width:100%;font-size:11px}.auto-result-filters .auto-multi{min-width:0;grid-column:1/-1}.auto-platforms .auto-multi-menu{left:0;right:auto;width:100%}.auto-pager{font-size:10px;gap:6px}.modal:has(#auto-plan-form){width:calc(100% - 20px);max-height:calc(100dvh - 24px)}.modal:has(#auto-plan-form) .modal-body,.modal:has(#auto-plan-form) .modal-head{padding:16px}.modal:has(#auto-plan-form) .modal-body{max-height:calc(100dvh - 110px)}#auto-plan-form .auto-form-heading,#auto-plan-form .auto-form-two{grid-template-columns:1fr;gap:12px}.auto-form-three{grid-template-columns:1fr}.auto-form-three>label:last-child{grid-column:auto}#auto-plan-form .input{font-size:14px}.auto-form-footer .btn{flex:1;padding:8px}.auto-inline-create{flex-wrap:wrap}.auto-inline-create>.input{flex-basis:100%}.auto-multi-menu{max-width:calc(100vw - 64px)}.auto-time-row .auto-interval{margin-left:0!important;width:100%;margin-top:12px!important}}
.auto-multi{padding:0;margin:0}.auto-multi>summary{font-weight:500}#auto-plan-form fieldset.auto-config-fields .auto-form-three>label{display:block}#auto-plan-form fieldset.auto-config-fields .auto-time-row>label{display:block}.auto-form-three label{min-width:0}.auto-form-three .auto-date-field{width:100%}.modal:has(#auto-plan-form) .modal-body{overscroll-behavior:contain}
.auto-mobile-schedule{display:none}@media(max-width:600px){.auto-result-table .auto-result-date{display:none}.auto-result-table{min-width:600px}.auto-result-table .auto-caption{min-width:220px;width:240px}.auto-mobile-schedule{display:block;color:#7f8e84;font-size:10px;margin-top:5px}.auto-result-table .auto-row-actions{min-width:115px}}
.auto-title-tools{display:flex;align-items:center;gap:10px;min-width:0}.auto-scan-heading{justify-content:space-between;margin-bottom:16px}.auto-scan-heading h2{margin:0!important}.auto-heading-tools{display:inline-flex;align-items:center;gap:4px;flex:none}.auto-heading-tools .btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;font-size:12px}.auto-heading-tools small{font-size:10px;color:#859286;min-width:25px;text-align:center}.auto-heading-tools button[aria-expanded=false] svg{transform:rotate(-90deg)}#copy-auto-body [hidden]{display:none!important}.auto-heading-tools button:disabled{opacity:.35}.auto-title-tools h3{margin:0}@media(max-width:600px){.auto-title-tools{gap:6px;flex-wrap:wrap}.auto-scan-heading{gap:8px}.auto-heading-tools .btn{width:25px;height:25px}.auto-heading-tools{gap:2px}.auto-heading-tools small{min-width:22px}.auto-scan-heading h2{font-size:15px!important}.auto-title-tools h3{font-size:14px!important}}

.auto-monitor-summary{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:16px;padding:18px 0 0;border-top:1px solid #e7ece4;margin-top:18px}.auto-monitor-summary>div{display:flex;flex-direction:column;gap:6px;min-width:0}.auto-monitor-summary a{overflow-wrap:anywhere;font-size:13px}.auto-monitor-summary small{color:#73817b;font-size:11px}.auto-monitor-summary strong{font-size:13px;font-weight:600}.auto-monitor-state{grid-column:1/-1;margin:0;font-size:12px;color:#73817b;overflow-wrap:anywhere}.auto-monitor-fields{margin-top:16px}.auto-monitor-fields>.auto-form-two{margin-top:12px;margin-bottom:0}
@media(max-width:700px){.auto-monitor-summary{grid-template-columns:1fr;gap:18px}#auto-plan-form .auto-monitor-fields .auto-form-two{grid-template-columns:1fr}.auto-monitor-fields input[type=datetime-local],.auto-monitor-fields input[type=date]{min-width:0;max-width:100%}}
.calendar-toolbar{gap:12px;flex-wrap:wrap}.calendar-toolbar>.row{gap:8px}.calendar-actions{flex-wrap:nowrap;white-space:nowrap}.calendar-filter{position:relative}.calendar-filter>summary{list-style:none;cursor:pointer}.calendar-filter-options{position:absolute;z-index:20;top:calc(100% + 6px);right:0;min-width:180px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px;box-shadow:0 10px 28px #163c2520}.calendar-filter-options label{display:flex;align-items:center;gap:9px;padding:9px;cursor:pointer}.calendar-filter-options input{accent-color:var(--primary)}@media(max-width:600px){.calendar-toolbar>.row{width:100%}.calendar-toolbar h2{font-size:17px}.calendar-filter{margin-left:auto}.calendar-actions{gap:5px!important}.calendar-actions .btn{flex:1;justify-content:center;font-size:11px;padding:9px 6px;gap:4px}.calendar-actions .btn svg{width:14px;height:14px}}

/* Keep every event inside its day, including long captions and unbroken URLs. */
.calendar-cell{min-width:0}.calendar-cell>.calendar-event{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar-cell>.calendar-event strong,.calendar-cell>.calendar-event small{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-event .calendar-appointment-label{display:flex;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-appointment-label svg{flex-shrink:0}
.calendar-event.chat-calendar-reminder.appointment-mine{background:#fff0f2;border:1px solid #ed9fae;border-left:3px solid #cf2443;color:#a81f38}.calendar-event.chat-calendar-reminder.appointment-mine .calendar-appointment-label{color:#c62640}.calendar-event.chat-calendar-reminder.appointment-other{background:#f2edfc;border:1px solid #c8b6ed;border-left:3px solid #8561b8;color:#644394}.calendar-event.chat-calendar-reminder.appointment-other .calendar-appointment-label{color:#7650a7}

.calendar-route .topbar{display:none!important}.calendar-toolbar .calendar-filter{padding:0;border:0;background:transparent;box-shadow:none;margin:0}.calendar-toolbar .calendar-filter>summary{background:transparent;box-shadow:none;max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-toolbar .calendar-filter-options{max-height:300px;overflow:auto}.calendar-toolbar .calendar-create{flex:none;width:42px;padding:9px;justify-content:center}.calendar-toolbar>.row:first-child{flex-wrap:nowrap}.calendar-actions{flex-wrap:wrap}.calendar-route .page-head p:empty{display:none}@media(max-width:600px){.calendar-toolbar>.row:first-child h2{font-size:16px;white-space:nowrap}.calendar-toolbar>.row:first-child{gap:3px}.calendar-toolbar>.row:first-child .btn{margin-left:auto;font-size:11px;padding:8px}.calendar-toolbar .calendar-actions .calendar-filter{flex:1;min-width:0}.calendar-toolbar .calendar-actions .calendar-filter>summary{width:100%;font-size:11px;padding:8px}.calendar-toolbar .calendar-actions>.btn{flex:none}.calendar-toolbar .calendar-filter-options{min-width:190px}.calendar-toolbar .calendar-actions{gap:6px!important}}

.learner-cycle-panel{margin-bottom:20px}.learner-cycle-panel .panel-head{gap:12px;flex-wrap:wrap}.learner-cycle-values{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:4px 20px 20px}.learner-cycle-stat{border:1px solid var(--line);background:#fff;border-radius:12px;display:flex;align-items:center;gap:10px;text-align:left;padding:13px;min-width:0;cursor:pointer}.learner-cycle-stat:hover{background:#f5f8f4;border-color:currentColor}.learner-cycle-stat strong{font-size:21px;display:block;line-height:1.25}.learner-cycle-stat small{display:block;font-size:11px;color:#6e7e76;margin-top:3px}.cycle-glyph{font-size:20px}.learner-cycle-stat.orange{color:#bf701b}.learner-cycle-stat.red{color:#c43853}.learner-cycle-stat.purple{color:#8361ae}.learner-cycle-stat.pink{color:#bd4083}.learner-cycle-stat.green{color:#25815b}.learner-cycle-stat.blue{color:#356bb6}.system-health-panel{margin-top:26px;margin-bottom:24px}.system-health-panel .panel-head{gap:12px;flex-wrap:wrap}.system-health-panel .panel-head p{margin-top:5px}.system-health-body{padding:0 20px 20px}.health-chart-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.health-chart{border:1px solid var(--line);border-radius:12px;padding:14px;min-width:0;color:#318064}.health-chart h3{font-size:12px;font-weight:500}.health-chart strong{font-size:15px}.health-chart svg{width:100%;display:block;margin-top:12px}.health-chart svg text{font-size:9px;fill:#78837b}.health-chart small{font-size:11px}.health-chart.warning,.health-legend .warning,.health-state.warning{color:#ad710b}.health-chart.danger,.health-legend .danger,.health-state.danger{color:#c3324b}.health-chart.unknown,.health-state.unknown{color:#819087}.health-legend .healthy,.health-state.healthy{color:#27815c}.health-legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;margin-top:16px}.health-legend small,.health-meta{color:#829087;font-size:11px}.health-meta{margin-top:12px}.health-state{font-size:12px;padding:7px 12px;border:1px solid currentColor;border-radius:18px;white-space:nowrap}@media(max-width:1100px){.learner-cycle-values{grid-template-columns:repeat(3,minmax(0,1fr))}.health-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.learner-cycle-values{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 12px 12px;gap:8px}.learner-cycle-stat{padding:11px;gap:8px}.learner-cycle-stat strong{font-size:19px}.health-chart-grid{grid-template-columns:1fr}.system-health-body{padding:0 12px 12px}.system-health-panel .panel-head,.learner-cycle-panel .panel-head{padding:16px 12px}.learner-cycle-stat[data-id=profit]{grid-column:span 2}.health-legend{gap:12px}}

.health-thresholds{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;color:#78837b;font-size:10px;margin-top:9px}.health-latency-detail{border-top:1px solid var(--line);margin-top:16px;padding-top:12px;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.health-latency-detail strong{font-weight:600}

.order-routing-picker{padding:14px;border:1px solid var(--line);border-radius:10px;background:#fff;margin:12px 0 20px}.order-routing-picker .help-text{margin-bottom:0;font-size:11px;line-height:1.5}

/* Compact overview: numbers and labels, without individual cards. */
.learner-cycle-panel{background:transparent;border:0;box-shadow:none;margin-bottom:12px}.learner-cycle-panel .panel-head{padding:4px 0 12px;border:0}.learner-cycle-values{padding:0;gap:8px 16px}.learner-cycle-stat{background:transparent;border:0;border-radius:0;padding:5px 0;gap:6px}.learner-cycle-stat:hover{background:transparent;text-decoration:underline}.learner-cycle-stat strong{font-size:23px}.learner-cycle-stat small{margin-top:1px}.learner-cycle-stat[data-id=profit]{grid-column:auto}.cycle-glyph{display:none}
.dashboard-stats{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:16px;margin:12px 0 24px}.dashboard-stat{display:flex;flex-direction:column;align-items:flex-start;gap:4px;background:none;border:0;padding:5px 0;text-align:left;cursor:pointer;color:var(--ink);min-width:0}.dashboard-stat strong{font-size:28px;line-height:1.15;font-weight:650}.dashboard-stat span{font-size:12px;color:#6c7e74}.dashboard-stat:hover strong{text-decoration:underline}.dashboard-stat:focus-visible,.learner-cycle-stat:focus-visible{outline:2px solid #27634b;outline-offset:4px}
.dashboard-three-days{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:0 18px 18px}.dashboard-day{min-width:0}.dashboard-day h3{font-size:13px;margin:0 0 10px}.dashboard-event{display:flex;align-items:center;gap:5px;width:100%;border:0;border-left:3px solid #567aaf;background:#f0f4fa;color:#355e94;padding:8px;margin:6px 0;border-radius:5px;cursor:pointer;min-width:0;font-size:12px;text-align:left}.dashboard-event.call{border-color:#b74c64;background:#fff1f3;color:#a83852}.dashboard-event svg,.dashboard-event time{flex-shrink:0}.dashboard-event span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-content-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dashboard-content-list button{border:0;border-bottom:1px solid var(--line);background:transparent;padding:10px 0;display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;min-width:0;cursor:pointer}.dashboard-content-list button>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-detail-list{display:grid;gap:8px}.dashboard-detail-list>button{background:#fff;border:1px solid var(--line);border-radius:8px;padding:14px;text-align:left;display:grid;gap:6px;cursor:pointer}.dashboard-detail-list span{overflow-wrap:anywhere;color:#63756b}.dashboard-detail-list small{color:#809087}
@media(max-width:1000px){.dashboard-stats{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:600px){.learner-cycle-values{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.learner-cycle-panel .panel-head{padding:0 0 10px}.learner-cycle-stat{padding:0}.learner-cycle-stat strong{font-size:21px}.learner-cycle-stat small{font-size:10px}.dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px;margin-bottom:18px}.dashboard-stat strong{font-size:24px}.dashboard-stat span{font-size:11px}.dashboard-three-days{grid-template-columns:1fr;gap:14px;padding:0 12px 14px}.dashboard-day+.dashboard-day{border-top:1px solid var(--line);padding-top:12px}.dashboard-content-list{grid-template-columns:1fr}.dashboard-detail-list>button{padding:12px}}

.notification-message-target{outline:2px solid #d29a36;outline-offset:4px;border-radius:12px}

.content-date-group{margin:16px 0 24px}.content-date-heading{display:flex;align-items:center;gap:12px;margin:0 0 12px;font-size:15px}.content-date-heading span{font-size:12px;font-weight:400;color:var(--text-muted)}.publishing-list-head h2{margin:0}.publishing-page-head>h1{margin:0}@media(max-width:600px){.content-date-group{margin:12px 0 18px}.publishing-page-head{flex-wrap:wrap;gap:12px}}

/* Comment filters belong to the list; the reply pane keeps its full height. */
.comment-post-list .comment-toolbar{padding:10px;gap:8px;margin:0;border-bottom:1px solid var(--line);align-items:center;flex-wrap:wrap}
.comment-post-list .comment-toolbar .tabs{width:100%;overflow-x:auto;flex-wrap:nowrap}
.comment-post-list .comment-toolbar .tab{white-space:nowrap}
.comment-post-list .comment-toolbar .search-field{display:flex;width:100%;min-width:0}
.comment-post-list .comment-sync-status{margin:0;padding:0 10px;font-size:11px}
.comment-channel-picker{position:relative;flex:1;min-width:130px;font-size:12px}
.comment-channel-picker>summary{cursor:pointer;border:1px solid var(--line);border-radius:8px;padding:9px 12px;background:white;list-style:none}
.comment-channel-picker>summary:after{content:'⌄';float:right;margin-left:8px}
.comment-channel-options{position:absolute;left:0;top:100%;z-index:35;min-width:240px;max-width:310px;max-height:300px;overflow:auto;background:white;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 20px #0002;padding:6px}
.comment-channel-options label{display:flex;align-items:center;gap:9px;padding:9px;margin:0;cursor:pointer;font-size:12px}
.comment-channel-options input{width:16px;height:16px;accent-color:var(--primary)}
.comment-original-post{margin-bottom:14px;font-size:12px}
.comment-original-post>summary{cursor:pointer;color:var(--primary);padding:8px 0}
.comment-original-post:not([open]){margin-bottom:5px}
@media(max-width:760px){
 .comments-workspace{border-radius:0}
 .comments-workspace.has-selection .comment-post-list{display:none}
 .comments-workspace:not(.has-selection) .comment-work-area{display:none}
 .comment-chat-head{padding:10px 12px;gap:8px;min-height:64px}
 .comment-chat-head>.avatar{display:none}
 .comment-chat-head strong{font-size:15px}
 .comment-feed-scroll{background:#f1f2f7;padding:10px 14px 16px}
 .comment-message.incoming>.avatar{display:none}
 .comment-message.incoming .comment-message-bubble{background:transparent;border:0;box-shadow:none;padding:7px 0}
 .comment-message.outgoing .comment-message-bubble{background:#dff5c6;border:0;border-radius:18px 18px 4px 18px}
 .comment-message-bubble img,.comment-message-bubble video{max-width:100%;max-height:42dvh;object-fit:contain}
 .comment-message-meta{gap:9px;flex-wrap:wrap}
 .comment-detail .chat-compose{padding:9px 12px}
 .comment-detail .chat-compose textarea{min-height:72px;max-height:130px}
 .comment-post-list .comment-toolbar .btn{padding:8px;font-size:11px}
 .comment-original-post .comment-post-context{margin:0}
}

@media(max-width:760px){
 body.comments-route #page.content.inbox-page{height:calc(100dvh - 64px - env(safe-area-inset-bottom));padding:0;min-height:0}
 body.comments-route #page .comments-workspace{margin:0;min-height:0}
 body.comments-route #page .comment-detail .chat-compose{padding:8px 12px;min-height:0}
 body.comments-route #page .comment-channel-picker:not([open]) .comment-channel-options{display:none}
}

/* Compact comment list controls, shared by desktop and mobile. */
body.comments-route .comment-post-list .comment-toolbar{display:flex;flex-direction:column;align-items:stretch;padding:10px 12px;gap:10px;background:#fff}
body.comments-route .comment-post-list .comment-toolbar .tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;overflow:visible;margin:0;padding:0;border:0;min-width:0}
body.comments-route .comment-post-list .comment-toolbar .tab{min-width:0;padding:9px 2px;font-size:11px;text-align:center;justify-content:center;border-radius:7px}
body.comments-route .comment-list-controls{display:flex;align-items:center;gap:8px;min-width:0}
body.comments-route .comment-list-controls .search-field{flex:1;width:auto;min-width:0;height:38px;padding:0 9px;margin:0}
body.comments-route .comment-list-controls .search-field input{min-width:0;width:100%;font-size:12px;padding:0}
body.comments-route .comment-channel-picker{position:relative;flex:0 0 36px;min-width:0;width:36px;padding:0;margin:0;border:0;background:none}
body.comments-route .comment-channel-picker>summary{display:flex;align-items:center;justify-content:center;width:36px;height:38px;padding:0;border:1px solid var(--line);border-radius:8px;background:white;list-style:none}
body.comments-route .comment-channel-picker>summary::-webkit-details-marker{display:none}
body.comments-route .comment-channel-picker>summary:after{content:none}
.comment-filter-check{width:16px;height:16px;border:1.5px solid #92a398;border-radius:4px;display:grid;place-items:center;color:#fff;font-size:12px;line-height:1}
.comment-filter-check.checked,.comment-filter-check.partial{background:var(--green);border-color:var(--green)}
.comment-filter-check.checked:after{content:'✓'}
.comment-filter-check.partial:after{content:'−'}
body.comments-route .comment-channel-options{top:calc(100% + 6px);left:0;width:310px;min-width:0;max-width:calc(100vw - 28px);max-height:min(420px,65dvh);padding:6px;border-radius:10px}
body.comments-route .comment-channel-options label{align-items:flex-start;gap:8px;padding:9px 7px;border-radius:6px}
body.comments-route .comment-channel-options label:hover{background:#f2f6ef}
body.comments-route .comment-channel-options input{flex:0 0 16px;margin:2px 0 0}
.comment-channel-all{border-bottom:1px solid var(--line);font-weight:600}
.comment-channel-option>.social{flex-shrink:0;margin-top:1px}
.comment-channel-copy{display:flex;flex-direction:column;gap:3px;min-width:0;line-height:1.4;overflow-wrap:anywhere}
.comment-channel-copy>span{font-weight:600}
.comment-channel-copy small{font-size:11px;color:var(--muted);font-weight:400}
.comment-channel-copy small:empty{display:none}
.comment-channel-copy small.error{color:#b54739}
body.comments-route .comment-sync-button{flex:0 0 36px;width:36px;height:38px;border:1px solid var(--line);border-radius:8px;background:#fff}
body.comments-route .comment-sync-button:disabled{opacity:.5}
body.comments-route .comments-workspace:not(.has-selection) .comment-work-area{grid-template-rows:auto minmax(0,1fr) 0}
body.comments-route .comments-workspace:not(.has-selection) .comment-detail{display:none}
@media(min-width:761px){body.comments-route .comments-workspace{grid-template-columns:340px minmax(0,1fr)}}
@media(max-width:760px){body.comments-route .comment-post-list .comment-toolbar{padding:10px 12px}body.comments-route .comment-post-list .comment-toolbar .tab{font-size:12px}}

/* Minimal comment controls and a single original-post surface. */
body.comments-route .comment-post-list .comment-toolbar .tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
body.comments-route .comment-channel-picker>summary,body.comments-route .comment-sync-button{border:0;border-radius:0;background:transparent;box-shadow:none}
body.comments-route .comment-channel-picker>summary:hover,body.comments-route .comment-sync-button:hover{background:transparent;color:var(--green)}
.comment-sync-control{flex:0 0 36px;display:flex;flex-direction:column;align-items:center;gap:1px}
body.comments-route .comment-list-controls{align-items:flex-start}
.comment-total{font-size:10px;line-height:14px;color:var(--muted);font-variant-numeric:tabular-nums}
body.comments-route .comment-person-card>b{background:#d83c45;color:#fff}
body.comments-route .comment-original-post{position:relative;border:0;box-shadow:none;margin:0 0 16px;padding:14px 16px;border-radius:10px;background:#fff}
body.comments-route .comment-original-heading{position:absolute;right:10px;top:7px}
body.comments-route .comment-post-excerpt{padding-right:30px;margin:0 0 10px}
body.comments-route .comment-original-heading .icon-btn{background:transparent;border:0;box-shadow:none}
.comment-author-link{color:inherit;text-decoration:none;cursor:pointer}
.comment-author-link:hover{text-decoration:underline;color:var(--green)}
body.comments-route .comment-detail:empty{display:none}

.comment-name-line{display:flex;align-items:center;gap:8px;min-width:0}
.comment-name-line .chat-header-tags{display:inline-block;flex-shrink:0;position:relative}
.comment-name-line .chat-tag-popup{left:0;right:auto;max-width:calc(100vw - 40px)}
.comment-card-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
.comment-card-tags:empty{display:none}
body.comments-route .comment-card-tags .chat-list-tag{font-size:10px;padding:2px 5px;border-radius:4px;line-height:1.3}
body.comments-route .comment-chat-head{overflow:visible;position:relative;z-index:40}
body.comments-route .comment-name-line .chat-header-tags>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer}
body.comments-route .comment-name-line .chat-header-tags>summary::-webkit-details-marker{display:none}

@media(max-width:760px){.comment-name-line>.chat-header-tags{position:static}.comment-name-line .chat-tag-popup{left:12px;right:12px;width:auto;max-width:none}}

body.comments-route .comment-name-line .chat-header-tags{border:0;background:transparent;box-shadow:none;margin:0;padding:0}body.comments-route .comment-name-line .chat-header-tags>summary{border:0;border-radius:0;background:transparent;box-shadow:none;padding:4px;width:28px;height:28px}
.publish-validation{color:#654516;background:#fff8e9;border:1px solid #eed5a5;border-radius:10px;padding:16px;margin:0 0 16px;line-height:1.55;font-size:13px}.publish-validation.has-errors{border-color:#e9b4b4;background:#fff3f1;color:#7d2d26}.publish-validation ul{padding-left:20px}.publish-validation li{margin:10px 0}.publish-validation h4{margin:14px 0 4px}.publish-validation blockquote{margin:6px 0;padding:5px 9px;border-left:3px solid #d1a15a;background:#ffffffa6;white-space:pre-wrap;overflow-wrap:anywhere}.publish-validation p{font-size:12px;margin:12px 0}.publish-validation a{color:#146a55;text-decoration:underline}.publish-validation .row{margin-top:12px}

/* Shared calendar palette: event kind and execution state. */
.schedule-publication.schedule-upcoming{--schedule-bg:#edf4ff;--schedule-fg:#23569a;--schedule-edge:#4383cf}
.schedule-appointment.schedule-upcoming{--schedule-bg:#f5efff;--schedule-fg:#694098;--schedule-edge:#9460ca}
.schedule-publication.schedule-past{--schedule-bg:#fff5db;--schedule-fg:#865c0d;--schedule-edge:#d6a02a}
.schedule-appointment.schedule-past{--schedule-bg:#fff0e6;--schedule-fg:#994822;--schedule-edge:#de8652}
.schedule-publication.schedule-completed{--schedule-bg:#e8f6ef;--schedule-fg:#246444;--schedule-edge:#49a376}
.schedule-appointment.schedule-completed{--schedule-bg:#e6f6f5;--schedule-fg:#216d70;--schedule-edge:#3e9e9d}
.schedule-item.schedule-failed{--schedule-bg:#fff0f2;--schedule-fg:#a32d44;--schedule-edge:#d3536d}
.dashboard-event.schedule-item,.calendar-cell>.calendar-event.schedule-item{background:var(--schedule-bg);color:var(--schedule-fg);border:0;border-left:3px solid var(--schedule-edge)}
.calendar-cell>.calendar-event.schedule-item .calendar-appointment-label{color:inherit}
.schedule-state{font-size:10px;line-height:1.4;font-weight:500;opacity:.9}.dashboard-event>.schedule-state{margin-left:auto;max-width:125px;flex-shrink:0;text-align:right}.dashboard-event>span{flex:1;min-width:0}.schedule-legend{display:flex;flex-wrap:wrap;gap:8px 16px;padding:10px 18px 16px;color:#62756c;font-size:11px}.schedule-legend>span{display:inline-flex;align-items:center;gap:6px}.schedule-legend i{display:inline-block;width:13px;height:13px;border-radius:3px;background:var(--schedule-bg);border-left:3px solid var(--schedule-edge)}
@media(max-width:600px){.dashboard-event{flex-wrap:wrap}.dashboard-event>.schedule-state{width:100%;max-width:none;padding-left:18px;text-align:left}.schedule-legend{padding:8px 12px 14px;gap:8px 12px}}
/* Persistent comment filters and shared composer controls. */
body.comments-route .comment-post-list .comment-toolbar{position:sticky;top:0;z-index:45;flex-shrink:0;box-shadow:0 1px 0 var(--line)}
.comment-filter-row{display:flex;align-items:center;gap:4px;min-width:0}
body.comments-route .comment-post-list .comment-toolbar .comment-filter-row .tabs{flex:1;width:auto;min-width:0}
.comment-tag-filter{position:relative;font-size:12px;flex-shrink:0}
.comment-tag-filter>summary{padding:9px 6px;cursor:pointer;list-style:none}
.comment-tag-options{position:absolute;top:100%;right:0;z-index:50;background:white;box-shadow:0 8px 24px #0002;border:1px solid var(--line);border-radius:8px;min-width:190px;max-width:270px;max-height:280px;overflow:auto;padding:6px}
.comment-tag-options label{display:flex;align-items:center;gap:8px;padding:7px;cursor:pointer}
.comment-template-list{max-height:65dvh;overflow:auto;margin-top:12px}
.comment-template-list section{padding:12px;border-bottom:1px solid var(--line)}
.comment-template-list section>small{display:block;color:var(--muted)}
.comment-template-choice{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;background:white;margin-top:8px;cursor:pointer}
.comment-template-choice>span{flex:1;white-space:pre-wrap;max-height:140px;overflow:auto}
.comment-template-choice img{width:56px;height:56px;object-fit:cover;border-radius:6px}
.comment-template-choice small{color:var(--green);flex-shrink:0}
.comment-reaction-options{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.comment-reaction-native{font-size:30px;text-decoration:none}
.comment-message-meta .active{color:#1877f2;font-weight:600}
.comment-message-meta .text-btn svg{vertical-align:middle}
/* Plain Tag tab and compact original-post media. */
body.comments-route .comment-post-list .comment-tag-filter{border:0;background:transparent;box-shadow:none;border-radius:0;margin:0;padding:0;min-height:0}
body.comments-route .comment-tag-filter>summary{border:0;background:transparent;box-shadow:none;border-radius:7px;padding:9px 6px;font-size:11px;color:var(--muted);min-height:0}
body.comments-route .comment-tag-filter>summary:hover,body.comments-route .comment-tag-filter[open]>summary{color:var(--green)}
.comment-post-text{border:0!important;background:none!important;box-shadow:none!important;padding:0!important;margin:0 0 10px!important;white-space:pre-wrap;overflow-wrap:anywhere}
.comment-post-text>summary{display:block;padding:0 30px 0 0;list-style:none;cursor:pointer;font-weight:400}
.comment-post-text>summary::-webkit-details-marker{display:none}
.comment-post-text .comment-expand,.comment-post-text .comment-collapse{color:var(--green);font-weight:600;white-space:nowrap}
.comment-post-text .comment-collapse{display:none}
.comment-post-text[open] .comment-post-short,.comment-post-text[open] .comment-expand{display:none}
.comment-post-text[open] .comment-collapse{display:inline}
.comment-post-text>p{white-space:pre-wrap;margin:8px 0 0;line-height:1.6}
.comment-post-media{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.comment-post-media:empty{display:none}
.comment-post-media img,.comment-post-media video{display:block;width:100%;max-height:360px;object-fit:contain;border-radius:8px;background:#f3f5f1}
.comment-post-media iframe{display:block;width:100%;aspect-ratio:16/9;max-height:360px;border:0;border-radius:8px}
@media(max-width:760px){body.comments-route .comment-tag-filter>summary{font-size:12px}.comment-post-media img,.comment-post-media video{max-height:300px}}

/* Keep publication logos within their badge, including future provider fallbacks. */
.copy-platform-icon{min-width:22px;max-width:22px;overflow:hidden;white-space:nowrap;line-height:1;padding:0;border:0;box-sizing:border-box;text-decoration:none}
.copy-platform-icon>span{display:inline-flex;align-items:center;justify-content:center;max-width:100%;line-height:1}
.copy-status>span:has(>.copy-publication-icon){display:inline-flex;flex-shrink:0}
/* Touch tablets and unfolded phones keep the same navigation as phones.
   Width alone cannot distinguish a Fold inner display from a desktop window. */
@media (max-width:760px), (hover:none) and (pointer:coarse) and (max-width:1400px) {
    .layout { display:block; }
    .main, .sidebar-collapsed .main { width:100%; margin-left:0; min-width:0; }
    .sidebar, .sidebar-collapsed .sidebar {
        width:min(290px,85vw); height:100dvh; overflow-y:auto; overflow-x:hidden;
        overscroll-behavior:contain; padding:52px 18px 100px;
        transform:translateX(-100%); transition:transform .2s;
    }
    .sidebar > * { flex-shrink:0; }
    .sidebar .nav-item, .sidebar-collapsed .sidebar .nav-item { justify-content:flex-start; padding:10px 12px; }
    .sidebar-collapsed .sidebar .nav-text, .sidebar-collapsed .sidebar .nav-label,
    .sidebar-collapsed .sidebar .brand-word, .sidebar-collapsed .sidebar small { display:block!important; }
    .sidebar-collapsed .sidebar .brand { display:flex; padding:0 13px 24px; }
    .sidebar .sidebar-toggle, .sidebar-collapsed .sidebar .sidebar-toggle {
        display:flex; position:absolute; left:auto; right:12px; top:12px;
        width:32px; height:32px; transform:none;
    }
    .menu-open .sidebar { transform:translateX(0); }
    .menu-open .mobile-scrim { display:block; position:fixed; inset:0; background:#1b2f2560; z-index:34; }
    .topbar .mobile-only { display:inline-grid; }
    .topbar .desktop-profile { display:none; }
    .content { padding-bottom:calc(90px + env(safe-area-inset-bottom)); }
    .mobile-bottom {
        display:flex; position:fixed; bottom:0; left:0; right:0; background:#fffffff5;
        border-top:1px solid var(--line); z-index:40; justify-content:space-around;
        padding:8px 8px max(8px,env(safe-area-inset-bottom));
    }
    .mobile-bottom button {
        border:0; background:none; display:flex; flex-direction:column; align-items:center;
        gap:3px; color:#929e87; min-width:48px; min-height:44px; font-size:10px;
    }
    .mobile-bottom button.active { color:var(--green); }
    .mobile-bottom button.new-button { background:var(--green); color:white; border-radius:12px; width:48px; justify-content:center; margin-top:-15px; }
}

.customer-directory .table-wrap{max-width:100%;overflow-x:auto}.customer-directory table{min-width:680px}.customer-directory td{max-width:320px;overflow-wrap:anywhere}

.auto-comment{margin:16px 0;padding:12px 0;border-top:1px solid var(--border,#e2e8e5)}.auto-comment [data-auto-comment-body]{margin-top:12px}.auto-comment textarea{width:100%;min-height:90px;resize:vertical}.auto-comment [hidden]{display:none!important}

.auto-comment label.btn{display:inline-flex;width:auto;cursor:pointer;margin-top:8px}.auto-comment label.field{display:block;text-align:left}.auto-comment label.field textarea{margin-top:8px}

.auto-comment-preview{width:64px;height:64px;object-fit:cover;border-radius:6px;vertical-align:middle;margin:8px}#auto-plan-form .auto-comment label.field{text-align:left}#auto-plan-form .auto-comment button.btn{display:inline-flex;width:auto;margin-top:8px}

.auto-comment-media-library>.row.wrap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.auto-comment-media-library>.row.wrap>label{display:block;min-width:0}.auto-comment-media-library .input{width:100%;margin-top:6px}.auto-comment-media-library #template-media-upload{display:none}.auto-comment-media-library>.row.wrap>label.btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;width:max-content}.auto-comment-media-library .chat-library-grid{max-height:45vh;overflow:auto}.auto-comment-media-library .row.between{gap:12px}@media(max-width:600px){.auto-comment-media-library>.row.wrap{grid-template-columns:minmax(0,1fr)}.auto-comment-media-library .row.between{flex-wrap:wrap}}
#auto-plan-form .auto-comment [data-auto-comment-body]>label.field{display:block!important;text-align:left!important;align-items:stretch;justify-content:flex-start}

.auto-comment[hidden]{display:none!important}.auto-comment-warning{z-index:1200}.auto-comment-warning li{margin:12px 0}.auto-comment-warning .modal-footer{display:flex;gap:10px;flex-wrap:wrap}

.page-loading {
    opacity: .55;
    pointer-events: none;
    transition: opacity .15s
}
