/* ============================================================
   Section 2 — Project Manager
   ============================================================ */

:root {
    color-scheme: dark;
    --bg: #101217;
    --panel: #171a21;
    --panel2: #1e222b;
    --line: #2c313c;
    --text: #e8eaf0;
    --muted: #969dac;
    --blue: #579dff;
    --green: #4bce97;
    --amber: #f5cd47;
    --red: #f87168;
    --purple: #b8a5ff;
    --radius: 6px;
    font-family: Inter, Segoe UI, Arial, sans-serif
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    overflow-x: hidden
}

button,
input,
select,
textarea {
    font: inherit;
    letter-spacing: 0
}

button {
    cursor: pointer
}

.boot {
    height: 100vh;
    display: grid;
    place-items: center
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--line);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin .7s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 520px) 1fr
}

.login-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 8vw, 96px);
    background: var(--panel)
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 44px
}

.logo {
    width: 92px;
    height: 32px;
    display: inline-flex;
    align-items: center
}

.logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

.login h1 {
    font-size: 30px;
    margin: 0 0 8px
}

.login p {
    color: var(--muted);
    margin: 0 0 28px
}

.login-art {
    position: relative;
    overflow: hidden;
    background: #0d2b2a;
    display: flex;
    align-items: flex-end;
    padding: 64px
}

.login-art:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(87, 157, 255, .18)), repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, .04) 80px), repeating-linear-gradient(0deg, transparent 0 79px, rgba(255, 255, 255, .04) 80px)
}

.login-art div {
    position: relative;
    max-width: 620px
}

.login-art strong {
    font-size: clamp(34px, 5vw, 70px);
    line-height: 1.03
}

.login-art span {
    display: block;
    color: #a7ddd3;
    margin-top: 18px;
    font-size: 18px
}

label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 7px
}

.field {
    margin-bottom: 18px
}

input,
select,
textarea {
    width: 100%;
    background: #11141a;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    padding: 10px 11px;
    outline: none
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(87, 157, 255, .15)
}

textarea {
    min-height: 90px;
    resize: vertical
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 400
}

.check input {
    width: auto
}

.btn {
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 9px 13px;
    background: var(--panel2);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 650
}

.btn:hover {
    filter: brightness(1.13)
}

.btn.primary {
    background: var(--blue);
    color: #061124
}

.btn.danger {
    color: var(--red);
    border-color: #5d2c2e
}

.btn.icon {
    width: 36px;
    height: 36px;
    padding: 0;
    overflow: visible
}

.btn.full {
    width: 100%
}

.btn svg {
    width: 17px;
    height: 17px
}

.password-input {
    position: relative
}

.password-input input {
    padding-right: 40px
}

.password-input .toggle-password {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer
}

.password-input .toggle-password:hover {
    color: var(--text)
}

.password-input .toggle-password .hidden {
    display: none
}

.error {
    color: var(--red);
    min-height: 20px;
    margin-top: 10px
}

.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    grid-template-rows: 56px 1fr
}

.topbar {
    grid-column: 1/-1;
    background: #151820;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding: 0 18px;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 20
}

.top-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 220px;
    font-weight: 800
}

.top-brand .logo {
    width: 78px;
    height: 27px;
    flex: 0 0 auto
}

.global-search {
    max-width: 520px;
    flex: 1;
    position: relative
}

.global-search input {
    padding-left: 36px;
    height: 36px
}

.global-search svg {
    position: absolute;
    left: 11px;
    top: 10px;
    width: 16px;
    color: var(--muted)
}

.top-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
    position: relative
}

.avatar {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #315d85;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 12px
}

.sidebar {
    background: #151820;
    border-right: 1px solid var(--line);
    padding: 15px 10px;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow: auto
}

.nav-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #6f7684;
    font-weight: 800;
    padding: 16px 10px 7px
}

.nav-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: #b6bcc8;
    padding: 9px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    margin: 1px 0
}

.nav-item span:first-of-type {
    min-width: 0
}

.nav-item svg {
    width: 17px
}

.nav-item:hover,
.nav-item.active {
    background: #252a34;
    color: #fff
}

.nav-item.active {
    box-shadow: inset 3px 0 var(--blue)
}

.notification-trigger,
.nav-item {
    position: relative
}

.notification-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    display: inline-grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    line-height: 1
}

.notification-trigger .notification-badge {
    position: absolute;
    right: -5px;
    top: -5px;
    margin-left: 0;
    border: 2px solid #11141b
}

.notification-menu {
    position: absolute;
    right: 58px;
    top: 44px;
    width: min(380px, calc(100vw - 32px));
    max-height: 430px;
    overflow: auto;
    z-index: 80;
    background: #171a21;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45)
}

.notification-menu[hidden] {
    display: none
}

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

.notification-menu-list {
    display: grid
}

.notification-menu-item {
    border: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(87, 157, 255, .08);
    color: var(--text);
    padding: 12px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 12px
}

.notification-menu-item.read {
    background: transparent;
    color: #a8afbd
}

.notification-menu-item:hover {
    background: #202530
}

.notification-menu-item span {
    min-width: 0;
    flex: 1
}

.notification-menu-item strong,
.notification-menu-item small {
    display: block
}

.notification-menu-item small {
    color: var(--muted);
    margin-top: 4px;
    white-space: normal;
    line-height: 1.35
}

.notification-menu-item em {
    font-style: normal;
    color: #93c5fd;
    font-size: 11px;
    font-weight: 800
}

.notification-menu-loading {
    padding: 16px;
    color: var(--muted)
}

.main {
    min-width: 0;
    padding: 24px clamp(16px, 3vw, 38px);
    overflow: hidden
}

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

.eyebrow {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 5px
}

.page-head h1 {
    font-size: 24px;
    margin: 0
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 26px
}

.metric {
    padding: 18px;
    background: var(--panel);
    border-right: 1px solid var(--line)
}

.metric:last-child {
    border: 0
}

.metric span {
    color: var(--muted);
    font-size: 12px
}

.metric strong {
    display: block;
    font-size: 25px;
    margin-top: 9px
}

.metric.danger strong {
    color: var(--red)
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 22px 0 10px
}

.section-head h2 {
    font-size: 16px;
    margin: 0
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius)
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel)
}

th,
td {
    text-align: left;
    padding: 11px 13px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap
}

th {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    background: #1b1e26
}

tr:last-child td {
    border: 0
}

tbody tr:hover {
    background: #1d2129
}

.notification-unread td {
    background: rgba(59, 130, 246, .06)
}

.notification-target td {
    background: rgba(96, 165, 250, .18);
    box-shadow: inset 3px 0 0 #60a5fa
}

.notification-read td {
    color: #8f97a6
}

.read-label,
.new-label {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700
}

.read-label {
    color: #8f97a6;
    background: #20242d
}

.new-label {
    color: #93c5fd;
    background: rgba(59, 130, 246, .14)
}

.btn.success {
    color: var(--green);
    border-color: rgba(34, 197, 94, .35)
}

.key {
    color: var(--blue);
    font-weight: 700
}

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

.priority {
    font-size: 11px;
    font-weight: 800
}

.priority.Urgent,
.priority.Highest {
    color: var(--red)
}

.priority.High {
    color: var(--amber)
}

.priority.Low,
.priority.Lowest {
    color: #7dd3fc
}

.status {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 4px;
    background: #252b36;
    font-size: 11px;
    font-weight: 700
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px
}

.project-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 17px;
    cursor: pointer
}

.project-card:hover {
    border-color: #4a5261
}

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

.project-title>div {
    min-width: 0
}

.project-overview-link {
    width: 34px;
    height: 34px;
    margin-left: auto;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface)
}

.project-overview-link:hover {
    color: var(--blue);
    border-color: var(--blue)
}

.overview-meta {
    max-width: 980px;
    margin: 0 auto 12px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 13px
}

.overview-meta span {
    display: flex;
    align-items: center;
    gap: 8px
}

.overview-document {
    max-width: 980px;
    min-height: 540px;
    margin: 0 auto;
    padding: 42px 48px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    color: var(--text);
    font-size: 15px;
    line-height: 1.75;
    overflow-wrap: anywhere
}

.overview-pdf {
    display: block;
    width: min(100%, 1100px);
    height: calc(100vh - 220px);
    min-height: 600px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white
}

.overview-unavailable {
    max-width: 980px;
    margin: 0 auto
}

@media (max-width: 700px) {
    .overview-document {
        padding: 24px 20px
    }

    .overview-pdf {
        min-height: 480px;
        height: calc(100vh - 190px)
    }
}

.project-icon {
    width: 38px;
    height: 38px;
    background: #1f4d78;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-weight: 900
}

.project-card h3 {
    margin: 0 0 3px;
    font-size: 15px
}

.progress {
    height: 6px;
    background: #282d37;
    border-radius: 3px;
    margin: 18px 0 8px;
    overflow: hidden
}

.progress span {
    display: block;
    height: 100%;
    background: var(--green)
}

.project-meta {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px
}

.toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap
}

.toolbar input {
    width: 240px
}

.toolbar select {
    width: auto;
    min-width: 140px
}

.board {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 16px
}

.column {
    display: flex;
    flex-direction: column;
    background: #15181e;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-height: 520px;
    padding: 10px
}

.column-items {
    flex: none
}

.column-create {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-height: 34px;
    padding: 7px 6px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #c9d1dc;
    text-align: left
}

.column-create:hover {
    background: #232831;
    color: #fff
}

.column-create svg {
    width: 15px;
    height: 15px
}

.column-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 4px 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase
}

.count {
    color: var(--muted);
    background: #272c35;
    padding: 2px 7px;
    border-radius: 10px
}

.issue-card {
    position: relative;
    background: #20242d;
    border: 1px solid #303641;
    border-radius: 5px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer
}

.issue-card:hover {
    border-color: #566173
}

.issue-card h4 {
    font-size: 14px;
    line-height: 1.35;
    margin: 0 0 14px
}

.issue-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 24px
}

.card-due {
    display: grid;
    gap: 3px;
    margin: -3px 0 12px;
    font-size: 12px
}

.card-due span {
    color: var(--muted)
}

.card-due strong {
    font-size: 12px
}

.card-project {
    color: var(--muted);
    font-size: 12px;
    margin: -10px 0 10px
}

.priority-with-label {
    display: inline-flex;
    align-items: center;
    gap: 7px
}

.priority-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #f59e0b
}

.priority-symbol svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.4
}

.priority-symbol.Urgent,
.priority-symbol.Highest,
.priority-symbol.High {
    color: #f15b50
}

.priority-symbol.Low,
.priority-symbol.Lowest {
    color: #4c9aff
}

.priority-control {
    position: relative
}

.card-priority {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent
}

.card-priority:hover,
.priority-control:has(.priority-menu:not([hidden])) .card-priority {
    border-color: #4c9aff;
    background: #252b34
}

.priority-menu {
    position: absolute;
    z-index: 20;
    top: 32px;
    right: 0;
    width: 190px;
    padding: 6px 0;
    border: 1px solid #38404d;
    border-radius: 6px;
    background: #25282f;
    box-shadow: 0 10px 28px #0009
}

.priority-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 36px;
    padding: 7px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    text-align: left
}

.priority-menu button:hover,
.priority-menu button.selected {
    background: #17457e
}

.subtask-progress {
    display: grid;
    grid-template-columns: 16px 1fr auto 16px;
    align-items: center;
    gap: 6px;
    margin: 10px -4px -4px;
    padding: 8px 4px 2px;
    border-top: 1px solid var(--line);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    background: transparent;
    color: #bac4d1;
    font-size: 11px;
    text-align: left
}

.subtask-progress svg {
    width: 14px;
    height: 14px
}

.subtask-progress strong {
    padding: 2px 6px;
    border-radius: 9px;
    background: #2a303a;
    font-size: 10px
}

.card-subtasks {
    margin: 4px -4px -4px;
    border-top: 1px solid var(--line)
}

.card-subtasks button {
    display: grid;
    grid-template-columns: 1fr auto 16px;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 8px 4px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    text-align: left
}

.card-subtasks button:hover {
    background: #292f39
}

.card-subtasks small {
    color: var(--muted)
}

.card-subtasks svg {
    width: 14px;
    height: 14px
}

.subtask-list {
    border-top: 1px solid var(--line);
    margin-bottom: 18px
}

.subtask-row {
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr) auto minmax(90px, auto) 18px;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 4px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    text-align: left
}

.subtask-row:hover {
    background: #1d222b
}

.subtask-row svg {
    width: 15px;
    height: 15px;
    color: var(--muted)
}

.project-member-picker {
    display: grid;
    max-height: 230px;
    overflow-y: auto
}

.project-member-option {
    display: grid;
    grid-template-columns: 18px minmax(130px, 1fr) minmax(130px, 180px);
    align-items: center;
    gap: 10px;
    padding: 9px 4px;
    border-bottom: 1px solid var(--line)
}

.project-member-option span {
    display: grid;
    gap: 2px;
    min-width: 0
}

.project-member-option small {
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap
}

.project-member-option select {
    min-width: 0
}

@media (max-width: 620px) {
    .project-member-option {
        grid-template-columns: 18px 1fr
    }

    .project-member-option select {
        grid-column: 2
    }
}

.type-icon {
    font-size: 10px;
    padding: 3px 5px;
    border-radius: 3px;
    background: #29486a;
    color: #bfe0ff
}

.type-icon.Bug {
    background: #572d35;
    color: #ffb6b1
}

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

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, .74);
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    backdrop-filter: blur(8px)
}

.modal {
    position: relative;
    background: linear-gradient(180deg, rgba(31, 41, 55, .99), rgba(17, 24, 39, .99));
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 8px;
    width: min(620px, 100%);
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 26px 90px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .04);
    animation: modal-pop .16s ease-out
}

.modal:has(.dialog-prompt.danger) {
    border-color: rgba(248, 113, 113, .35);
    box-shadow: 0 26px 90px rgba(0, 0, 0, .58), 0 0 0 1px rgba(248, 113, 113, .08), inset 0 1px 0 rgba(255, 255, 255, .04)
}

.modal::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--green), var(--red))
}

.modal:has(.dialog-prompt.danger)::before {
    background: linear-gradient(90deg, #f87171, #f59e0b, #ef4444)
}

.modal.wide {
    width: min(920px, 100%)
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(17, 24, 39, .94);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 2
}

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

.modal-head .icon {
    border-color: transparent;
    background: rgba(51, 65, 85, .45)
}

.modal-head .icon:hover {
    background: rgba(96, 165, 250, .18);
    border-color: rgba(96, 165, 250, .35);
    transform: rotate(90deg)
}

.modal-body {
    padding: 20px
}

.modal .btn {
    transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease
}

.modal .btn:hover {
    transform: translateY(-1px)
}

.modal .btn:focus-visible,
.modal input:focus-visible,
.modal select:focus-visible,
.modal textarea:focus-visible {
    outline: 2px solid rgba(96, 165, 250, .8);
    outline-offset: 2px
}

.modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--line)
}

.dialog-prompt {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 18px
}

.dialog-icon {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #bfdbfe;
    background: rgba(96, 165, 250, .14);
    border: 1px solid rgba(96, 165, 250, .32);
    animation: dialog-icon-pop .28s cubic-bezier(.2, .8, .2, 1)
}

.dialog-icon svg {
    width: 24px;
    height: 24px
}

.dialog-prompt.danger .dialog-icon {
    color: #fecaca;
    background: rgba(239, 68, 68, .16);
    border-color: rgba(248, 113, 113, .38);
    animation: dialog-danger-pop .36s cubic-bezier(.2, .8, .2, 1)
}

.dialog-message {
    color: var(--text);
    line-height: 1.5;
    margin: 0;
    white-space: pre-line
}

.modal-foot .danger:hover {
    box-shadow: 0 8px 22px rgba(239, 68, 68, .22)
}

.modal-foot .primary:hover {
    box-shadow: 0 8px 22px rgba(96, 165, 250, .22)
}

@keyframes modal-pop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.985)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

@keyframes dialog-icon-pop {
    0% {
        opacity: 0;
        transform: scale(.76) rotate(-8deg)
    }

    70% {
        transform: scale(1.06) rotate(2deg)
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0)
    }
}

@keyframes dialog-danger-pop {
    0% {
        opacity: 0;
        transform: scale(.72) rotate(-10deg)
    }

    45% {
        transform: scale(1.08) rotate(5deg)
    }

    72% {
        transform: scale(.98) rotate(-2deg)
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0)
    }
}

@media (prefers-reduced-motion: reduce) {

    .modal,
    .modal .btn,
    .dialog-icon {
        animation: none;
        transition: none
    }
}

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

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

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 24px
}

.detail-title {
    font-size: 22px;
    margin: 4px 0 18px
}

.description {
    white-space: pre-wrap;
    color: #c7ccd5;
    min-height: 70px
}

.side-fields {
    border-left: 1px solid var(--line);
    padding-left: 20px
}

.side-fields dl {
    margin: 0
}

.side-fields dt {
    color: var(--muted);
    font-size: 11px;
    margin-top: 14px
}

.side-fields dd {
    margin: 5px 0
}

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

.comment-head {
    display: flex;
    justify-content: space-between;
    font-size: 12px
}

.comment p {
    white-space: pre-wrap;
    margin: 8px 0 0
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: #252b35;
    border: 1px solid #46505f;
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    z-index: 80;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: .2s
}

.toast.show {
    opacity: 1;
    transform: none
}

.mobile-menu {
    display: none
}

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

    .metric {
        border-bottom: 1px solid var(--line)
    }

    .board {
        grid-template-columns: repeat(4, 280px)
    }
}

@media(max-width:760px) {
    .login {
        display: block
    }

    .login-form {
        min-height: 100vh;
        padding: 32px
    }

    .login-art {
        display: none
    }

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

    .top-brand {
        width: auto
    }

    .top-brand span:last-child {
        display: none
    }

    .mobile-menu {
        display: inline-flex
    }

    .sidebar {
        position: fixed;
        left: -250px;
        top: 56px;
        width: 236px;
        z-index: 30;
        transition: .2s
    }

    .sidebar.open {
        left: 0
    }

    .main {
        padding: 18px 14px
    }

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

    .page-head {
        align-items: center
    }

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

    .side-fields {
        border: 0;
        border-top: 1px solid var(--line);
        padding: 12px 0
    }

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

    .span-2 {
        grid-column: auto
    }

    .global-search {
        display: none
    }
}

.project-picker {
    width: auto;
    min-width: 180px
}

.planning-band {
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
    margin-bottom: 18px
}

.scrum-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 22px;
    align-items: start;
    margin-bottom: 26px
}

.sprint-layout {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr)
}

.backlog-tree {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    overflow: hidden
}

.epic-group {
    border-bottom: 1px solid var(--line)
}

.epic-group:last-child {
    border-bottom: 0
}

.epic-group summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    cursor: pointer;
    background: #1b1f28
}

.epic-group summary small {
    color: var(--muted)
}

.backlog-issue {
    display: grid;
    grid-template-columns: 22px auto minmax(180px, 1fr) auto 58px minmax(110px, auto);
    align-items: center;
    gap: 9px;
    min-height: 43px;
    padding: 8px 14px;
    border-top: 1px solid var(--line);
    cursor: pointer
}

.backlog-issue:hover,
.sprint-row.selected {
    background: #222833
}

.backlog-issue input {
    width: auto
}

.backlog-picker {
    max-height: 58vh;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius)
}

.backlog-pick {
    display: grid;
    grid-template-columns: 22px auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    margin: 0;
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 13px
}

.backlog-pick:last-child {
    border-bottom: 0
}

.backlog-pick:hover {
    background: #222833
}

.backlog-pick input {
    width: auto
}

.backlog-issue.depth-1 {
    padding-left: 30px
}

.backlog-issue.depth-2 {
    padding-left: 52px
}

.points {
    padding: 3px 7px;
    border-radius: 10px;
    background: #263141;
    color: #b8d7ff;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap
}

.type-icon.Epic {
    background: #392b5f;
    color: #d9ccff
}

.type-icon.Story {
    background: #214c39;
    color: #b8f3d3
}

.sprint-board {
    grid-template-columns: repeat(5, minmax(230px, 1fr))
}

.scrum-column {
    min-height: 360px
}

.empty.compact {
    padding: 20px
}

.sprint-row,
.release-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line)
}

.sprint-row div:first-child,
.release-row div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.timeline {
    position: relative;
    padding-left: 20px
}

.timeline:before {
    content: "";
    position: absolute;
    left: 5px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: var(--line)
}

.timeline-item {
    position: relative;
    padding: 10px 0 16px
}

.timeline-item>div {
    display: flex;
    flex-direction: column;
    gap: 5px
}

.timeline-dot {
    position: absolute;
    left: -20px;
    top: 16px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--purple);
    border: 2px solid var(--bg)
}

.timeline-dot.milestone {
    background: var(--amber)
}

.timeline-item .progress {
    max-width: 500px;
    margin: 5px 0 0
}

.release-list {
    border-top: 1px solid var(--line)
}

.release-progress {
    width: 220px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px
}

.release-progress .progress {
    margin: 0
}

.workflow-track {
    display: flex;
    align-items: center;
    gap: 30px;
    overflow: auto;
    padding: 22px 4px 30px
}

.workflow-status {
    position: relative;
    min-width: 155px;
    padding: 15px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 4px 8px
}

.workflow-status:not(:last-child):after {
    content: ">";
    position: absolute;
    right: -23px;
    top: 19px;
    color: var(--muted)
}

.workflow-status>span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 4px
}

.workflow-status small {
    grid-column: 2;
    color: var(--muted)
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 28px
}

.report-grid section {
    min-width: 0
}

.bar-row {
    display: grid;
    grid-template-columns: 100px minmax(80px, 1fr) 35px;
    align-items: center;
    gap: 10px;
    margin: 10px 0
}

.bar-row .progress {
    margin: 0
}

.trend-chart {
    height: 170px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    padding: 10px 6px 0;
    margin-bottom: 24px
}

.trend-chart>div {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 5px
}

.trend-chart span {
    display: block;
    width: min(28px, 80%);
    min-height: 4px;
    background: var(--green);
    border-radius: 3px 3px 0 0
}

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

.report-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px
}

.report-filter {
    align-items: end
}

.report-filter input,
.report-filter select {
    min-width: 150px
}

.personal-report {
    display: flex;
    flex-direction: column;
    gap: 22px
}

.employee-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel)
}

.avatar.large {
    width: 64px;
    height: 64px;
    font-size: 19px
}

.avatar.large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%
}

.report-summary,
.admin-insights {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    padding: 18px
}

.report-summary p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0
}

.mini-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
}

.personal-table {
    max-height: 520px;
    overflow: auto
}

.overdue-row td {
    background: rgba(248, 113, 104, .06)
}

.achievement-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.achievement-list span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid rgba(245, 205, 71, .35);
    border-radius: var(--radius);
    color: #f8df85;
    background: rgba(245, 205, 71, .08);
    font-weight: 700
}

.personal-trend span {
    background: var(--green)
}

.personal-trend em {
    display: block;
    width: min(18px, 65%);
    min-height: 4px;
    background: var(--blue);
    border-radius: 3px 3px 0 0;
    opacity: .75
}

.admin-insights {
    border-color: rgba(184, 165, 255, .45)
}

.transfer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px
}

.transfer-grid section {
    border-top: 1px solid var(--line);
    padding-top: 18px
}

.transfer-grid form {
    display: flex;
    gap: 9px;
    align-items: center
}

.transfer-grid input {
    max-width: 360px
}

@media(max-width:760px) {

    .form-grid,
    .report-grid,
    .mini-metrics,
    .transfer-grid {
        grid-template-columns: 1fr
    }

    .employee-summary {
        align-items: flex-start;
        flex-direction: column
    }

    .sprint-row,
    .release-row {
        grid-template-columns: 1fr auto
    }

    .release-progress {
        width: 160px
    }

    .workflow-track {
        padding-bottom: 16px
    }

    .project-picker {
        max-width: 170px
    }

    .transfer-grid form {
        align-items: stretch;
        flex-direction: column
    }
}

@media print {
    body {
        background: white;
        color: #111
    }

    .topbar,
    .sidebar,
    .page-head .actions,
    .report-tabs,
    .report-filter,
    #toast {
        display: none !important
    }

    .shell {
        display: block
    }

    .main {
        margin: 0;
        padding: 0;
        overflow: visible
    }

    .personal-report,
    .report-summary,
    .employee-summary,
    .admin-insights,
    .metric,
    .project-card,
    .table-wrap {
        background: white !important;
        color: #111 !important;
        border-color: #ddd !important
    }

    .muted,
    label,
    .report-summary p {
        color: #555 !important
    }

    .personal-table {
        max-height: none;
        overflow: visible
    }
}

.calendar-title {
    font-size: 16px;
    margin: 0 0 12px
}

.calendar-toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px
}

.calendar-toolbar h2 {
    margin: 0;
    font-size: 18px
}

.calendar-legend {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 11px
}

.calendar-legend i {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--blue)
}

.calendar-legend i.sprint {
    background: var(--purple)
}

.calendar-legend i.release {
    background: var(--green)
}

.calendar-scroll {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius)
}

.calendar-week,
body.pm .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(100px, 1fr));
    min-width: 700px
}

.calendar-week {
    background: #1b1e26;
    border-bottom: 1px solid var(--line)
}

.calendar-week span {
    padding: 9px;
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase
}

body.pm .calendar-day {
    position: relative;
    min-height: 116px;
    padding: 8px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--panel);
    /* reset analytics date-picker sizing leaking into PM calendar */
    width: auto;
    height: auto;
    margin: 0;
    display: block;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    border-radius: 0;
    cursor: default;
    user-select: auto;
    font-size: inherit;
    color: var(--text)
}

body.pm .calendar-day:nth-child(7n) {
    border-right: 0
}

body.pm .calendar-day.outside {
    opacity: .42
}

body.pm .calendar-day>strong {
    display: block;
    font-size: 11px;
    margin-bottom: 6px
}

body.pm .calendar-day>strong.today {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    margin-top: -3px;
    border-radius: 50%;
    color: #fff;
    background: var(--blue)
}

.calendar-event {
    position: relative;
    display: block;
    width: 100%;
    border: 0;
    border-left: 3px solid var(--blue);
    border-radius: 2px;
    text-align: left;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 3px 5px;
    background: #202b3a;
    margin: 3px 0;
    font-size: 10px;
    cursor: default
}

.calendar-event.task {
    cursor: pointer
}

.calendar-event.task:hover,
.calendar-event.task:focus-visible {
    background: #26384e;
    outline: 1px solid #496886
}

.calendar-event.sprint {
    border-color: var(--purple)
}

.calendar-event.release {
    border-color: var(--green)
}

.calendar-event.milestone {
    border-color: var(--amber)
}

.calendar-event.project {
    border-color: #94a3b8
}

body.pm .task-popover {
    display: none;
    position: absolute;
    z-index: 30;
    top: calc(100% + 5px);
    left: 0;
    width: 250px;
    padding: 11px;
    border: 1px solid #465064;
    border-radius: 6px;
    background: #191d25;
    box-shadow: 0 12px 30px #0009;
    white-space: normal;
    color: #e8eaf0
}

.calendar-event.task:hover {
    overflow: visible
}

.calendar-event.task:hover .task-popover,
.calendar-event.task:focus-visible .task-popover {
    display: block
}

.task-popover strong,
.task-popover small {
    display: block
}

.task-popover small {
    margin: 4px 0 9px;
    color: var(--muted)
}

.task-popover dl {
    display: grid;
    grid-template-columns: 65px 1fr;
    gap: 5px;
    margin: 0
}

.task-popover dt {
    color: var(--muted)
}

.task-popover dd {
    margin: 0
}

.task-popover p {
    margin: 9px 0 0;
    color: #c8ced8;
    line-height: 1.4;
    max-height: 58px;
    overflow: hidden
}

body.pm .calendar-day:nth-child(7n) .task-popover,
body.pm .calendar-day:nth-child(7n - 1) .task-popover {
    left: auto;
    right: 0
}

body.pm .calendar-day.popup-up .task-popover {
    top: auto;
    bottom: calc(100% + 5px)
}

.calendar-more {
    position: relative;
    margin-top: 3px
}

.calendar-more summary {
    padding: 3px 5px;
    border-radius: 3px;
    color: #9fc8f5;
    background: #20252e;
    font-size: 10px;
    cursor: pointer;
    list-style: none
}

.calendar-more summary::-webkit-details-marker {
    display: none
}

body.pm .calendar-more-list {
    position: absolute;
    z-index: 25;
    left: 0;
    top: calc(100% + 4px);
    width: 240px;
    max-height: 210px;
    overflow-y: auto;
    padding: 7px;
    border: 1px solid #465064;
    border-radius: 6px;
    background: #171b22;
    box-shadow: 0 12px 30px #0009
}

body.pm .calendar-day:nth-child(7n) .calendar-more-list,
body.pm .calendar-day:nth-child(7n - 1) .calendar-more-list {
    left: auto;
    right: 0
}

body.pm .calendar-day.popup-up .calendar-more-list {
    top: auto;
    bottom: calc(100% + 4px)
}

.search-band {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr) 140px 140px auto;
    gap: 8px;
    margin-bottom: 10px
}

.saved-filters {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 18px
}

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

.settings-columns section {
    min-width: 0
}

.setting-row {
    min-height: 48px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 2px
}

.setting-row span {
    display: flex;
    flex-direction: column;
    gap: 3px
}

.setting-row small {
    color: var(--muted)
}

.label-swatch {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: none
}

.preference-list {
    max-width: 620px;
    border-top: 1px solid var(--line)
}

.preference-list>label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 3px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 14px
}

.preference-list input {
    width: auto
}

.preference-list .btn {
    margin-top: 18px
}

.checklist label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 13px
}

.checklist input {
    width: auto;
    margin-top: 2px
}

.checklist input:checked+span {
    text-decoration: line-through;
    color: var(--muted)
}

.inline-form {
    display: flex;
    gap: 7px;
    margin-top: 10px
}

.inline-form .btn {
    flex: none
}

.side-fields select[multiple] {
    min-height: 78px;
    margin-bottom: 12px
}

.custom-field {
    margin: 10px 0
}

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

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

@media(max-width:760px) {

    .search-band,
    .settings-columns {
        grid-template-columns: 1fr
    }

    body.pm .calendar-day {
        min-height: 96px
    }

    .calendar-toolbar {
        grid-template-columns: 1fr auto;
        align-items: end
    }

    .calendar-toolbar h2 {
        grid-column: 1 / -1;
        grid-row: 1;
        font-size: 16px
    }

    .calendar-legend {
        display: none
    }

    .calendar-week,
    body.pm .calendar-grid {
        grid-template-columns: repeat(7, 90px);
        min-width: 630px
    }

    .task-popover {
        width: 220px
    }
}

.role-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px
}

.role-list {
    border-right: 1px solid var(--line);
    padding-right: 12px
}

.role-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 12px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--text);
    text-align: left
}

.role-row:hover,
.role-row.active {
    background: var(--panel)
}

.role-row span,
.role-row small,
.permission-row small {
    color: var(--muted)
}

.permission-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px
}

.permission-groups fieldset {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 12px
}

.permission-groups legend {
    padding: 0 6px;
    font-weight: 800
}

.permission-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line)
}

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

.permission-row span {
    display: flex;
    flex-direction: column;
    gap: 3px
}

.permission-row input {
    width: auto
}

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

    .role-list {
        border: 0;
        border-bottom: 1px solid var(--line);
        display: flex;
        overflow: auto;
        padding: 0 0 12px
    }

    .role-row {
        min-width: 190px
    }

    .permission-groups {
        grid-template-columns: 1fr
    }
}

.row-actions,
.detail-actions,
.attachment-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap
}

.row-actions {
    justify-content: flex-end
}

.detail-actions {
    margin: 0 0 18px
}

.attachment-actions {
    margin-top: 10px
}

.attachment-list {
    display: grid;
    gap: 10px;
    margin-bottom: 12px
}

.attachment-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    background: var(--panel2);
    border-radius: var(--radius);
    padding: 10px
}

.attachment-preview {
    width: 78px;
    height: 58px;
    border-radius: var(--radius);
    background: #11141a;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--muted);
    overflow: hidden
}

.attachment-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.attachment-preview svg {
    width: 26px;
    height: 26px
}

.attachment-card strong,
.attachment-card small {
    display: block;
    overflow-wrap: anywhere
}

.attachment-card small {
    color: var(--muted);
    margin-top: 3px
}

.attachment-upload {
    margin-bottom: 20px
}

.link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line)
}

.compact-fieldset {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    margin-top: 12px
}

.compact-fieldset .check {
    display: inline-flex;
    margin-right: 18px
}

.save-columns {
    margin-top: 12px
}

.setting-row {
    justify-content: space-between
}

.worklog-row .row-actions {
    grid-column: 1/-1;
    justify-content: flex-start
}

.btn.danger {
    color: #ffb4b4;
    border-color: #59343b
}

@media(max-width:760px) {
    .row-actions {
        justify-content: flex-start
    }

    td.row-actions {
        min-width: 120px
    }

    .detail-actions .btn {
        flex: 1
    }

    .compact-fieldset .check {
        display: flex;
        margin: 8px 0
    }
}

.automation-list,
.form-list {
    border-top: 1px solid var(--line)
}

.automation-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto 36px;
    align-items: center;
    gap: 12px;
    padding: 13px 2px;
    border-bottom: 1px solid var(--line)
}

.automation-icon {
    width: 34px;
    height: 34px;
    border-radius: 5px;
    background: #3d361d;
    color: var(--amber);
    display: grid;
    place-items: center
}

.automation-icon svg {
    width: 17px
}

.automation-row>div {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.automation-row small {
    color: var(--muted)
}

.toggle {
    margin: 0
}

.toggle input {
    display: none
}

.toggle span {
    display: block;
    width: 34px;
    height: 19px;
    border-radius: 10px;
    background: #343943;
    position: relative
}

.toggle span:after {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: #aab0bd;
    transition: .15s
}

.toggle input:checked+span {
    background: #315d85
}

.toggle input:checked+span:after {
    left: 17px;
    background: #fff
}

.form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 16px 2px;
    border-bottom: 1px solid var(--line)
}

.form-row>div {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.form-row p {
    margin: 2px 0 0
}

.range-form {
    display: flex;
    gap: 8px;
    margin-bottom: 18px
}

.range-form input {
    width: 160px
}

.timesheet-metrics {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr))
}

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

.system-settings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px
}

.system-settings form {
    border-top: 1px solid var(--line);
    padding-top: 16px
}

.system-settings h2 {
    font-size: 16px;
    margin: 0 0 18px
}

.system-settings .check {
    margin-bottom: 18px
}

.archive-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px
}

.archive-groups section {
    min-width: 0
}

.archive-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--line)
}

.archive-row>div {
    display: flex;
    flex-direction: column;
    gap: 3px
}

.archive-row small {
    color: var(--muted)
}

.worklog-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px
}

.worklog-row small {
    grid-column: 1/-1;
    color: var(--muted)
}

@media(max-width:900px) {
    .system-settings {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:760px) {

    .system-settings,
    .archive-groups {
        grid-template-columns: 1fr
    }

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

    .range-form {
        flex-wrap: wrap
    }

    .range-form input {
        width: calc(50% - 4px)
    }
}

.checklist-row,
.saved-filter {
    display: flex;
    align-items: center;
    gap: 6px
}

.checklist-row {
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    min-height: 44px
}

.checklist-row label {
    flex: 1;
    border: 0;
    min-width: 0
}

.checklist-row .row-actions {
    flex: 0 0 auto;
    min-width: 78px;
    justify-content: flex-end
}

.checklist-row .btn.icon {
    background: rgba(31, 41, 55, .9)
}

.checklist-row .btn.icon svg {
    opacity: 1
}

.saved-filter {
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--panel)
}

.saved-filter>button:first-child {
    border: 0;
    background: transparent;
    color: var(--text);
    padding: 5px 7px;
    cursor: pointer
}

.saved-filter .btn {
    width: 28px;
    height: 28px;
    padding: 5px
}

.phase-section {
    margin-top: 34px
}

.access-grid,
.user-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px
}

.access-grid>section {
    border-top: 1px solid var(--line)
}

.access-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 8px 2px;
    border-bottom: 1px solid var(--line)
}

.access-row>div,
.activity-line {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.access-row small,
.activity-line small {
    color: var(--muted)
}

.member-list {
    max-height: 320px;
    overflow: auto
}

.user-detail-grid dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 9px;
    margin: 0
}

.user-detail-grid dt {
    color: var(--muted)
}

.user-detail-grid dd {
    margin: 0
}

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

@media(max-width:760px) {

    .access-grid,
    .user-detail-grid {
        grid-template-columns: 1fr
    }
}

.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 30px
}

.security-grid>section {
    min-width: 0;
    border-top: 1px solid var(--line)
}

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

.welcome-block {
    margin-bottom: 24px;
    padding: 4px 0 8px
}

.welcome-block h1 {
    margin: 0 0 8px;
    font-size: 28px
}

.welcome-block p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5
}

.issue-card.locked {
    cursor: not-allowed;
    opacity: .82
}

.issue-card.locked:hover {
    border-color: var(--line)
}

.segmented {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel)
}

.segmented button {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer
}

.segmented button.active {
    background: var(--blue);
    color: #fff
}

.access-denied {
    min-height: 360px
}