@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
    --orange: #db511a;
    --bg: #2f2f2f;
    --secondarybg: #576b77;
    --bghover: #3f3f3f;
    --secondarybghover: #5e5e5e;
    --maintext: #dadada;
    --button-border: #222222;
    --red: #e0463b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--maintext);
    background: var(--bg);
    font-family: 'DM Sans', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.divider {
  width: 1px;         /* line thickness */
  height: 32px;       /* line height */
  background-color: var(--secondarybg); /* white color */
}

a {
    color: var(--orange);
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

body:before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .35;
    background-image: linear-gradient(rgba(22,33,31,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(22,33,31,.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

body.no-sidebar-page .app-sidebar {
    display: none;
}

body.no-sidebar-page .app-layout-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
}

.shell {
    position: relative;
    max-width: 1920px;   /* was 1180px — gives sidebar room without squishing content */
    margin: auto;
    padding: 12px 24px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.settings-container.document-paper {
    background: white;
    color: #1a1a1a;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border: none; /* .settings-container likely adds an orange border you don't want here */
}

.document-page-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.document-letterhead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid var(--orange);
    padding-bottom: 12px;
    margin-bottom: 24px;
    font-size: 14px;
}

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

.paystub-table td {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.paystub-table td:first-child {
    color: #555;
}

.paystub-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #1a1a1a
}

.paystub-net td {
    border-top: 2px solid #1a1a1a;
    border-bottom: none;
    font-size: 16px;
    padding-top: 14px;
}

.paystub-notes {
    margin-top: 20px;
    font-size: 13px;
    color: #555;
}

.document-signature-block {
    margin-top: 32px;
    padding-top: 12px;
    border-top: 1px solid #ccc;
    font-size: 12px;
    color: #777;
}

@media print {
    body * {
        visibility: hidden;
    }

    .document-paper,
    .document-paper * {
        visibility: visible;
    }

    .document-paper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        max-width: none;
        padding: 20px;
        margin: 0;
        box-shadow: none;
        border: none;
    }

    body, html {
        background: white !important;
    }
}

.payroll-cell-input {
    width: 100%;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid var(--button-border);
    background: var(--bg);
    color: var(--maintext);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
}

.payroll-cell-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.topbar, footer, .panel-heading, .status, .integration-list li, dl div {
    display: flex;
    align-items: center;
}

.topbar {
    justify-content: space-between;
    border-bottom: 1px solid var(--orange);
    padding-bottom: 6px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.main-button {
    background: var(--orange);
    color: white;
    padding: 10px;
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    justify-content: center;
    display: inline-flex;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}

.main-button:hover {
    transform: scale(1.05);
    background-color: var(--bghover);
}

.outline-button {
    background: transparent;
    color: var(--orange);
    padding: 10px;
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    justify-content: center;
    display: inline-flex;
    border: 1px solid var(--orange);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}

.outline-button:hover {
    transform: scale(1.05);
}

.nav-branding {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-button {
    display: inline-block;
    color: var(--maintext);
    padding: 8px 12px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
}

.nav-button:hover {
    background: var(--bghover);
}

.nav-center {
    justify-self: center;
}

.nav-end {
    justify-self: end;
}

.kicker, .eyebrow, .panel-heading, footer, dt, .status {
    font: 500 11px 'DM Sans', sans-serif;
    letter-spacing: .08em;
}

.kicker, .eyebrow, .panel-heading, footer, dt {
    color: var(--maintext);
}

/* Page-level heading (semantic h1, kept small/quiet — logo area, page <title> equivalents) */
h1 {
    margin: 5px 0 0;
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    letter-spacing: -.04em;
}

/* Hero headline — targets the h1 specifically inside .intro sections,
   since every page's "Welcome, X!" / tagline lives there. Keeps h1
   semantically correct while giving the hero its intended huge size. */
.intro h1 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(2.8rem, 7vw, 6rem);
    font-optical-sizing: auto;
    line-height: .93;
    letter-spacing: normal;
    font-weight: 600;
    font-style: normal;
}

.profile-header {
    border: 1px solid var(--orange);
    border-radius: 8px;
    background: var(--bghover);
    margin-bottom: 32px;
    overflow: hidden;
}

.profile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-name-row h2 {
    margin: 0;
    font-size: 1.3rem;
}

.profile-subtitle {
    margin: 2px 0 0;
    color: #a0a0a0;
    font-size: 14px;
}

.directory-panel {
    padding: 0;
    overflow: hidden;
}

.directory-toolbar {
    padding: 16px 20px;
    border-bottom: 1px solid var(--bg);
}

.directory-search {
    width: 100%;
    max-width: 320px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--button-border);
    background: var(--bg);
    color: var(--maintext);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
}

.directory-table {
    width: 100%;
    border-collapse: collapse;
    padding-top: 12px;
}

.directory-table thead th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #888;
    padding: 10px 20px;
    border-bottom: 1px solid var(--bg);
}

.directory-row {
    cursor: pointer;
    border-bottom: 1px solid var(--bg);
    transition: background 0.1s;
}

.directory-row:hover {
    background: var(--secondarybghover);
}

.directory-row td {
    padding: 12px 20px;
    font-size: 14px;
    vertical-align: middle;
}

.directory-person {
    display: flex;
    align-items: center;
    gap: 10px;
}

.directory-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.directory-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.directory-name {
    font-weight: 600;
}

.directory-subtitle {
    font-size: 12px;
    color: #a0a0a0;
}

@media (max-width: 680px) {
    .directory-table thead {
        display: none;
    }

    .directory-table, .directory-table tbody, .directory-row, .directory-table td {
        display: block;
        width: 100%;
    }

    .directory-row {
        padding: 12px 20px;
    }

    .directory-row td {
        padding: 2px 0;
    }
}

.former-members-panel {
    border-color: var(--red);
}

.directory-row-inactive {
    opacity: 0.85;
}

.directory-actions {
    text-align: right;
}

.chart-warning {
    background: rgba(224, 179, 59, 0.1);
    border: 1px solid #e0b33b;
    color: #e0b33b;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 24px;
}

.chart-scroll {
    overflow-x: auto;
    padding: 40px 20px;
}

.org-tree, .org-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.org-tree ul {
    padding-top: 40px;
    position: relative;
}

.org-tree li {
    position: relative;
    text-align: center;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Vertical connector coming down from a node to its children row */
.org-tree li ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 40px;
    background: var(--orange);
}

/* Horizontal connector across siblings + vertical stub up to each child */
.org-tree li li::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    border-top: 1px solid var(--orange);
}

.org-tree li li:first-child::before {
    left: 50%;
    width: 50%;
}

.org-tree li li:last-child::before {
    width: 50%;
}

.org-tree li li::after {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    width: 1px;
    height: 40px;
    background: var(--orange);
}

.org-tree > li > ul::before,
.org-tree > li > ul::after {
    display: none; /* no connector needed above the top-level root(s) */
}

.chart-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--bghover);
    border: 1px solid var(--orange);
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 140px;
    text-decoration: none;
    color: var(--maintext);
    transition: transform 0.1s, background 0.1s;
}

.chart-node:hover {
    transform: scale(1.03);
    background: var(--secondarybghover);
}

.chart-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 4px;
}

.chart-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.chart-name {
    font-weight: 700;
    font-size: 14px;
}

.chart-title {
    font-size: 12px;
    color: #a0a0a0;
}

.chart-dept {
    font-size: 10px;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: .04em;
}

@media (max-width: 680px) {
    .chart-scroll {
        padding: 20px 10px;
    }

    .org-tree li {
        padding: 0 8px;
    }

    .chart-node {
        min-width: 110px;
        padding: 8px 10px;
    }
}

.org-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.org-layout-content {
    flex: 1;
    min-width: 0; /* prevents flex children (tables, wide content) from overflowing the column */
}

.app-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex: 1;
}

.app-layout-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-top: 12px;
}

.app-sidebar {
    flex: 0 0 200px;
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
    border-right: 1px solid var(--bghover);
    padding-right: 16px;
}

.app-sidebar-header {
    font-weight: 700;
    color: var(--orange);
    font-size: 15px;
    padding: 0 12px 12px;
    border-bottom: 1px solid var(--bghover);
    margin-bottom: 8px;
}

.app-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-sidebar-link {
    color: var(--maintext);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.app-sidebar-link:hover {
    background: var(--bghover);
}

.app-sidebar-active {
    background: var(--orange);
    color: white;
}

.app-sidebar-back {
    margin-top: 16px;
    padding: 8px 12px;
    font-size: 13px;
    color: #a0a0a0;
    text-decoration: none;
}

.app-sidebar-back:hover {
    color: var(--maintext);
}

@media (max-width: 680px) {
    .org-layout {
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    .app-layout {
        flex-direction: column;
    }

    .app-sidebar {
        position: static;
        flex: 0 0 auto;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--bghover);
        padding-right: 0;
        padding-bottom: 12px;
        margin-bottom: 12px;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .app-sidebar-header {
        width: 100%;
        border-bottom: none;
        padding-bottom: 4px;
        margin-bottom: 4px;
    }
}

.status-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 3px 10px;
    border-radius: 999px;
}

.status-active {
    background: rgba(77, 190, 116, 0.15);
    color: #4dbe74;
}

.status-terminated {
    background: rgba(224, 70, 59, 0.15);
    color: var(--red);
}

.status-suspended {
    background: rgba(224, 179, 59, 0.15);
    color: #e0b33b;
}

.profile-fields-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    padding: 16px 24px;
    border-top: 1px solid var(--bg);
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-field-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.profile-field-value {
    font-size: 14px;
    font-weight: 600;
}

.profile-field-value a {
    color: var(--orange);
}

@media (max-width: 680px) {
    .profile-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .profile-fields-row {
        grid-template-columns: 1fr 1fr;
    }
}

.signInButton {
    justify-self: end;
    background: var(--bghover);
    border-radius: 12px;
    border: 1px solid var(--button-border);
    padding: 8px 12px;
    text-decoration: none;
    color: var(--maintext);
}

.signInButton:hover {
    background: var(--orange);
    color: var(--bg);
}

.nav-dropdown a.nav-dropdown-signout {
    color: var(--red);
}

.nav-dropdown .nav-dropdown-signout:hover {
    background: var(--red);
    color: white;
}

.nav-username-button {
    justify-self: end;
    background: var(--bghover);
    border-radius: 12px;
    border: 1px solid var(--button-border);
    padding: 8px 12px;
    color: var(--maintext);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}

.nav-username-button:hover {
    background: var(--secondarybghover);
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--bghover);
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    padding: 12px 16px;
    z-index: 1;
    border-radius: 8px;
    text-decoration: none;
    padding-top: 10px;
}

.nav-dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.nav-dropdown-content a:hover {
    background-color: var(--orange);
    border-radius: 8px;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown:hover .nav-dropbtn {
    background-color: #2980b9;
}

.status {
    gap: 8px;
    color: var(--maintext);
    justify-self: end;
}

.status span, .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c1c9c4;
}

.status span {
    background: #4dbe74;
}

.intro {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 32px;
    padding: 92px 0 70px;
}

.eyebrow {
    color: var(--orange);
    margin: 0 0 16px;
}

.lede {
    max-width: 450px;
    color: var(--maintext);
    line-height: 1.6;
    margin: 25px 0 0;
}

/* The Modal Background Overlay */
.popup-overlay {
  position: fixed;       /* Keeps it floating over the page layout */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Translucent dark tint */
  z-index: 1050;         /* Places it on top of all other elements */
  display: flex;         /* Controlled dynamically via your script file */
  align-items: center;   /* Centers modal contents vertically */
  justify-content: center; /* Centers modal contents horizontally */
}

/* The Modal Content Window Box */
.popup-content {
  background: #212529;   /* Matches Bootstrap dark theme backgrounds */
  color: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;    /* Anchors absolute elements like your close sign */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* The Top Corner Close Button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  font-size: 28px;
  color: #aaa;
}

.close-btn:hover {
  color: #fff;
}


/* ── Account page: overview + connections side-by-side row ── */

.account-row {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    align-items: flex-start;
}

.account-overview {
    flex: 1;
    display: flex;
    justify-content: left;
}

.account-connections {
    flex: 1;
    display: flex;
    justify-content: center;
}

.overview-container,
.connections-container,
.settings-container,
.org-dashboard {
    width: 100%;
    border: 1px solid var(--orange);
    padding: 24px;
    border-radius: 8px;
    background: var(--bghover);
}

.overview-container ul {
    padding-left: 20px;
    line-height: 1.8;
}

.account-settings {
    margin-bottom: 32px;
}

/* ── Org creation form ── */

.org-create-form label {
    display: block;
    margin: 16px 0 6px;
    font-weight: 600;
}

.org-create-form input,
.org-create-form textarea {
    width: 100%;
    max-width: 480px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--button-border);
    background: var(--bghover);
    color: var(--maintext);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
}

.org-create-form textarea {
    min-height: 90px;
    resize: vertical;
}

.org-create-form button {
    margin-top: 24px;
}

/* ── Org list ("My Orgs") ── */

.orgs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.org-card {
    border: 1px solid var(--orange);
    padding: 20px;
    border-radius: 8px;
    background: var(--bghover);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.org-card h3 {
    margin: 0;
}

.org-card .main-button {
    margin-top: auto;
    align-self: flex-start;
}

/* ── Org dashboard ── */

.org-dashboard h2 {
    margin: 0 0 16px;
    font-size: 1.8rem;
}

.org-dashboard ul {
    padding-left: 20px;
    line-height: 1.8;
}

.group-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--bghover);
}

.group-item:last-child {
    border-bottom: none;
}

.remove-button {
    background: transparent;
    border: 1px solid var(--red);
    color: var(--red);
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
}

.remove-button:hover {
    background: var(--red);
    color: white;
}

.invite-group-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    background: var(--bghover);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.member-directory {
    list-style: none;
    padding: 0;
    margin: 0;
}

.member-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--bghover);
    gap: 20px;
    flex-wrap: wrap;
}

.member-row:last-child {
    border-bottom: none;
}

.member-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.member-title {
    font-size: 13px;
    color: #a0a0a0;
}

.badge-admin {
    background: var(--orange);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.member-meta {
    text-align: right;
}

.member-groups {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-bottom: 6px;
}

.member-roblox {
    font-size: 12px;
    color: #a0a0a0;
}

.text-warning {
    color: #e0b33b;
}

.pill-section-label {
    font-size: 12px;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 16px 0 6px;
}

.pill-section-label:first-child {
    margin-top: 0;
}

.tag-dept,
.pill-dept {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #3a5a6b;
    color: #dff0ff;
    font-size: 12px;
    padding: 4px 6px 4px 10px;
    border-radius: 6px;
}

.tag-team,
.pill-team {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #6b4a2f;
    color: #ffe8d0;
    font-size: 12px;
    padding: 4px 6px 4px 10px;
    border-radius: 6px;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.pill-remove-form {
    display: inline;
}

.pill-remove-form button {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 50%;
}

.pill-remove-form button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pill-empty {
    color: #888;
    font-size: 13px;
}

.pill-add-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.pill-add-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pill-add-form select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--button-border);
    background: var(--bghover);
    color: var(--maintext);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
}

.small-add-button {
    background: var(--orange);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}

.small-add-button:hover {
    background-color: #ff6a00c9;
}

.member-groups:last-child {
    margin-bottom: 0;
}

.add-group-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.add-group-form label {
    font-weight: 600;
    white-space: nowrap;
}

.add-group-form input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--button-border);
    background: var(--bghover);
    color: var(--maintext);
    font-family: 'DM Sans', sans-serif;
}

/* ── Unused elsewhere in current pages — kept in case dashboard.ejs
   grows feature panels again. Safe to delete if not needed. ── */

.action {
    flex: 0 0 auto;
    color: var(--maintext);
    background: var(--orange);
    padding: 14px 17px;
    text-decoration: none;
    font-weight: 600;
}

.action span {
    margin-left: 18px;
    font-size: 1.2rem;
}

.grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 18px;
}

.panel {
    border: 1px solid var(--orange);
    background: rgba(255,255,255,.45);
    padding: 26px;
    min-height: 270px;
}

.feature {
    background: var(--secondarybg);
    color: #f4f6f0;
    border-color: var(--maintext);
}

.panel-heading {
    justify-content: space-between;
    font-size: 10px;
    margin-bottom: 54px;
}

.feature .panel-heading {
    color: #91aaa0;
}

.panel h3 {
    font-size: 2rem;
    letter-spacing: -.05em;
    margin: 0 0 10px;
}

.panel p {
    color: var(--maintext);
    line-height: 1.5;
    max-width: 530px;
}

.feature p {
    color: #a8b9b2;
}

code {
    font: 12px 'DM Sans', sans-serif;
    color: var(--orange);
}

dl {
    display: flex;
    gap: 50px;
    margin: 35px 0 0;
}

dl div {
    align-items: start;
    flex-direction: column;
    gap: 7px;
}

dd {
    margin: 0;
    font-size: 1.15rem;
}

.feature dt {
    color: #91aaa0;
}

.integration-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.integration-list li {
    gap: 12px;
    border-bottom: 1px solid var(--orange);
    padding: 19px 0;
}

.integration-list li:first-child {
    padding-top: 0;
}

.integration-list .on {
    background: #4dbe74;
}

.integration-list small {
    margin-left: auto;
    color: var(--maintext);
    font: 11px 'DM Sans', sans-serif;
}

footer {
    justify-content: space-between;
    margin-top: auto;
    padding-top: 72px;
    font-size: 10px;
}

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

.career-card {
    display: block;
    border: 1px solid var(--orange);
    border-radius: 8px;
    background: var(--bghover);
    padding: 20px;
    text-decoration: none;
    color: var(--maintext);
    transition: transform 0.1s, background 0.1s;
}

.career-card:hover {
    transform: scale(1.02);
    background: var(--secondarybghover);
}

.career-card-org {
    font-size: 12px;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
}

.career-card-title {
    margin: 6px 0;
    font-size: 1.1rem;
}

.career-card-comp {
    font-size: 13px;
    font-weight: 600;
    color: #4dbe74;
    margin-bottom: 8px;
}

.career-card-comp-muted {
    color: #888;
    font-weight: normal;
}

.career-card-desc {
    font-size: 13px;
    color: #a0a0a0;
    margin: 0;
}

.pipeline-board {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.pipeline-column {
    flex: 0 0 200px;
    background: var(--bg);
    border-radius: 8px;
    padding: 10px;
}

.pipeline-column-header {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #888;
    font-weight: 700;
    padding: 4px 8px 10px;
    border-bottom: 1px solid var(--bghover);
    margin-bottom: 8px;
}

.pipeline-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bghover);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--maintext);
    font-size: 13px;
    transition: background 0.1s;
}

.pipeline-card:hover {
    background: var(--secondarybghover);
}

@media (max-width: 680px) {
    .shell {
        padding: 25px 20px;
    }

    .intro {
        display: block;
        padding: 65px 0 45px;
    }

    .action {
        display: inline-block;
        margin-top: 28px;
    }

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

    .panel {
        min-height: auto;
    }

    .panel-heading {
        margin-bottom: 42px;
    }

    .account-row {
        flex-direction: column;
    }

    .topbar {
        grid-template-columns: auto 1fr;
        row-gap: 10px;
    }

    .nav-center {
        display: none; /* collapse text nav links on mobile; nav-dropdown still gives access to My Account/Sign out */
    }

    .nav-end {
        justify-self: end;
    }

    footer {
        padding-top: 52px;
        gap: 20px;
        align-items: start;
        flex-direction: column;
    }
}