@import url('https://fonts.googleapis.com/css2?family=Muli:wght@400;600;700&display=swap');

:root {
    --bg: #f2f5fa;
    --white: #ffffff;
    --black: #282828;
    --muted: #8A98AC;
    --primary: #0080ff;
    --primary-dark: #0066cc;
    --secondary: #93b4d4;
    --success: #18d26b;
    --danger: #ff3f3f;
    --warning: #ffa800;
    --info: #00b8d4;
    --light: #d4d8de;
    --dark: #263a5b;
    --heading: #263a5b;
    --border: rgba(0, 0, 0, 0.06);
    --primary-rgba: rgba(0, 128, 255, 0.1);
    --success-rgba: rgba(24, 210, 107, 0.1);
    --danger-rgba: rgba(255, 63, 63, 0.1);
    --warning-rgba: rgba(255, 168, 0, 0.1);
    --info-rgba: rgba(0, 184, 212, 0.1);
    --secondary-rgba: rgba(129, 167, 205, 0.1);
    --shadow: 0 0 30px 0 rgba(200, 200, 200, 0.2);
    --sidebar: 250px;
    --topbar: 70px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    margin: 0;
    font-family: "Muli", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--muted);
    background: var(--bg);
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--heading);
    margin: 0 0 10px;
    line-height: 1.3;
}
h1 { font-size: 38px; }
h2 { font-size: 30px; }
h3 { font-size: 26px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 15px; }
p { color: #8A98AC; line-height: 1.3; margin: 0 0 10px; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
button, input, select, textarea { font-family: inherit; font-size: 15px; }
img { max-width: 100%; }

.leftbar {
    width: var(--sidebar);
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--white);
    border-right: 1px solid var(--border);
    z-index: 20;
    transition: margin 0.3s ease, width 0.3s ease;
}
.logobar {
    padding: 15px 0;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.logo-word {
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    color: var(--heading);
    letter-spacing: -0.02em;
}
.logo-word span { color: var(--primary); }
.logo-small { display: none; font-size: 18px; }
.navigationbar {
    height: calc(100vh - 100px);
    overflow: auto;
}
.vertical-menu { list-style: none; margin: 0; padding: 0; }
.vertical-menu > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 30px;
    color: var(--dark);
    font-size: 15px;
}
.vertical-menu > li > a .nav-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    stroke: #7f93ad;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.vertical-menu > li:hover > a,
.vertical-menu > li.active > a { color: var(--primary); }
.vertical-menu > li:hover > a .nav-icon,
.vertical-menu > li.active > a .nav-icon { stroke: var(--primary); }

.rightbar {
    margin-left: var(--sidebar);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin 0.3s ease;
}
.topbar {
    background: var(--white);
    padding: 15px 30px;
    position: fixed;
    z-index: 15;
    left: var(--sidebar);
    right: 0;
    height: var(--topbar);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: left 0.3s ease;
}
.topbar-mobile { display: none; }
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
}
.icon-btn:hover { background: var(--secondary-rgba); }
.icon-btn svg {
    width: 20px;
    height: 20px;
    stroke: #7f93ad;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.searchbar {
    display: flex;
    width: 220px;
}
.searchbar input {
    width: 100%;
    background: var(--secondary-rgba);
    color: var(--dark);
    border: 0;
    border-radius: 3px 0 0 3px;
    padding: 8px 16px;
    outline: none;
}
.searchbar input::placeholder { color: #717C99; }
.searchbar button {
    background: var(--secondary-rgba);
    border: 0;
    border-radius: 0 3px 3px 0;
    padding: 0 12px;
    cursor: pointer;
}
.searchbar button svg {
    width: 18px;
    height: 18px;
    stroke: #7f93ad;
    fill: none;
    stroke-width: 2;
}
.infobar { display: flex; align-items: center; margin-left: auto; }
.profilebar { position: relative; }
.profile-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    border-radius: 3px;
    padding: 6px 8px;
    cursor: pointer;
    color: var(--dark);
}
.profile-toggle:hover { background: var(--secondary-rgba); }
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 3px;
    background: var(--primary-rgba);
    color: var(--primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.profile-toggle svg {
    width: 16px;
    height: 16px;
    stroke: var(--muted);
    fill: none;
    stroke-width: 2;
}
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    background: var(--white);
    border-radius: 3px;
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.1);
    padding: 0;
    z-index: 30;
    text-align: center;
    overflow: hidden;
}
.dropdown-menu.is-open { display: block; }
.profilename { padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.profilename h5 { margin: 0; font-size: 16px; color: var(--primary); }
.profilename p { margin: 2px 0 0; font-size: 13px; }
.dropdown-menu a,
.dropdown-menu button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: var(--dark);
    text-align: center;
    cursor: pointer;
    font-size: 15px;
}
.dropdown-menu a:hover,
.dropdown-menu button:hover { color: var(--primary); background: var(--white); }
.dropdown-menu form:last-child button { border-bottom: 0; }

.breadcrumbbar {
    margin: 100px 30px 0;
    padding: 20px;
    background: var(--white);
    border-radius: 3px;
}
.breadcrumb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.page-title {
    font-size: 18px;
    color: var(--heading);
    margin: 0 0 5px;
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb .active { color: var(--heading); }
.breadcrumb li + li::before {
    content: "›";
    color: var(--muted);
    padding-right: 4px;
}
.widgetbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; text-align: right; }
.rightbar, .contentbar, .card, .card-body, .table-wrap { min-width: 0; }
.contentbar, .card, .card-body, .table-wrap { max-width: 100%; }

.contentbar { padding: 30px; flex: 1; }
.footerbar {
    padding: 20px 30px;
    text-align: center;
    background: var(--white);
    color: var(--muted);
    font-size: 14px;
}
.footerbar p { margin: 0; }

.card {
    background: var(--white);
    border: 0;
    border-radius: 3px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}
.card-header {
    padding: 15px 20px;
    background: transparent;
}
.card-title { font-size: 16px; margin: 0; color: var(--heading); }
.card-body { padding: 20px; }
.card-subtitle { font-size: 14px; color: var(--muted); font-weight: 400; margin: 4px 0 0; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}
.stat-card { margin-bottom: 0; }
.stat-card .card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.stat-card h4 { font-size: 26px; margin: 0 0 4px; color: var(--heading); }
.stat-card p { margin: 0; }
.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
}
.stat-icon svg { width: 22px; height: 22px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat-icon.primary { background: var(--primary-rgba); color: var(--primary); }
.stat-icon.success { background: var(--success-rgba); color: var(--success); }
.stat-icon.warning { background: var(--warning-rgba); color: var(--warning); }
.stat-icon.info { background: var(--info-rgba); color: var(--info); }
.stat-icon.danger { background: var(--danger-rgba); color: var(--danger); }
.stat-icon.secondary { background: var(--secondary-rgba); color: var(--dark); }
.stat-icon svg { stroke: currentColor; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    padding: 7px 12px;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.5;
    text-align: center;
}
.btn-primary { color: #fff; background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { color: #fff; background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-success { color: #fff; background: var(--success); border-color: var(--success); }
.btn-success:hover { color: #fff; background: #12b85c; }
.btn-danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { color: #fff; background: #e43232; }
.btn-primary-rgba { color: var(--primary); background: var(--primary-rgba); border-color: transparent; }
.btn-primary-rgba:hover { color: #fff; background: var(--primary); }
.btn-light { color: var(--dark); background: var(--white); border-color: var(--border); }
.btn-light:hover { color: var(--primary); }
.btn-lg { font-size: 18px; padding: 10px 16px; width: 100%; }
.btn-sm { padding: 4px 10px; font-size: 13px; }

.form-group { margin-bottom: 16px; min-width: 0; }
.form-group > label:not(.form-check) { display: block; }
.form-group > label.form-check { display: flex; margin-top: 10px; }
label { font-weight: 600; color: var(--heading); font-size: 14px; display: inline-block; margin-bottom: 6px; }
.form-control {
    display: block;
    width: 100%;
    height: 40px;
    background: var(--white);
    color: var(--dark);
    border: 1px solid #e6ebf2;
    border-radius: 3px;
    padding: 8px 12px;
    outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: none; }
textarea.form-control { height: auto; min-height: 140px; resize: vertical; }
textarea.form-control.copyright-input { min-height: 76px; }
input[type="file"].form-control { padding: 7px 12px; line-height: 22px; }
.form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 18px;
    align-items: start;
}
.form-grid > .span-12 { grid-column: span 12; }
.form-grid > .span-8 { grid-column: span 8; }
.form-grid > .span-6 { grid-column: span 6; }
.form-grid > .span-4 { grid-column: span 4; }
.form-grid > .form-section { grid-column: span 12; margin: 8px 0 14px; }
.form-hint { font-size: 13px; color: var(--muted); margin: -8px 0 16px; }
.form-group .form-hint { margin: 6px 0 0; }
.form-group .thumb { margin-top: 0; }
.image-previews { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.image-previews:empty, .image-previews:not(:has(figure:not([hidden]))) { display: none; }
.image-preview { margin: 0; }
.image-preview[hidden] { display: none; }
.image-preview figcaption { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.image-preview.is-removed { opacity: 0.35; }
.image-preview.is-removed figcaption::after { content: " (will be removed)"; }
.checks { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 16px; align-items: center; min-height: 40px; }
.form-group .checks { margin-bottom: 0; }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check input { width: 16px; height: 16px; accent-color: var(--primary); }
.form-check label { margin: 0; font-weight: 400; color: var(--muted); }
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.filters .form-control { width: auto; min-width: 180px; flex: 1 1 180px; }

.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; margin-bottom: 10px; color: var(--heading); }
th {
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
    text-align: left;
    padding: 0.7rem;
    border-bottom: 2px solid var(--border);
    color: var(--heading);
    vertical-align: middle;
}
td {
    color: var(--muted);
    padding: 0.6rem 0.7rem;
    border-top: 1px solid var(--border);
    vertical-align: middle;
}
tbody tr:hover { background: #f7f9fc; color: var(--black); }
.thumb { width: 72px; height: 48px; object-fit: cover; border-radius: 3px; display: block; }
.actions, .row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.actions form, .row-actions form { margin: 0; }
.icon-action {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 3px;
    background: rgba(0, 128, 255, 0.1);
    color: #0080ff;
    cursor: pointer;
    padding: 0;
}
.icon-action svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.icon-action.danger { background: rgba(255, 63, 63, 0.1); color: #ff3f3f; }
.icon-action.on { background: rgba(24, 210, 107, 0.12); color: #12b85c; }
.icon-action.off { background: rgba(138, 152, 172, 0.16); color: #8A98AC; }
.icon-action:hover { color: #fff; background: #0080ff; }
.icon-action.danger:hover { background: #ff3f3f; }
.icon-action.on:hover { background: #12b85c; }
.icon-action.off:hover { background: #263a5b; }
.color-input { width: 72px; height: 40px; padding: 4px; }

.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    padding: 4px 8px;
    text-transform: capitalize;
    color: #fff;
}
.badge.published, .badge.active, .badge-success { background: var(--success); color: #fff; }
.badge.draft, .badge.unsubscribed, .badge-warning { background: var(--warning); color: #fff; }

.alert {
    border: 0;
    border-radius: 3px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-weight: 600;
}
.alert-success { color: var(--success); background: var(--success-rgba); }
.alert-danger, .field-error, .alert-error { color: var(--danger); background: var(--danger-rgba); }
.field-error { border-radius: 3px; padding: 10px 12px; margin-bottom: 12px; }

.pager { margin-top: 16px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.page-link {
    display: inline-block;
    padding: 6px 12px;
    color: var(--primary);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 3px;
}
.page-item.active .page-link { color: #fff; background: var(--primary); border-color: var(--primary); }
.page-item.disabled .page-link { color: var(--muted); pointer-events: none; }
.page-link:hover { color: var(--dark); background: #eef2f7; }

.sidebar-overlay { display: none; }

body.toggle-menu .leftbar { width: 80px; }
body.toggle-menu .rightbar { margin-left: 80px; }
body.toggle-menu .topbar,
body.toggle-menu .footerbar { left: 80px; }
body.toggle-menu .vertical-menu > li > a span,
body.toggle-menu .logo-large { display: none; }
body.toggle-menu .logo-small { display: inline-block; }
body.toggle-menu .vertical-menu > li > a { justify-content: center; padding: 12px 0; }
body.toggle-menu .leftbar:hover { width: var(--sidebar); }
body.toggle-menu .leftbar:hover .vertical-menu > li > a span,
body.toggle-menu .leftbar:hover .logo-large { display: inline; }
body.toggle-menu .leftbar:hover .logo-small { display: none; }
body.toggle-menu .leftbar:hover .vertical-menu > li > a { justify-content: flex-start; padding: 10px 30px; }

.authenticate-bg {
    min-height: 100vh;
    background:
        radial-gradient(circle at 88% 18%, rgba(175, 197, 247, 0.55), transparent 18%),
        radial-gradient(circle at 8% 72%, rgba(231, 235, 242, 0.9), transparent 16%),
        #f4f6fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}
.auth-card {
    width: min(420px, 100%);
    background: var(--white);
    border-radius: 3px;
    box-shadow: var(--shadow);
    text-align: center;
}
.auth-card .card-body { padding: 30px; }
.form-head {
    padding-bottom: 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.auth-card h4 { color: var(--primary); font-size: 22px; margin: 24px 0; }
.auth-card .form-control { text-align: left; }
.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    text-align: left;
}
.auth-card .btn { margin-bottom: 4px; }

@media (max-width: 991px) {
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .smtp-grid { grid-template-columns: 1fr 1fr; }
    table { min-width: 680px; }
}
@media (max-width: 767px) {
    .leftbar { margin-left: -250px; }
    body.mobile-menu-open .leftbar { margin-left: 0; }
    .rightbar { margin-left: 0 !important; }
    .topbar { display: none; }
    .topbar-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 22;
        background: var(--white);
        padding: 15px 20px;
        border-bottom: 1px solid var(--border);
    }
    .breadcrumbbar {
        margin: 90px 16px 0;
        padding: 16px;
    }
    .breadcrumb-row { flex-direction: column; align-items: flex-start; }
    .page-title { font-size: 18px; }
    .contentbar { padding: 16px; }
    .widgetbar { text-align: left; }
    .stat-grid { grid-template-columns: 1fr; }
    .form-grid > .span-8,
    .form-grid > .span-6,
    .form-grid > .span-4 { grid-column: span 12; }
    .searchbar { display: none; }
    body.mobile-menu-open .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(38, 58, 91, 0.35);
        z-index: 18;
    }
    body.toggle-menu .leftbar { width: var(--sidebar); }
    body.toggle-menu .logo-large,
    body.toggle-menu .vertical-menu > li > a span { display: inline; }
    body.toggle-menu .logo-small { display: none; }
    body.toggle-menu .vertical-menu > li > a { justify-content: flex-start; padding: 10px 30px; }
    .filters { flex-direction: column; align-items: stretch; }
    .filters .form-control,
    .filters .btn { width: 100%; min-width: 0; flex: none; }
    table { min-width: 640px; }
    .widgetbar { justify-content: flex-start; width: 100%; }
    .auth-card .card-body { padding: 22px 16px; }
    .remember-row { flex-wrap: wrap; }
    .contentbar { padding-left: 12px; padding-right: 12px; }
    .topbar-mobile { padding: 12px 14px; gap: 12px; }
    .topbar-mobile .logo-word { min-width: 0; }
    .dropdown-menu { width: min(220px, calc(100vw - 24px)); }
    .form-grid { row-gap: 0; }
    .checks { gap: 10px 14px; }
    .smtp-grid { grid-template-columns: 1fr; }
    .smtp-head { flex-direction: column; align-items: flex-start; }
}

.smtp-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.smtp-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 8px;
}
.smtp-head h5 { margin: 0 0 4px; font-size: 18px; color: #1f2a37; }
.smtp-head p { margin: 0; color: #8A98AC; }
.smtp-body { padding: 8px 24px 22px; }
.smtp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 20px;
    background: #f7f9fc;
    border-radius: 8px;
    padding: 18px;
}
.smtp-field label { display: flex; align-items: center; gap: 6px; }
.smtp-field .req { color: #e11d48; }
.smtp-field .info {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d7dde6;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-grid;
    place-items: center;
    cursor: help;
}
.smtp-password { position: relative; }
.smtp-password .form-control { padding-right: 40px; }
.smtp-password button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    width: 28px;
    height: 28px;
    padding: 0;
    cursor: pointer;
    color: #8A98AC;
}
.smtp-password svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.smtp-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.smtp-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #0080ff;
    font-weight: 600;
    margin: 0;
}
.smtp-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.smtp-slider {
    width: 44px;
    height: 24px;
    background: #d7dde6;
    border-radius: 999px;
    position: relative;
}
.smtp-slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.18s ease;
}
.smtp-switch input:checked + .smtp-slider { background: #0080ff; }
.smtp-switch input:checked + .smtp-slider::after { transform: translateX(20px); }
.smtp-switch input:focus-visible + .smtp-slider { outline: 2px solid #0080ff; outline-offset: 2px; }

.tag-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 6px;
    border: 1px solid #e6ebf2;
    border-radius: 3px;
    background: var(--white);
}
.tag-box:focus-within { border-color: var(--primary); }
.tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
}
.tag-chips:empty { display: none; }
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    background: var(--primary-rgba);
    color: var(--primary);
    border-radius: 3px;
    padding: 4px 4px 4px 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}
.tag-chip-label { overflow-wrap: anywhere; }
.tag-chip button {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    width: 22px;
    height: 22px;
    padding: 0;
    font-size: 16px;
    line-height: 1;
}
.tag-entry {
    display: flex;
    flex: 1 1 180px;
    align-items: center;
    gap: 6px;
    min-width: min(100%, 180px);
}
.tag-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 28px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--dark);
    font: inherit;
}
.tag-suggest-label {
    margin: 10px 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--heading);
}
.tag-suggest-label[hidden],
.tag-option[hidden],
.tag-message[hidden] { display: none; }
.tag-suggest {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tag-suggest:not(:has(button:not([hidden]))) { display: none; }
.tag-option {
    border: 1px solid #e6ebf2;
    background: var(--white);
    color: var(--dark);
    border-radius: 3px;
    padding: 4px 8px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.tag-option:hover { border-color: var(--primary); color: var(--primary); }
.tag-message { color: var(--danger); }
