:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --surface-elevated: rgba(255, 255, 255, 0.94);
    --ink: #071227;
    --muted: #64748b;
    --line: #d8e3f1;
    --line-soft: #edf2f8;
    --primary: #1764ff;
    --primary-dark: #0d49d7;
    --primary-soft: #edf5ff;
    --purple: #7b35f2;
    --cyan: #08a9e6;
    --green: #22b978;
    --orange: #c47b22;
    --danger: #c2413f;
    --shadow: 0 18px 48px rgba(21, 31, 54, 0.1);
    --small-shadow: 0 10px 26px rgba(21, 31, 54, 0.07);
    --hairline-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, #f9fbff 0%, #f4f7fb 38%, #eef4fb 100%);
    font-family: Inter, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

[hidden] {
    display: none !important;
}

h1,
h2,
h3,
p {
    margin: 0;
}

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(180deg, #2468ff 0%, var(--primary) 100%);
    text-decoration: none;
    font-weight: 750;
    box-shadow: 0 8px 18px rgba(21, 92, 255, 0.18);
}

.button:not(.secondary):not(.quiet):hover:not(:disabled) {
    background: var(--primary-dark);
}

.button.secondary {
    color: #5f20d8;
    border-color: #e2d7ff;
    background: #fff;
    box-shadow: none;
}

.button.secondary:hover:not(:disabled) {
    color: #4f20b8;
    border-color: #cbb7ff;
    background: #f8f4ff;
}

.button.quiet {
    color: #344054;
    border-color: var(--line);
    background: #fff;
    box-shadow: none;
}

.button.quiet:hover:not(:disabled) {
    color: var(--primary);
    border-color: #b8c9ee;
    background: #f7faff;
}

.text-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    color: var(--primary);
    background: transparent;
    font-weight: 700;
}

.icon-button {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #344054;
    background: #fff;
    position: relative;
}

.icon-button.labeled {
    width: auto;
    grid-auto-flow: column;
    gap: 8px;
    padding: 0 12px;
    font-weight: 700;
}

.badge-button span {
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    position: absolute;
    top: -6px;
    right: -5px;
    border-radius: 999px;
    color: #fff;
    background: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
}

/* Login */
.login-page {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
    background: linear-gradient(135deg, #edf3fb 0%, #f8fbff 52%, #eef8f3 100%);
}

.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(23, 105, 215, 0.08), transparent 28%, transparent 72%, rgba(23, 143, 102, 0.08)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 18px);
}

.login-card {
    width: min(780px, 100%);
    min-height: min(720px, calc(100vh - 64px));
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    position: relative;
}

.login-brand {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 52px 40px 0;
    text-align: center;
}

.atalef-logo {
    width: min(238px, 68vw);
    max-height: 86px;
    height: auto;
    object-fit: contain;
}

.login-brand h1 {
    margin-top: 10px;
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 800;
}

.login-brand p,
.login-status,
.login-footer {
    color: var(--muted);
}

.auth-switch {
    width: min(360px, calc(100% - 56px));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 30px auto 0;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f3f6fb;
}

.mode-button {
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    color: var(--muted);
    background: transparent;
    font-weight: 750;
}

.mode-button.active {
    color: var(--ink);
    background: #fff;
    box-shadow: var(--small-shadow);
}

.credential-panels {
    width: min(560px, calc(100% - 56px));
    margin: 20px auto 0;
}

.credential-form {
    display: grid;
    gap: 14px;
}

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

.form-field,
.profile-page-form label {
    display: grid;
    gap: 6px;
    color: #27344c;
    font-size: 0.88rem;
    font-weight: 750;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field input,
.profile-page-form input,
.prompt-panel textarea,
.global-search input,
.grid-search input,
.catalog-toolbar select {
    width: 100%;
    border: 1px solid #cfd9e8;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
}

.form-field input,
.profile-page-form input,
.catalog-toolbar select {
    min-height: 44px;
    padding: 0 12px;
}

.form-field input:focus,
.profile-page-form input:focus,
.prompt-panel textarea:focus,
.global-search input:focus,
.grid-search input:focus,
.catalog-toolbar select:focus {
    outline: 3px solid rgba(21, 92, 255, 0.14);
    border-color: #7ca8df;
}

.checkbox-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--muted);
    font-size: 0.92rem;
}

.checkbox-field input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.form-primary {
    width: 100%;
}

.divider {
    width: min(480px, calc(100% - 56px));
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.login-actions {
    width: min(480px, calc(100% - 56px));
    display: grid;
    gap: 12px;
    margin: 14px auto 0;
}

.sso-button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #cfd9e8;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    text-decoration: none;
    font-weight: 750;
    box-shadow: var(--small-shadow);
}

.sso-button img {
    width: 24px;
    height: 24px;
}

.sso-button.disabled {
    pointer-events: none;
    opacity: 0.48;
}

.login-status {
    min-height: 24px;
    margin: 14px auto 0;
    padding: 0 24px;
    text-align: center;
    line-height: 1.45;
}

.login-footer {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding: 18px 40px;
    border-top: 1px solid var(--line);
    background: #fbfcff;
    font-size: 0.95rem;
}

.filuet-logo {
    width: 104px;
    height: auto;
}

/* Workspace */
.workspace {
    height: 100vh;
    height: 100svh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    background: #f7f9fc;
    overflow: hidden;
}

.sidebar {
    height: 100vh;
    height: 100svh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 14px;
    border-right: 1px solid var(--line);
    background: #fff;
    overflow: hidden;
    position: sticky;
    top: 0;
}

.sidebar-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px 8px;
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 850;
}

.sidebar-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.side-nav {
    min-height: 0;
    display: grid;
    gap: 6px;
    overflow: auto;
    scrollbar-width: none;
}

.side-nav::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.sidebar-bottom {
    flex: 0 0 auto;
    display: grid;
    gap: 8px;
    margin-top: auto;
}

.nav-item {
    min-height: 44px;
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    color: #27344c;
    background: transparent;
    text-align: left;
    font-weight: 700;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary);
    background: var(--primary-soft);
}

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

.nav-item.muted:not(.active) {
    color: #506078;
}

.profile-avatar {
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #155cff, #7b35f2);
    font-weight: 850;
}

.sidebar-profile-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.sidebar-profile-button {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--ink);
    background: transparent;
    text-align: left;
}

.sidebar-profile-button:hover,
.sidebar-profile-button.active {
    border-color: var(--line);
    background: var(--surface-soft);
}

.sidebar-profile-button .profile-avatar,
.profile-page-head .profile-avatar {
    border-radius: 999px;
}

.sidebar-profile-button .profile-avatar {
    width: 38px;
    height: 38px;
}

.sidebar-profile-button .profile-summary {
    min-width: 0;
}

.sidebar-profile-button strong,
.sidebar-profile-button small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-logout-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #4b5870;
    background: transparent;
}

.sidebar-logout-button:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.workspace-main {
    min-width: 0;
    height: 100vh;
    height: 100svh;
    overflow: auto;
}

.topbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.global-search,
.grid-search {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    position: relative;
}

.global-search {
    width: min(680px, 70vw);
}

.global-search svg,
.grid-search svg {
    position: absolute;
    left: 14px;
    z-index: 1;
}

.global-search input,
.grid-search input {
    height: 48px;
    padding: 0 14px 0 44px;
}

.profile-avatar {
    width: 44px;
    height: 44px;
}

.profile-summary {
    display: grid;
    gap: 2px;
    text-align: left;
}

.profile-summary small {
    color: var(--muted);
}

.toast-region {
    position: fixed;
    top: 88px;
    right: 24px;
    z-index: 60;
    display: grid;
    gap: 10px;
}

.toast {
    max-width: 360px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    color: #2f3d55;
}

.toast.error {
    border-left-color: var(--danger);
}

.page {
    display: none;
    padding: 20px 28px 28px;
}

.page.active {
    display: block;
}

.hero-workbench,
.catalog-panel,
.table-card,
.integration-grid,
.empty-state {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--small-shadow);
}

.hero-workbench {
    display: block;
    overflow: hidden;
}

.hero-copy,
.prompt-panel {
    padding: 18px 24px;
}

.jd-start-panel {
    display: grid;
    gap: 10px;
}

.jd-start-heading {
    display: grid;
    gap: 4px;
}

.jd-start-heading h1 {
    font-size: clamp(1.55rem, 2.1vw, 2rem);
    line-height: 1.05;
    font-weight: 850;
}

.jd-start-heading p {
    max-width: 780px;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.92rem;
}

.jd-textarea-label {
    color: #27344c;
    font-size: 0.9rem;
    font-weight: 800;
}

.hero-copy {
    border-right: 1px solid var(--line);
}

.ai-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #6d28d9;
    background: #efe7ff;
    font-size: 0.84rem;
    font-weight: 850;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 620px;
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    line-height: 1.05;
    font-weight: 850;
}

.hero-copy p {
    max-width: 640px;
    margin-top: 16px;
    color: var(--muted);
    line-height: 1.5;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.upload-tile {
    min-height: 122px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    text-align: center;
}

.upload-tile:hover {
    border-color: #a8bdf5;
    background: #fbfdff;
}

.upload-tile svg {
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #155cff, #22b978);
}

.upload-tile strong,
.upload-tile span {
    display: block;
}

.upload-tile span,
.privacy-note {
    color: var(--muted);
    font-size: 0.86rem;
}

.privacy-note {
    display: flex;
    align-items: center;
    gap: 6px;
}

.panel-title-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.panel-title-row h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.12rem;
}

.panel-title-row p {
    margin-top: 4px;
    color: var(--muted);
}

.prompt-panel textarea {
    min-height: 130px;
    resize: vertical;
    padding: 14px;
    line-height: 1.5;
}

.prompt-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: -42px;
    padding: 0 16px 16px;
    color: var(--muted);
    position: relative;
    pointer-events: none;
}

.prompt-footer.simple {
    justify-content: space-between;
    margin-top: 0;
    padding: 0;
    pointer-events: auto;
}

.prompt-footer .text-button {
    pointer-events: auto;
}

.gentle-upload-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #475467;
    background: #fff;
    font-weight: 750;
}

.gentle-upload-button:hover {
    border-color: #a8bdf5;
    color: var(--primary);
    background: #fbfdff;
}

.attribute-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #263349;
    background: #fff;
    font-weight: 750;
    font-size: 0.9rem;
}

.chip svg {
    color: var(--primary);
}

.prompt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.catalog-panel {
    margin-top: 18px;
    padding: 18px;
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: auto minmax(240px, 1fr) 190px 160px auto auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.view-tabs {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f4f7fb;
    overflow: hidden;
}

.tab-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-right: 1px solid var(--line);
    padding: 0 18px;
    color: #344054;
    background: transparent;
    font-weight: 750;
}

.tab-button:last-child {
    border-right: 0;
}

.tab-button.active {
    color: var(--primary);
    background: #fff;
}

.workspace-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 14px;
}

.entity-card {
    min-height: 192px;
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.entity-card:hover {
    border-color: #b8c9f3;
    box-shadow: var(--small-shadow);
}

.card-head {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 12px;
    align-items: center;
}

.card-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #155cff, #22b978);
}

.card-head h3 {
    font-size: 1rem;
}

.card-head p,
.meta-line,
.card-foot {
    color: var(--muted);
    font-size: 0.9rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    color: #177a4c;
    background: #def7e8;
    font-size: 0.8rem;
    font-weight: 850;
}

.status-pill.draft {
    color: #1556a4;
    background: #e2efff;
}

.status-pill.hold {
    color: #8a5712;
    background: #fff1d7;
}

.score-ring {
    --score: 0%;
    width: 26px;
    height: 26px;
    display: inline-block;
    border-radius: 50%;
    background: conic-gradient(var(--primary) var(--score), #d7e2f5 0);
    position: relative;
}

.score-ring::after {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    inset: 4px;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.card-stats span,
.meta-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

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

.card-action {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    color: #4b5b75;
    background: transparent;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-heading h1 {
    font-size: 2rem;
    font-weight: 850;
}

.page-heading p {
    margin-top: 4px;
    color: var(--muted);
}

.table-card {
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: #475467;
    background: #f8fafc;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.data-table td {
    color: #253044;
}

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

.mini-button {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #344054;
    background: #fff;
    font-weight: 750;
}

.mini-button:hover:not(:disabled) {
    color: var(--primary);
    border-color: #b8c9ee;
    background: #f7faff;
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 16px;
    padding: 18px;
}

.integration-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.integration-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.integration-card p {
    color: var(--muted);
    line-height: 1.45;
}

.connection-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.84rem;
}

.connection-editor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.connection-editor label {
    display: grid;
    gap: 4px;
    color: #344054;
    font-size: 0.78rem;
    font-weight: 750;
}

.connection-editor input,
.connection-editor select,
.detail-connection-select,
.detail-ats-input {
    min-height: 38px;
    width: 100%;
    border: 1px solid #cfd9e8;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
}

.connection-editor input,
.connection-editor select,
.detail-connection-select,
.detail-ats-input {
    padding: 0 10px;
}

.mini-button.danger {
    color: var(--danger);
}

.candidate-warning {
    color: var(--orange);
    font-size: 0.76rem;
}

.dialog-heading {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.dialog-heading h2 {
    margin: 0;
}

.dialog-heading p {
    margin: 0;
    color: var(--muted);
}

.json-view {
    max-height: 62vh;
    overflow: auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0f172a;
    color: #e2e8f0;
    font: 0.78rem/1.5 Consolas, "Cascadia Mono", Menlo, monospace;
    white-space: pre-wrap;
}

.empty-state {
    min-height: 420px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: var(--muted);
}

.empty-state svg {
    width: 54px;
    height: 54px;
    color: var(--primary);
}

.empty-grid {
    min-height: 240px;
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    border: 1px dashed #c9d4e5;
    border-radius: 8px;
    color: var(--muted);
    background: #fbfdff;
    text-align: center;
}

.match-dialog {
    width: min(980px, calc(100vw - 40px));
    max-height: calc(100vh - 60px);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0;
    box-shadow: var(--shadow);
}

.match-dialog.report-dialog {
    width: min(1120px, calc(100vw - 32px));
    height: calc(100vh - 32px);
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    background: #eef2f8;
    overflow: hidden;
}

.match-dialog::backdrop {
    background: rgba(17, 24, 39, 0.42);
}

.dialog-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    position: absolute;
    top: 14px;
    right: 14px;
    border: 0;
    border-radius: 8px;
    color: #344054;
    background: #f4f7fb;
}

.match-summary {
    padding: 26px;
}

.match-summary h2 {
    font-size: 1.5rem;
}

.match-summary pre {
    max-height: 320px;
    overflow: auto;
    padding: 14px;
    border-radius: 8px;
    color: #d9e5ff;
    background: #111724;
    font: 0.84rem/1.45 Consolas, "Cascadia Mono", Menlo, monospace;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0;
}

.summary-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.summary-card span {
    color: var(--muted);
    font-size: 0.84rem;
}

.summary-card strong {
    display: block;
    margin-top: 4px;
    font-size: 1.4rem;
}

/* Job details */
.details-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.details-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.detail-connection-select {
    width: min(230px, 100%);
}

.detail-ats-input {
    width: min(180px, 100%);
}

.detail-check {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #344054;
    background: #fff;
    font-size: 0.88rem;
    font-weight: 700;
}

.detail-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.oversight-form {
    display: grid;
    gap: 16px;
    padding: 28px;
}

.oversight-form label:not(.detail-check) {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
}

.oversight-form input,
.oversight-form select,
.oversight-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font: inherit;
}

.oversight-form textarea {
    resize: vertical;
}

.oversight-form .detail-check input {
    width: 16px;
    padding: 0;
}

.field-help,
.candidate-review-intro p {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.45;
}

.form-grid .field-help {
    grid-column: 1 / -1;
    margin-top: -4px;
}

.candidate-review-intro,
.review-history {
    display: grid;
    gap: 8px;
}

.candidate-review-intro strong,
.review-history strong {
    color: var(--text);
    font-size: 0.96rem;
}

.oversight-form .data-table {
    margin-top: 0;
}

.job-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    gap: 18px;
    align-items: start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.job-detail-hero h1 {
    margin: 10px 0 8px;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.05;
}

.job-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 18px;
    margin-top: 18px;
}

.job-detail-grid.wide {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.detail-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.detail-panel h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--ink);
    font-size: 1rem;
}

.attribute-list {
    display: grid;
    gap: 10px;
}

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

.attribute-row:last-child {
    border-bottom: 0;
}

.attribute-row span,
.skill-row span {
    color: var(--muted);
}

.attribute-row strong {
    text-align: right;
    overflow-wrap: anywhere;
}

.skill-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.skill-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    min-height: 70px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.skill-row strong,
.skill-row span {
    display: block;
}

.skill-row small {
    flex: 0 0 auto;
    color: var(--muted);
    white-space: nowrap;
}

.detail-copy {
    white-space: pre-line;
    color: var(--text);
    line-height: 1.6;
}

.table-card.compact {
    padding: 0;
    border: 0;
    box-shadow: none;
}

/* Settings and profile */
.settings-section,
.profile-page-card {
    max-width: 960px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.settings-section + .settings-section {
    margin-top: 18px;
}

.section-heading {
    margin-bottom: 16px;
}

.section-heading h2 {
    font-size: 1.15rem;
}

.section-heading p {
    margin-top: 4px;
    color: var(--muted);
}

.profile-page-card {
    display: grid;
    gap: 20px;
}

.profile-page-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.profile-page-head .profile-avatar {
    width: 56px;
    height: 56px;
    font-size: 1.05rem;
}

.profile-page-head h2 {
    font-size: 1.35rem;
}

.profile-page-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.settings-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.settings-form label {
    display: grid;
    gap: 6px;
    color: #27344c;
    font-size: 0.88rem;
    font-weight: 750;
}

.settings-form input,
.settings-form textarea {
    width: 100%;
    border: 1px solid #cfd9e8;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
}

.settings-form input {
    min-height: 44px;
    padding: 0 12px;
}

.settings-form textarea {
    min-height: 240px;
    resize: vertical;
    padding: 12px;
    font: 0.84rem/1.5 Consolas, "Cascadia Mono", Menlo, monospace;
}

.settings-form input:focus,
.settings-form textarea:focus {
    outline: 3px solid rgba(21, 92, 255, 0.14);
    border-color: #7ca8df;
}

.settings-form-wide,
.settings-actions {
    grid-column: 1 / -1;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.settings-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.88rem;
}

.profile-page-form label:nth-child(3),
.profile-page-form .form-primary {
    grid-column: 1 / -1;
}

/* Workspace polish */
.workspace {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(244, 247, 251, 0.72)),
        var(--bg);
}

.sidebar {
    border-right-color: #e2eaf5;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 8px 0 30px rgba(21, 31, 54, 0.035);
}

.sidebar-brand {
    min-height: 36px;
    letter-spacing: -0.03em;
}

.sidebar-brand img {
    filter: drop-shadow(0 6px 10px rgba(23, 100, 255, 0.12));
}

.nav-item {
    position: relative;
    color: #25324a;
    transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.nav-item svg {
    color: #53647f;
    transition: color 0.16s ease, transform 0.16s ease;
}

.nav-item:hover {
    color: #0f4fde;
    background: linear-gradient(180deg, #f6f9ff 0%, #eef5ff 100%);
}

.nav-item:hover svg,
.nav-item.active svg {
    color: var(--primary);
}

.nav-item.active {
    color: var(--primary);
    background: linear-gradient(180deg, #f2f7ff 0%, #e9f2ff 100%);
    box-shadow: inset 3px 0 0 var(--primary), 0 10px 22px rgba(23, 100, 255, 0.08);
}

.sidebar-profile-card {
    border-top-color: #e4edf8;
}

.sidebar-profile-button {
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.sidebar-profile-button:hover,
.sidebar-profile-button.active {
    border-color: #d8e5f7;
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    box-shadow: var(--small-shadow);
}

.sidebar-logout-button {
    transition: color 0.16s ease, background 0.16s ease;
}

.topbar {
    min-height: 80px;
    border-bottom-color: rgba(216, 227, 241, 0.9);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 28px rgba(21, 31, 54, 0.045);
}

.global-search input,
.grid-search input,
.catalog-toolbar select,
.connection-editor input,
.connection-editor select,
.detail-connection-select,
.detail-ats-input {
    border-color: #d3deed;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--hairline-shadow);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.global-search input {
    height: 52px;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(21, 31, 54, 0.055), var(--hairline-shadow);
}

.global-search input:focus,
.grid-search input:focus,
.catalog-toolbar select:focus,
.prompt-panel textarea:focus {
    border-color: rgba(23, 100, 255, 0.52);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(23, 100, 255, 0.11), var(--hairline-shadow);
    outline: 0;
}

.hero-workbench,
.catalog-panel,
.table-card,
.integration-grid,
.empty-state,
.profile-page-card,
.settings-section,
.detail-panel,
.job-detail-hero {
    border-color: rgba(209, 222, 238, 0.95);
    background: var(--surface-elevated);
    box-shadow: 0 18px 42px rgba(21, 31, 54, 0.07), var(--hairline-shadow);
}

.hero-workbench {
    position: relative;
}

.hero-workbench::before {
    content: "";
    height: 3px;
    position: absolute;
    inset: 0 0 auto;
    background: linear-gradient(90deg, #1764ff 0%, #08a9e6 48%, #22b978 100%);
    opacity: 0.9;
}

.prompt-panel {
    padding: 22px 24px 18px;
}

.jd-start-heading h1,
.page-heading h1 {
    letter-spacing: -0.045em;
}

.jd-start-heading p,
.page-heading p,
.card-head p,
.meta-line {
    color: #5e6f89;
}

.jd-textarea-label {
    color: #14213a;
}

.prompt-panel textarea {
    min-height: 138px;
    border-color: #d1ddec;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 253, 255, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.prompt-panel textarea::placeholder,
.global-search input::placeholder,
.grid-search input::placeholder {
    color: #7b8aa4;
}

.prompt-footer.simple {
    align-items: center;
    color: #53647f;
}

.gentle-upload-button,
.mini-button,
.icon-button,
.tab-button,
.button {
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.button:not(.secondary):not(.quiet) {
    background: linear-gradient(180deg, #2872ff 0%, #1764ff 54%, #0d50e7 100%);
    box-shadow: 0 14px 28px rgba(23, 100, 255, 0.23);
}

.button:not(.secondary):not(.quiet):hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(23, 100, 255, 0.28);
}

.button.secondary,
.button.quiet,
.gentle-upload-button,
.mini-button,
.icon-button {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.button.secondary:hover:not(:disabled),
.button.quiet:hover:not(:disabled),
.gentle-upload-button:hover,
.mini-button:hover:not(:disabled),
.icon-button:hover {
    transform: translateY(-1px);
    border-color: #b7c9e6;
    background: linear-gradient(180deg, #ffffff 0%, #f1f7ff 100%);
    box-shadow: 0 10px 22px rgba(21, 31, 54, 0.08), var(--hairline-shadow);
}

.catalog-panel {
    padding: 18px;
}

.view-tabs {
    border-color: #d5e0ef;
    background: #f6f9fd;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.tab-button {
    color: #34425a;
}

.tab-button.active {
    color: var(--primary);
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    box-shadow: 0 8px 18px rgba(21, 31, 54, 0.06);
}

.workspace-grid {
    gap: 14px;
}

.entity-card {
    border-color: #d7e2f0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 252, 255, 0.95) 100%);
    box-shadow: 0 10px 26px rgba(21, 31, 54, 0.045), var(--hairline-shadow);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.entity-card:hover {
    transform: translateY(-2px);
    border-color: rgba(23, 100, 255, 0.32);
    box-shadow: 0 20px 44px rgba(21, 31, 54, 0.11), var(--hairline-shadow);
}

.card-icon {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 42%),
        linear-gradient(135deg, #1764ff 0%, #08a9e6 48%, #22b978 100%);
    box-shadow: 0 12px 24px rgba(23, 100, 255, 0.18);
}

.card-head h3 {
    letter-spacing: -0.015em;
}

.card-action {
    border-radius: 8px;
    transition: color 0.16s ease, background 0.16s ease;
}

.card-action:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.status-pill {
    box-shadow: inset 0 0 0 1px rgba(34, 185, 120, 0.12);
}

.score-ring {
    background: conic-gradient(var(--primary) var(--score), #e4ecf8 0);
    box-shadow: 0 4px 10px rgba(23, 100, 255, 0.12);
}

.score-ring::after {
    background: linear-gradient(180deg, #ffffff, #f9fbff);
}

.card-foot {
    border-top-color: #e4edf8;
}

.empty-grid {
    border-color: #d4e0ef;
    background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
}

/* Report */
.report-body {
    background: #eef2f8;
}

.report-shell {
    width: min(1080px, calc(100% - 32px));
    margin: 28px auto;
}

.report-document {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.report-dialog-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 22px;
}

.match-dialog.report-dialog #matchDialogContent {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
}

.match-dialog.report-dialog .dialog-close {
    top: 18px;
    right: 18px;
    z-index: 2;
}

.match-dialog.report-dialog .report-document {
    flex: 1 1 auto;
    min-height: 0;
    max-width: 100%;
    overflow: auto;
    overscroll-behavior: contain;
    box-shadow: none;
}

.match-dialog.report-dialog .report-header {
    position: sticky;
    top: 0;
    z-index: 3;
    margin: -34px -34px 24px;
    padding: 34px 34px 18px;
    background: #fff;
}

.report-toolbar {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.report-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 2px solid #1f2937;
}

.report-header h1 {
    font-size: 2rem;
}

.report-section {
    margin-top: 24px;
}

.report-section h2 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.report-section h3 {
    margin: 16px 0 8px;
    font-size: 0.98rem;
}

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

.report-box {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.report-box span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.report-box strong {
    display: block;
    margin-top: 6px;
    overflow-wrap: anywhere;
}

.report-pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding: 14px;
    border-radius: 8px;
    color: #d9e5ff;
    background: #111724;
    font: 0.78rem/1.45 Consolas, "Cascadia Mono", Menlo, monospace;
}

.report-signature-value {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.report-signature-value span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.report-signature-value strong {
    display: block;
    margin-top: 6px;
    overflow-wrap: anywhere;
}

.report-signature-card {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid #b7e4c7;
    border-radius: 8px;
    color: #14532d;
    background: #f0fdf4;
}

.report-signature-card.unsigned {
    border-color: #fed7aa;
    color: #7c2d12;
    background: #fff7ed;
}

.report-signature-shield {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #15803d;
    background: #dcfce7;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(21, 128, 61, 0.14);
}

.report-signature-card.unsigned .report-signature-shield {
    color: #c2410c;
    background: #ffedd5;
}

.report-signature-shield svg {
    width: 28px;
    height: 28px;
}

.report-signature-shield::after {
    content: attr(title);
    min-width: max-content;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    padding: 6px 9px;
    border-radius: 6px;
    color: #fff;
    background: #111827;
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.14s ease;
}

.report-signature-shield:hover::after,
.report-signature-shield:focus-visible::after {
    opacity: 1;
}

.report-signature-shield:focus-visible {
    outline: 3px solid rgba(21, 128, 61, 0.24);
    outline-offset: 3px;
}

.report-signature-details {
    margin-top: 14px;
}

.report-signature-card strong,
.report-signature-card span {
    display: block;
}

.report-signature-card strong {
    font-size: 1rem;
}

.report-signature-card span {
    margin-top: 4px;
    color: inherit;
    opacity: 0.82;
}

.report-trace-groups {
    display: grid;
    gap: 18px;
}

.report-trace-group {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.report-trace-group > header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}

.report-trace-group > header span {
    color: var(--muted);
}

.report-trace-table td {
    vertical-align: top;
}

.report-trace-table {
    border: 0;
}

.report-evidence-list {
    display: grid;
    gap: 5px;
    margin: 0;
    padding-left: 18px;
}

.report-evidence-list li {
    overflow-wrap: anywhere;
}

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

.report-two-columns h3 {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.candidate-report-list {
    display: grid;
    gap: 14px;
}

.candidate-report-card,
.report-explanation-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.candidate-report-card header,
.report-explanation-card header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    color: var(--muted);
}

.candidate-report-card header strong,
.report-explanation-card header strong {
    color: #101828;
}

@media (max-width: 1180px) {
    .workspace {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .hero-workbench,
    .catalog-toolbar,
    .job-detail-hero,
    .job-detail-grid,
    .job-detail-grid.wide {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .workspace-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 860px) {
    .workspace {
        display: block;
        height: auto;
        overflow: visible;
    }

    .sidebar {
        height: auto;
        min-height: auto;
        overflow: visible;
        position: static;
    }

    .side-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }

    .sidebar-bottom {
        margin-top: 14px;
    }

    .topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .workspace-main {
        height: auto;
        overflow: visible;
    }

    .global-search {
        width: 100%;
    }

    .quick-actions,
    .workspace-grid,
    .integration-grid,
    .summary-cards,
    .report-grid,
    .report-two-columns {
        grid-template-columns: 1fr;
    }

    .login-card {
        min-height: calc(100vh - 36px);
    }

    .login-brand {
        padding: 42px 24px 0;
    }

    .login-brand h1 {
        font-size: 2.25rem;
    }

    .login-actions,
    .auth-switch,
    .credential-panels,
    .divider {
        width: calc(100% - 36px);
    }

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

    .profile-page-form,
    .settings-form {
        grid-template-columns: 1fr;
    }

    .login-footer {
        padding: 16px 22px;
    }
}

@media (max-width: 560px) {
    .page,
    .topbar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .panel-title-row,
    .prompt-actions,
    .page-heading,
    .report-header,
    .details-toolbar,
    .login-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .details-actions {
        justify-content: flex-start;
    }

    .skill-list {
        grid-template-columns: 1fr;
    }

    .view-tabs {
        flex-direction: column;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 12mm;
    }

    body {
        background: #fff;
    }

    .report-toolbar {
        display: none;
    }

    .report-shell {
        width: 100%;
        margin: 0;
    }

    .report-document {
        border: 0;
        box-shadow: none;
        padding: 0;
    }

    body.print-report-dialog main,
    body.print-report-dialog .dialog-close {
        display: none !important;
    }

    body.print-report-dialog .match-dialog {
        display: block;
        position: static;
        width: 100%;
        max-width: none;
        max-height: none;
        border: 0;
        box-shadow: none;
        background: #fff;
        overflow: visible;
    }

    body.print-report-dialog .match-dialog::backdrop {
        display: none;
    }

    body.print-report-dialog .report-dialog-content {
        padding: 0;
    }

    .report-signature-details,
    .report-signature-shield::after {
        display: none !important;
    }
}
