@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');
* {
    box-sizing: border-box;
}

html[data-theme=dark] {
    color-scheme: dark;
}

html[data-theme=light] {
    color-scheme: light;
}

html[data-theme=dark] body {
    --bg: #0b0d12;
    --panel: #12151d;
    --panel-2: #171b25;
    --border: #262b38;
    --text: #f2f4f8;
    --muted: #8c93a5;
    --soft: #c2c7d3;
    --track: #242936;
    --shadow: 0 16px 50px rgba(0, 0, 0, .18);
}

html[data-theme=light] body {
    --bg: #f5f6fa;
    --panel: #fff;
    --panel-2: #f0f2f7;
    --border: #dfe3ec;
    --text: #141722;
    --muted: #72798a;
    --soft: #484f60;
    --track: #e8ebf2;
    --shadow: 0 16px 50px rgba(25, 30, 45, .08);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    transition: background .25s, color .25s;
}

a {
    text-decoration: none;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 244px;
    background: var(--panel);
    border-right: 1px solid var(--border);
    padding: 28px 18px 22px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font: 800 20px 'Manrope';
    padding: 0 10px 28px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #8b7aff, #5e54db);
    box-shadow: 0 8px 24px rgba(108, 99, 255, .3);
    font-size: 21px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.side-nav a {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 14px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
    transition: .2s;
}

.side-nav a:hover {
    color: var(--text);
    background: var(--panel-2);
}

.side-nav a.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(108, 99, 255, .24), rgba(108, 99, 255, .08));
    box-shadow: inset 3px 0 #766cf3;
}

.side-nav i {
    font-size: 17px;
}

.sidebar-foot {
    margin-top: auto;
    padding: 15px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel-2);
    display: flex;
    gap: 10px;
    align-items: center;
}

.sidebar-foot strong,.sidebar-foot small {
    display: block;
}

.sidebar-foot strong {
    font-size: 12px;
}

.sidebar-foot small {
    font-size: 10px;
    color: var(--muted);
    margin-top: 2px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #35d07f;
    box-shadow: 0 0 0 4px rgba(53, 208, 127, .12);
}

.main-shell {
    padding-left: 244px;
}

.topbar {
    height: 82px;
    padding: 0 34px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: rgba(18, 21, 29, .72);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.topbar-title {
    display: flex;
    flex-direction: column;
}

.eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    color: #8279f3;
}

.topbar-title strong {
    font-size: 14px;
}

.topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--soft);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
}

.icon-btn:hover {
    color: var(--text);
    border-color: #6c63ff;
}

.btn {
    font-weight: 700;
    font-size: 13px;
    border-radius: 10px;
    padding: 10px 16px;
}

.btn-primary {
    background: #6c63ff;
    border-color: #6c63ff;
    box-shadow: 0 8px 20px rgba(108, 99, 255, .18);
}

.btn-primary:hover {
    background: #7a72ff;
    border-color: #7a72ff;
}

.btn-secondary {
    background: var(--panel-2);
    color: var(--text);
    border-color: var(--border);
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ffb36a, #e76e8a);
    color: #21131b;
    font-weight: 800;
    font-size: 12px;
}

.mobile-menu {
    display: none;
}

.page-content {
    padding: 34px;
    max-width: 1680px;
    margin: auto;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.page-heading h1 {
    font: 800 27px 'Manrope';
    margin: 4px 0 6px;
}

.page-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.page-heading.compact {
    align-items: center;
}

.date-filter {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
    padding: 10px 13px;
    color: var(--soft);
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
}

.date-filter .bi-chevron-down {
    font-size: 9px;
    color: var(--muted);
}

.api-notice {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 11px 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 177, 66, .35);
    background: rgba(255, 177, 66, .07);
    color: #e6a747;
    border-radius: 10px;
    font-size: 12px;
}

.api-notice.live {
    border-color: rgba(53, 208, 127, .3);
    background: rgba(53, 208, 127, .07);
    color: #35d07f;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.metric-card,.data-card,.chart-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.metric-card {
    padding: 20px;
    position: relative;
}

.metric-card>span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 7px;
}

.metric-card>strong {
    font: 800 27px 'Manrope';
    display: block;
}

.metric-card>small {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-weight: 600;
    font-size: 10px;
}

.metric-card>small.up {
    color: #35d07f;
}

.metric-card em {
    color: var(--muted);
    font-style: normal;
    font-weight: 400;
    margin-left: 3px;
}

.metric-icon {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border-radius: 10px;
}

.metric-icon.purple {
    color: #9c94ff;
    background: rgba(108, 99, 255, .12);
}

.metric-icon.cyan {
    color: #38cbe8;
    background: rgba(56, 203, 232, .12);
}

.metric-icon.green {
    color: #35d07f;
    background: rgba(53, 208, 127, .12);
}

.metric-icon.orange {
    color: #ffad5c;
    background: rgba(255, 173, 92, .12);
}

.chart-card {
    padding: 22px 24px;
    margin-bottom: 18px;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.card-head h2,.form-section h2,.preview-card h2 {
    font: 700 15px 'Manrope';
    margin: 0 0 4px;
}

.card-head p,.form-section>p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.card-head>a {
    font-size: 11px;
    color: #8f87ff;
    font-weight: 700;
}

.legend {
    display: flex;
    gap: 18px;
    color: var(--muted);
    font-size: 11px;
}

.dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 5px;
}

.purple-dot {
    background: #7167f3;
}

.cyan-dot {
    background: #38cbe8;
}

.chart-wrap {
    height: 250px;
}

.chart-wrap canvas {
    width: 100%;
    height: 100%;
}

.split-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.data-card {
    padding: 22px;
}

.link-row {
    display: flex;
    align-items: center;
    padding: 13px 0;
    border-top: 1px solid var(--border);
}

.link-favicon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--panel-2);
    display: grid;
    place-items: center;
    color: #8f87ff;
    margin-right: 11px;
}

.link-copy {
    min-width: 0;
}

.link-copy strong {
    display: block;
    font-size: 12px;
}

.copy-link {
    border: 0;
    background: none;
    padding: 2px 0;
    color: #8178ee;
    font-size: 10px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-clicks {
    margin-left: auto;
    text-align: right;
}

.link-clicks strong,.link-clicks span {
    display: block;
}

.link-clicks strong {
    font-size: 12px;
}

.link-clicks span {
    color: var(--muted);
    font-size: 9px;
}

.metric-line {
    position: relative;
    margin: 15px 0;
}

.metric-line-top {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 7px;
}

.progress-track {
    height: 5px;
    background: var(--track);
    border-radius: 10px;
    overflow: hidden;
    margin-right: 36px;
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #6c63ff, #38cbe8);
}

.metric-line small {
    position: absolute;
    right: 0;
    bottom: -3px;
    color: var(--muted);
    font-size: 9px;
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.search-box {
    position: relative;
    max-width: 400px;
    flex: 1;
}

.search-box i {
    position: absolute;
    left: 13px;
    top: 11px;
    color: var(--muted);
}

.search-box input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel-2);
    color: var(--text);
    outline: none;
    font-size: 12px;
}

.filter-btn {
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--soft);
    border-radius: 10px;
    font-size: 12px;
    padding: 0 14px;
}

.links-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.links-table th {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 9px;
    color: var(--muted);
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.links-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--soft);
}

.link-cell {
    display: flex;
    align-items: center;
    min-width: 210px;
}

.link-cell strong {
    display: block;
    color: var(--text);
}

.destination {
    display: block;
    max-width: 330px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-menu {
    background: var(--panel);
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.dropdown-item {
    color: var(--soft);
    font-size: 12px;
    padding: 8px 14px;
}

.dropdown-item:hover {
    background: var(--panel-2);
    color: var(--text);
}

.dropdown-item i {
    width: 20px;
    display: inline-block;
}

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
    align-items: start;
}

.form-card {
    padding: 0;
}

.form-section {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 7px;
}

.field label span {
    color: #ff697d;
}

.field small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    margin-top: 5px;
}

.form-control,.form-select,.input-group-text {
    background: var(--panel-2);
    border-color: var(--border);
    color: var(--text);
    font-size: 12px;
    min-height: 42px;
}

.form-control:focus,.form-select:focus {
    background: var(--panel-2);
    color: var(--text);
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, .12);
}

.form-control::placeholder {
    color: var(--muted);
}

.input-group-text {
    color: var(--muted);
}

.advanced {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.advanced summary {
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.advanced summary i {
    float: right;
}

.form-actions {
    padding: 20px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.validation-summary {
    margin: 20px 24px 0;
    padding: 12px 15px;
    border-radius: 9px;
    color: #ff8393;
    background: rgba(255, 105, 125, .08);
    font-size: 11px;
}

.validation-summary ul {
    margin: 5px 0 0;
}

.field-validation-error {
    color: #ff8393;
    font-size: 10px;
}

.preview-card {
    position: sticky;
    top: 105px;
    text-align: center;
    padding: 28px;
}

.preview-visual {
    width: 70px;
    height: 70px;
    border-radius: 21px;
    display: grid;
    place-items: center;
    margin: 22px auto;
    background: linear-gradient(145deg, #7970f4, #4c43bc);
    font-size: 35px;
    color: white;
    box-shadow: 0 15px 35px rgba(108, 99, 255, .3);
}

.preview-url {
    font-size: 11px;
    color: var(--muted);
    padding: 11px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 9px;
    overflow: hidden;
}

.preview-url strong {
    color: #8f87ff;
}

.preview-card>p {
    color: var(--muted);
    font-size: 10px;
    word-break: break-all;
    margin: 14px 0;
}

.preview-card ul {
    list-style: none;
    text-align: left;
    padding: 16px 0 0;
    margin: 0;
    border-top: 1px solid var(--border);
}

.preview-card li {
    font-size: 10px;
    margin: 9px 0;
    color: var(--soft);
}

.preview-card li i {
    color: #35d07f;
    margin-right: 7px;
}

@media(max-width:1100px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .breakdown-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-layout {
        grid-template-columns: 1fr;
    }

    .preview-card {
        position: static;
    }

    .preview-card ul {
        display: flex;
        gap: 15px;
        justify-content: center;
    }

}

@media(max-width:800px) {
    .sidebar {
        transform: translateX(-100%);
        transition: .25s;
    }

    .sidebar.open {
        transform: none;
    }

    .main-shell {
        padding-left: 0;
    }

    .mobile-menu {
        display: grid;
    }

    .topbar {
        padding: 0 18px;
    }

    .topbar-title {
        display: none;
    }

    .page-content {
        padding: 22px 16px;
    }

    .page-heading {
        align-items: flex-start;
        gap: 14px;
    }

    .split-grid,.breakdown-grid {
        grid-template-columns: 1fr;
    }

    .date-filter {
        display: none;
    }

    .links-table th:nth-child(2),.links-table td:nth-child(2),.links-table th:nth-child(3),.links-table td:nth-child(3) {
        display: none;
    }

}

@media(max-width:520px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .top-create span {
        display: none;
    }

    .page-heading h1 {
        font-size: 23px;
    }

    .chart-card,.data-card {
        padding: 17px;
    }

    .chart-wrap {
        height: 210px;
    }

    .preview-card ul {
        display: block;
    }

}

.logout-form {
    margin: 0;
}

.auth-body {
    min-height: 100vh;
    background: var(--bg);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 46%) 1fr;
}

.auth-brand {
    padding: 48px 8vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: radial-gradient(circleat20%75%, rgba(108, 99, 255, .2), transparent38%), linear-gradient(145deg, #10131c, #0b0d12);
    border-right: 1px solid #262b38;
}

.auth-brand .brand {
    padding: 0;
}

.auth-brand h1 {
    font: 800 clamp(38px, 5vw, 67px)/1.04 'Manrope';
    color: #f2f4f8;
    margin: 20px 0;
}

.auth-brand h1 em {
    font-style: normal;
    color: #8178ee;
}

.auth-brand p {
    color: #8c93a5;
    max-width: 460px;
    font-size: 15px;
    line-height: 1.7;
}

.auth-brand>small {
    color: #8c93a5;
    font-size: 11px;
}

.auth-brand>small i {
    color: #35d07f;
    margin-right: 7px;
}

.auth-panel {
    display: grid;
    place-items: center;
    padding: 40px;
    background: var(--bg);
}

.auth-form {
    width: 100%;
    max-width: 430px;
}

.auth-form h2 {
    font: 800 28px 'Manrope';
    margin: 8px 0;
}

.auth-form>p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 28px;
}

.auth-form .field {
    margin-bottom: 17px;
}

.auth-input {
    position: relative;
}

.auth-input>i {
    position: absolute;
    left: 14px;
    top: 12px;
    color: var(--muted);
    z-index: 2;
}

.auth-input .form-control {
    padding-left: 40px;
}

.captcha-block {
    height: 66px;
    display: flex;
    gap: 8px;
    margin: 8px 0 16px;
}

.captcha-block img {
    height: 64px;
    width: 220px;
    max-width: calc(100%-52px);
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.captcha-block button {
    width: 44px;
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--soft);
    border-radius: 10px;
}

.remember-row {
    font-size: 11px;
    color: var(--muted);
    margin: 4px 0 18px;
}

.remember-row input {
    margin-right: 5px;
}

.auth-submit {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    min-height: 45px;
}

.auth-validation {
    margin: 0 0 18px;
}

.auth-form .api-notice {
    margin-top: 18px;
}

@media(max-width:820px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        padding: 25px;
        min-height: 190px;
    }

    .auth-brand h1 {
        font-size: 30px;
        margin: 10px 0;
    }

    .auth-brand p,.auth-brand>small {
        display: none;
    }

    .auth-panel {
        padding: 32px 20px;
    }

}

.dropdown-divider {
    border-color: var(--border);
}

.delete-link-action {
    color: #ff7185;
}

.delete-link-action:hover {
    color: #ff8b9b;
    background: rgba(255, 105, 125, .08);
}

.delete-error {
    color: #ff8393;
    background: rgba(255, 105, 125, .08);
    border-color: rgba(255, 105, 125, .35);
}

.delete-modal-content {
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.delete-modal-content .modal-header,
.delete-modal-content .modal-footer {
    border-color: var(--border);
}

.delete-modal-content .modal-header {
    align-items: center;
    gap: 13px;
}

.delete-modal-content .modal-title {
    margin-top: 2px;
    font: 700 17px 'Manrope';
}

.delete-modal-content .modal-body > p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.delete-modal-icon {
    width: 42px;
    height: 42px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: #ff7185;
    background: rgba(255, 105, 125, .1);
    border-radius: 11px;
}

.qr-modal-icon {
    width: 42px;
    height: 42px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: #8f87ff;
    background: rgba(108, 99, 255, .12);
    border-radius: 11px;
}

.qr-colour-field {
    margin-top: 18px;
}

.qr-colour-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 700;
}

.qr-colour-field small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 9px;
}

.qr-colour-control {
    display: flex;
    align-items: center;
    gap: 9px;
}

.qr-colour-control input[type="color"] {
    width: 48px;
    height: 42px;
    padding: 3px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 9px;
    cursor: pointer;
}

.qr-colour-control .form-control {
    max-width: 130px;
    text-transform: uppercase;
}

.edit-link-card {
    max-width: 980px;
    padding: 0;
}

.delete-link-summary {
    padding: 13px 14px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.delete-link-summary strong,
.delete-link-summary span {
    display: block;
}

.delete-link-summary strong {
    margin-bottom: 4px;
    font-size: 12px;
}

.delete-link-summary span {
    overflow: hidden;
    color: #8f87ff;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.delete-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: #ff8393;
    font-size: 11px;
    font-weight: 700;
}

.delete-confirm-button {
    font-weight: 700;
    background: #e94f66;
    border-color: #e94f66;
}

.delete-confirm-button:hover {
    background: #f25d73;
    border-color: #f25d73;
}

.back-link {
    display: block;
    width: max-content;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.back-link:hover {
    color: #8f87ff;
}

.analytics-short-url {
    display: block;
    margin-top: 3px;
    font-size: 12px;
}

.link-detail-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.link-detail-icon {
    width: 42px;
    height: 42px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: #8f87ff;
    background: var(--panel-2);
    border-radius: 11px;
}

.link-detail-copy {
    min-width: 0;
}

.link-detail-copy span,
.link-detail-meta span {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.link-detail-copy strong {
    display: block;
    overflow: hidden;
    max-width: 620px;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-detail-meta {
    margin-left: auto;
    padding-left: 20px;
    border-left: 1px solid var(--border);
}

.link-detail-meta strong {
    font-size: 12px;
}

.link-breakdown-grid {
    grid-template-columns: repeat(2, 1fr);
}

.analytics-filter {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    padding: 10px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.analytics-filter label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.analytics-period-field {
    min-width: 145px;
}

.analytics-filter .form-select,
.analytics-filter .form-control {
    min-height: 36px;
    height: 36px;
    font-size: 11px;
}

.analytics-custom-dates {
    display: flex;
    gap: 8px;
}

.analytics-custom-dates[hidden] {
    display: none;
}

.analytics-custom-dates .form-control {
    width: 132px;
}

.analytics-filter-button {
    min-height: 36px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.empty-chart-state {
    min-height: 210px;
    display: grid;
    place-content: center;
    gap: 9px;
    color: var(--muted);
    text-align: center;
    font-size: 11px;
}

.empty-chart-state i {
    color: #8f87ff;
    font-size: 28px;
}

@media(max-width:800px) {
    .analytics-filter {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .analytics-custom-dates > div {
        flex: 1;
    }

    .analytics-custom-dates .form-control {
        width: 100%;
    }

    .link-detail-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .link-detail-meta {
        width: calc(100% - 56px);
        margin-left: 56px;
        padding-left: 0;
        border-left: 0;
    }

    .link-detail-card .btn {
        margin-left: 56px;
    }

    .link-breakdown-grid {
        grid-template-columns: 1fr;
    }
}

