@font-face {
    font-family: Manrope;
    src: url("/fonts/Manrope-Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Manrope;
    src: url("/fonts/Manrope-Bold.ttf") format("truetype");
    font-weight: 600 900;
    font-display: swap;
}
:root {
    --bg: #f6f7fa;
    --ink: #172b38;
    --muted: #687b8b;
    --line: #e4e9ef;
    --cyan: #078eb9;
    --pale: #e8f6fb;
    --white: #fff;
    --radius: 18px;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font:
        14px/1.6 Manrope,
        sans-serif;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
select {
    font: inherit;
}
button,
a,
input,
select,
summary {
    -webkit-tap-highlight-color: transparent;
}
button,
summary,
input[type="checkbox"] {
    cursor: pointer;
}
button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}
:focus-visible {
    outline: 3px solid #00a7d5;
    outline-offset: 3px;
}
h1,
h2,
h3,
p {
    margin: 0;
}
h1 {
    font-size: 34px;
    line-height: 1.25;
    letter-spacing: -1.1px;
}
h2 {
    font-size: 20px;
    letter-spacing: -0.5px;
}
h3 {
    font-size: 17px;
}
small,
.small {
    font-size: 12px;
}
small {
    display: block;
    color: var(--muted);
}
.muted {
    color: var(--muted);
}
.eyebrow {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    margin-bottom: 8px;
}
.icon {
    flex-shrink: 0;
    vertical-align: middle;
}
.logo {
    width: 175px;
    height: auto;
    display: block;
}
.skip {
    position: absolute;
    left: 10px;
    top: -100px;
    z-index: 20;
    background: white;
    padding: 15px;
}
.skip:focus {
    top: 10px;
}
.workspace {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 250px;
    flex-shrink: 0;
    background: white;
    border-right: 1px solid var(--line);
    padding: 30px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: auto;
}
.workspace-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 35px 0 28px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.workspace-label strong {
    font-size: 12px;
}
.workspace-label small {
    font-size: 10px;
}
.avatar {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--cyan);
    background: var(--pale);
    font-weight: bold;
    flex-shrink: 0;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 12px;
    margin-bottom: 7px;
    border-radius: 10px;
    color: #607482;
    font-size: 12px;
    font-weight: 700;
    border: 0;
    background: transparent;
    width: 100%;
    text-align: left;
}
.nav-link:hover,
.nav-link.active {
    background: var(--pale);
    color: #04799e;
}
.sidebar-note {
    margin-top: auto;
    padding: 23px 18px;
    border-radius: 16px;
    background: linear-gradient(130deg, #ebf8fc, #f3f4ff);
    margin-bottom: 20px;
}
.sidebar-note strong {
    display: block;
    margin: 12px 0 6px;
    font-size: 13px;
}
.sidebar-note p {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
}
.sidebar > nav {
    margin-bottom: 35px;
}
.logout {
    margin: 0;
}
.main {
    min-width: 0;
    flex: 1;
}
.topbar {
    padding: 22px 36px;
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 11px;
}
.topbar strong {
    margin-left: 12px;
}
.user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
}
.online {
    height: 7px;
    width: 7px;
    border-radius: 50%;
    background: #119775;
}
.content {
    max-width: 1540px;
    margin: auto;
    padding: 34px 36px;
}
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}
.page-heading p.muted {
    margin-top: 9px;
    font-size: 13px;
}
.title-dot {
    color: var(--cyan);
}
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.15s,
        box-shadow 0.15s;
}
.button:hover {
    background: #eff8fb;
}
.button.primary {
    background: var(--cyan);
    color: white;
    border-color: var(--cyan);
    box-shadow: 0 5px 12px #078eb914;
}
.button.primary:hover {
    background: #057598;
}
.badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
    border-radius: 7px;
    background: #f0f2f6;
    color: #677682;
    padding: 5px 9px;
}
.cyan {
    color: #047d9f !important;
    background: #e7f6fb !important;
}
.green {
    color: #167652 !important;
    background: #e8f7ef !important;
}
.orange {
    color: #a15b13 !important;
    background: #fff3e2 !important;
}
.violet {
    color: #6254b5 !important;
    background: #f0ecfc !important;
}
.event-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(110deg, #eefaff, #fff 70%);
    border: 1px solid #dcebf1;
    border-radius: var(--radius);
    padding: 23px;
    margin-bottom: 24px;
}
.event-summary {
    display: flex;
    align-items: center;
    gap: 18px;
}
.event-summary p.muted {
    font-size: 11px;
    margin-top: 8px;
}
.event-summary h2 {
    font-size: 22px;
}
.event-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 340px;
}
.event-switch label {
    width: 100%;
    font-size: 10px;
    color: var(--muted);
}
.event-switch select {
    flex: 1;
    min-width: 0;
}
.icon-tile {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pale);
    color: var(--cyan);
    flex-shrink: 0;
}
.event-summary > .icon-tile {
    height: 60px;
    width: 60px;
    background: white;
    box-shadow: 0 5px 20px #0b567609;
}
.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}
.metric {
    padding: 21px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.metric > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
}
.metric .icon-tile {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}
.metric .icon {
    width: 16px;
}
.metric > strong {
    display: block;
    font-size: 34px;
    letter-spacing: -1px;
    margin: 8px 0 3px;
}
.metric small {
    font-size: 10px;
}
.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px #23374d02;
}
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.section-heading .muted {
    font-size: 11px;
    margin-top: 5px;
}
.filters {
    display: flex;
    align-items: end;
    gap: 12px;
    padding: 16px 0 22px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}
.filters .search {
    flex: 1;
    min-width: 180px;
}
label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
}
input:not([type="checkbox"]),
select {
    border: 1px solid #dce3eb;
    border-radius: 9px;
    background: white;
    color: var(--ink);
    min-height: 42px;
    padding: 10px 12px;
    width: 100%;
    font-weight: 400;
}
input::placeholder {
    color: #8997a5;
}
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--cyan);
    flex-shrink: 0;
}
input[type="file"] {
    font-size: 12px;
}
.reset,
.text-link {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 700;
}
.reset {
    padding: 10px 0;
}
.bulk {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    font-size: 11px;
}
.check-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 11px;
    font-weight: 400;
    gap: 8px;
}
.table-scroll {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}
th {
    background: #f8f9fc;
    padding: 13px 14px;
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
}
td {
    padding: 15px 14px;
    border-bottom: 1px solid #eff1f5;
    font-size: 12px;
}
td small {
    font-size: 10px;
    margin-top: 3px;
}
tbody tr:last-child td {
    border-bottom: 0;
}
tbody tr:hover {
    background: #fafcfd;
}
.ticket-code {
    color: #263e50;
    font-size: 12px;
}
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted);
}
.pagination > div {
    display: flex;
    align-items: center;
    gap: 12px;
}
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.two-columns > .panel {
    min-width: 0;
}
.two-columns .muted {
    font-size: 12px;
    margin-bottom: 18px;
}
.activity > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}
.activity > div > .badge {
    margin-left: auto;
}
.activity small {
    font-size: 10px;
}
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.event-card h3 {
    margin-top: 18px;
}
.event-card .muted {
    font-size: 11px;
    margin: 8px 0 20px;
}
.actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
.form-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-stack > .button {
    align-self: start;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.form-panel {
    max-width: 960px;
}
.empty {
    text-align: center;
    padding: 50px 20px;
}
.empty h2,
.empty h3 {
    margin: 12px 0;
}
.empty p {
    font-size: 13px;
}
.notice {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 22px;
    font-size: 13px;
}
.notice.success {
    background: #e9f8ef;
    color: #176c49;
}
.notice.error {
    background: #fff0ee;
    color: #a32b29;
}
.notice ul {
    margin: 6px 0;
}
.agent-row {
    border-top: 1px solid var(--line);
}
.agent-row summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    list-style: none;
}
.agent-row summary::-webkit-details-marker {
    display: none;
}
.agent-row summary .text-link {
    margin-left: auto;
}
.agent-form {
    padding: 10px 0 25px;
    max-width: 850px;
}
fieldset {
    border: 1px solid var(--line);
    padding: 20px;
    border-radius: 12px;
}
legend {
    font-size: 12px;
    font-weight: 700;
    padding: 0 8px;
}
.assignment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.assignment {
    flex-direction: row;
    align-items: center;
    font-weight: 400;
    padding: 12px;
    background: #f7f9fc;
    border-radius: 9px;
}
.login-canvas {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px;
    background:
        radial-gradient(ellipse at 10% 15%, #dff6ff, transparent 50%),
        radial-gradient(ellipse at 95% 95%, #eef0ff, transparent 45%), #f7f9fc;
}
.login-shell {
    width: 100%;
    max-width: 1080px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line);
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 80px #1c516312;
}
.login-story {
    min-height: 610px;
    padding: 46px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at 0 100%, #c8edfa, transparent 60%),
        linear-gradient(140deg, #f2fbff, #eff3ff);
}
.login-story h1 {
    font-size: 54px;
    line-height: 1.15;
    letter-spacing: -2px;
    margin: 18px 0;
}
.login-story h1 span {
    color: var(--cyan);
}
.login-story > div > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 13px;
}
.login-proof {
    font-size: 11px;
    color: #32778d;
    display: flex;
    align-items: center;
    gap: 10px;
}
.login-form {
    padding: 65px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
}
.login-form > .badge {
    align-self: start;
}
.login-form h2 {
    font-size: 27px;
}
.login-form > p {
    font-size: 13px;
}
.login-form .button {
    width: 100%;
}
footer {
    padding: 20px 36px;
    color: #69818f;
    font-size: 10px;
    letter-spacing: 2px;
}
footer span {
    float: right;
    letter-spacing: 0;
}
@media (min-width: 1000px) {
    .content {
        animation: appear 0.3s ease-out;
    }
    @keyframes appear {
        from {
            opacity: 0;
            transform: translateY(5px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
@media (max-width: 1150px) {
    .sidebar {
        width: 215px;
        padding: 24px 14px;
    }
    .content {
        padding: 26px 24px;
    }
    .topbar {
        padding: 20px 24px;
    }
    .metrics {
        gap: 12px;
    }
    .metric {
        padding: 16px;
    }
    .event-banner {
        flex-wrap: wrap;
    }
    .event-switch {
        max-width: none;
    }
    .event-grid {
        grid-template-columns: 1fr 1fr;
    }
    .topbar .badge {
        display: none;
    }
}
@media (max-width: 800px) {
    .workspace {
        display: block;
    }
    .sidebar {
        height: auto;
        width: 100%;
        position: static;
        padding: 16px 20px;
        display: block;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .sidebar .logo {
        width: 135px;
    }
    .workspace-label,
    .sidebar-note,
    .sidebar > .eyebrow {
        display: none;
    }
    .sidebar nav {
        display: flex;
        overflow: auto;
        margin: 16px 0 4px;
        gap: 6px;
    }
    .nav-link {
        white-space: nowrap;
        width: auto;
        font-size: 11px;
        margin: 0;
        padding: 10px;
    }
    .sidebar > form {
        position: absolute;
        top: 18px;
        right: 15px;
    }
    .sidebar > form .nav-link {
        font-size: 0;
    }
    .sidebar > form .icon {
        width: 20px;
    }
    .topbar {
        padding: 14px 20px;
        flex-wrap: wrap;
    }
    .content {
        padding: 26px 20px;
    }
    .page-heading h1 {
        font-size: 28px;
    }
    .page-heading {
        align-items: start;
    }
    .metrics {
        grid-template-columns: 1fr 1fr;
    }
    .two-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .event-grid {
        grid-template-columns: 1fr 1fr;
    }
    .bulk {
        flex-wrap: wrap;
        padding: 16px 0;
    }
    .bulk .check-label {
        order: 3;
        width: 100%;
    }
    .panel {
        padding: 18px;
    }
    .login-shell {
        grid-template-columns: 1fr;
    }
    .login-story {
        min-height: 260px;
        padding: 30px;
    }
    .login-story h1 {
        font-size: 36px;
    }
    .login-story > div > p:not(.eyebrow),
    .login-proof {
        display: none;
    }
    .login-story .logo {
        width: 140px;
        margin-bottom: 30px;
    }
    .login-form {
        padding: 32px;
    }
    .login-canvas {
        padding: 20px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .agent-row summary {
        flex-wrap: wrap;
    }
    .agent-row summary small {
        overflow-wrap: anywhere;
    }
    .assignment-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .page-heading {
        flex-direction: column;
        gap: 16px;
    }
    .event-summary {
        align-items: start;
        gap: 12px;
    }
    .event-summary > .icon-tile {
        height: 40px;
        width: 40px;
    }
    .event-summary h2 {
        font-size: 18px;
    }
    .event-banner {
        padding: 18px;
    }
    .event-switch {
        width: 100%;
    }
    .event-grid {
        grid-template-columns: 1fr;
    }
    .metric > strong {
        font-size: 30px;
    }
    .metric > div {
        font-size: 10px;
    }
    .metric small {
        font-size: 9px;
    }
    .filters > label:not(.search) {
        flex: 1;
        min-width: 120px;
    }
    .pagination {
        flex-wrap: wrap;
    }
    .pagination > div {
        gap: 8px;
    }
    .section-heading {
        align-items: start;
    }
    .section-heading h2 {
        font-size: 18px;
    }
    .user-chip .badge {
        display: none;
    }
    .login-form h2 {
        font-size: 23px;
    }
    footer span {
        display: block;
        float: none;
        margin-top: 8px;
    }
    .activity > div {
        flex-wrap: wrap;
    }
    .activity > div > .badge {
        margin-left: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation: none !important;
        transition: none !important;
    }
}
