:root {
    font-family: "Segoe UI",system-ui,sans-serif;
    color: #152238;
    background: #f6f8fb;
    font-synthesis: none;
    --accent: #006fe6;
    --accent-hover: #0050c5;
    --accent-strong: #0030a4;
    --muted: #647186;
    --line: #d5deea;
    /* White blends of the accent: 10% fill and 6% subtle fill. */
    --soft: #e6f1fd;
    --soft-subtle: #f0f6fe
}
* {
    box-sizing: border-box
}
body {
    margin: 0
}
button,input,select {
    font: inherit
}
button {
    cursor: pointer
}
button:disabled {
    cursor: default;
    opacity: .5
}
button,input,select {
    border: 1px solid var(--line);
    border-radius: 7px
}
button {
    background: white;
    color: inherit;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600
}
button:hover {
    background: var(--soft)
}
button:focus-visible,input:focus-visible,select:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px
}
.primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent)
}
.primary:hover {
    background: var(--accent-hover)
}
.primary:active {
    background: var(--accent-strong)
}
.quiet {
    background: transparent;
    border-color: transparent
}
.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 224px 1fr
}
.side {
    background: #eef2f7;
    border-right: 1px solid var(--line);
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    gap: 30px
}
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 20px;
    font-weight: 650;
    padding: 0 12px
}
.brand-mark {
    width: 34px;
    height: 34px;
    object-fit: contain
}
.login-brand {
    display: block;
    width: 46px;
    height: 46px;
    margin-bottom: 18px
}
.nav {
    display: grid;
    gap: 6px
}
.nav button {
    text-align: left;
    border: 0;
    background: transparent;
    padding: 12px 14px;
    font-weight: 500
}
.nav button.active {
    background: var(--soft);
    color: var(--accent-strong);
    font-weight: 650
}
.side-bottom {
    margin-top: auto;
    display: grid;
    gap: 12px;
    padding: 0 10px
}
.server-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 7px
}
.small {
    font-size: 12px;
    color: var(--muted)
}
.main {
    padding: 34px 42px;
    max-width: 1400px;
    width: 100%
}
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px
}
.top h1 {
    margin: 0;
    font-size: 29px;
    font-weight: 650;
    letter-spacing: -.6px
}
.subtitle {
    color: var(--muted);
    font-size: 14px;
    margin: 7px 0 0
}
.toolbar {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px
}
.search {
    width: 330px;
    padding: 11px 13px;
    background: white
}
.counter {
    margin-left: auto;
    color: var(--muted);
    font-size: 13px
}
.table-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 11px;
    overflow: hidden
}
table {
    border-collapse: collapse;
    width: 100%;
    text-align: left;
    font-size: 13px
}
th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--muted);
    padding: 15px 20px;
    background: #f5f7fb;
    font-weight: 600
}
td {
    border-top: 1px solid #edf1f7;
    padding: 14px 20px
}
.person {
    display: flex;
    gap: 12px;
    align-items: center
}
.avatar {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 10px;
    background: var(--soft);
    object-fit: cover;
    display: grid;
    place-items: center;
    font-size: 16px;
    color: #6485a9
}
.name {
    font-weight: 600;
    font-size: 14px
}
.username {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px
}
.badge {
    display: inline-block;
    border-radius: 5px;
    padding: 4px 7px;
    font-size: 11px;
    background: var(--soft);
    color: var(--accent-strong)
}
.badge.lead {
    background: #f2eddd;
    color: #7d6633
}
.badge.disabled {
    background: #f1f3f7;
    color: #7f8b9d
}
.hint {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    padding: 14px 17px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    color: var(--muted);
    background: var(--soft-subtle)
}
.empty {
    text-align: center;
    padding: 52px;
    color: var(--muted)
}
.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    gap: 14px
}
.device {
    padding: 18px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 9px;
    display: flex;
    gap: 12px;
    align-items: center
}
.device .icon {
    font-size: 24px;
    color: var(--muted)
}
.settings-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px;
    max-width: 720px
}
.setting-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #edf1f7;
    font-size: 13px
}
.setting-row:last-child {
    border-bottom: 0
}
.setting-row code {
    color: var(--muted);
    overflow-wrap: anywhere
}
.modal-backdrop {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #15223855;
    z-index: 10
}
.modal {
    background: #f6f8fb;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 20px 80px #15223826;
    padding: 28px;
    width: min(620px,100%);
    max-height: calc(100vh - 48px);
    overflow: auto
}
.modal h2 {
    font-size: 23px;
    margin: 0 0 20px;
    letter-spacing: -.3px
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}
.field {
    display: grid;
    gap: 7px;
    font-size: 12px;
    color: var(--muted)
}
.field input,.field select {
    padding: 10px 11px;
    color: #152238;
    background: white;
    width: 100%;
    min-width: 0
}
.full {
    grid-column: 1/-1
}
.photo-row {
    display: flex;
    align-items: center;
    gap: 14px
}
.photo-row .avatar {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    font-size: 25px
}
.key-row {
    display: flex;
    gap: 8px
}
.key-row input {
    flex: 1
}
.actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px
}
.switch-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #152238
}
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 21px;
    flex: none
}
.switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 1;
    cursor: pointer
}
.slider {
    pointer-events: none;
    position: absolute;
    inset: 0;
    background: #c2cddd;
    border-radius: 20px;
    transition: .15s
}
.slider:before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    transition: .15s
}
.switch input:checked+.slider {
    background: var(--accent)
}
.switch input:checked+.slider:before {
    transform: translateX(15px)
}
.switch input:focus-visible+.slider {
    outline: 3px solid var(--accent);
    outline-offset: 2px
}
.error {
    color: #a4483c;
    background: #f9ece7;
    border: 1px solid #eed4cc;
    border-radius: 7px;
    padding: 10px 13px;
    font-size: 13px;
    margin-top: 15px;
    white-space: pre-wrap
}
.success {
    /* Preserve the existing semantic success colours independently of the brand. */
    color: #3061d5;
    background: #eaf0fc;
    border: 1px solid #c5d6f3;
    border-radius: 7px;
    padding: 10px 13px;
    font-size: 13px;
    margin-top: 15px
}
.login {
    width: min(420px,100%)
}
.login .subtitle {
    margin: -10px 0 24px;
    line-height: 1.5
}
.login .actions button {
    width: 100%
}
.select-language {
    font-size: 12px;
    padding: 7px;
    background: transparent;
    max-width: 160px
}
.hidden,[hidden] {
    display: none!important
}
@media(max-width:850px) {
    .shell {
        grid-template-columns: 170px 1fr
    }
    .side {
        padding: 20px 10px
    }
    .main {
        padding: 25px 20px
    }
    th,td {
        padding: 13px 12px
    }
    .phone-column {
        display: none
    }
}
@media(max-width:600px) {
    .shell {
        display: block
    }
    .side {
        padding: 14px;
        gap: 14px;
        border-right: 0;
        border-bottom: 1px solid var(--line)
    }
    .brand {
        font-size: 17px
    }
    .nav {
        display: flex
    }
    .nav button {
        padding: 9px
    }
    .side-bottom {
        display: none
    }
    .main {
        padding: 22px 15px
    }
    .top h1 {
        font-size: 24px
    }
    .search {
        width: 100%
    }
    .counter {
        display: none
    }
    .team-column {
        display: none
    }
    .modal {
        padding: 22px
    }
    .form-grid {
        grid-template-columns: 1fr
    }
    .full {
        grid-column: auto
    }
}
