:root {
    color-scheme: light;
    --ink: #1b2923;
    --green: #23483a;
    --tomato: #c95035;
    --paper: #f4f1e9;
    --white: #fffefa;
    --muted: #626b64;
    --line: #d8d8cc;
    --title-shadow: 1px 2px 4px rgba(27, 41, 35, .24);
    --brand-mark-shadow: drop-shadow(0 1px 1px rgba(255, 255, 255, .45)) drop-shadow(0 2px 3px rgba(27, 41, 35, .42)) drop-shadow(0 0 3px rgba(27, 41, 35, .12));
    font-family: "DM Sans", "Trebuchet MS", sans-serif;
    color: var(--ink);
    background: var(--paper);
}

html { scrollbar-gutter: stable; }

* { box-sizing: border-box; }

body.datactel-page {
    max-width: 1440px;
    min-width: 420px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 32px clamp(32px, 8vw, 112px) 48px;
    --workspace-drawer-bottom: clamp(16px, 4vh, 32px);
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", "Trebuchet MS", sans-serif;
}

body.datactel-page.devops-dashboard {
    min-width: 420px;
}

.datactel-brand-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 20px;
}

.datactel-brand-title {
    position: relative;
    margin: 0;
    color: var(--ink);
    font: normal 46px/1.08 "DM Serif Display", Georgia, serif;
}

.datactel-brand-title::before {
    --trail-width: 68px;
    position: absolute;
    top: 15px;
    left: calc(0px - var(--trail-width) - 8px);
    width: var(--trail-width);
    height: 28px;
    --trail-color: rgba(35, 72, 58, .28);
    background-image: linear-gradient(var(--trail-color), var(--trail-color)), linear-gradient(var(--trail-color), var(--trail-color)), linear-gradient(var(--trail-color), var(--trail-color));
    background-position: right 2px, right 13px, right 24px;
    background-repeat: no-repeat;
    background-size: 38% 2px, 68% 2px, 100% 2px;
    content: "";
    filter: drop-shadow(0 2px 4px rgba(27, 41, 35, .85));
    pointer-events: none;
}

.datactel-brand-name {
    display: inline-block;
    transform: skewX(-14deg);
    transform-origin: left center;
    text-shadow: var(--title-shadow);
}

.datactel-brand-name a {
    color: inherit;
    text-decoration: none;
}

.datactel-brand-name a:hover {
    color: inherit;
    text-decoration: none;
}

.datactel-brand-subtitle {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font: 500 15px/1.5 "DM Sans", "Trebuchet MS", sans-serif;
}

.datactel-brand-contact {
    display: block;
    margin-top: 48px;
    color: var(--muted);
    font: 12px/1.5 "DM Sans", "Trebuchet MS", sans-serif;
}

.datactel-brand-contact a {
    color: var(--green);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

body.datactel-page .login-status {
    position: static;
    z-index: auto;
    max-width: 1280px;
    min-height: 60px;
    margin: 0 auto 24px;
    padding: 6px 6.25%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px 18px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
    font: 12px/1.4 "DM Sans", "Trebuchet MS", sans-serif;
    text-shadow: none;
}

body.datactel-page .login-status form {
    display: grid;
    width: 100%;
    min-height: 44px;
    grid-template-columns: 138px 138px 90px;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
}

body.datactel-page .login-status .auth-logout .auth-message {
    grid-column: 1 / 3;
}

body.datactel-page .login-status .auth-button {
    grid-column: 3;
}

body.datactel-page .login-status .auth-logout .auth-message {
    margin: 0 auto 0 0;
    color: var(--muted);
    font-size: 11px;
}

body.datactel-page .login-status .auth-form .auth-field {
    display: grid;
    min-width: 0;
    gap: 3px;
    margin: 0;
    color: var(--muted);
    font: 700 9px/1.2 "DM Sans", "Trebuchet MS", sans-serif;
}

body.datactel-page .login-status label {
    margin: 0;
    color: var(--muted);
    font: 700 9px/1.2 "DM Sans", "Trebuchet MS", sans-serif;
}

body.datactel-page .login-status input[type="text"],
body.datactel-page .login-status input[type="password"] {
    width: 138px;
    height: 28px;
    margin: 0;
    padding: 0 7px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--white);
    color: var(--ink);
    font: 12px/1.4 "DM Sans", "Trebuchet MS", sans-serif;
}

body.datactel-page .login-status input[type="text"]:focus,
body.datactel-page .login-status input[type="password"]:focus {
    outline: 2px solid var(--tomato);
    outline-offset: 1px;
}

body.datactel-page .login-status button {
    display: inline-flex;
    width: 90px;
    min-width: 90px;
    height: 32px;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid #3a3a3a;
    border-radius: 4px;
    background: #1a1a1a;
    color: #e6e6e6;
    font: 700 11px "DM Sans", "Trebuchet MS", sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.45), inset 0 0 6px rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
    white-space: nowrap;
}

body.datactel-page .login-status button:hover {
    background: #2b2b2b;
    border-color: #6b0f14;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6), 0 0 6px #00ff62;
    transform: translateY(-2px);
}

body.datactel-page .home-nav-svc[open] {
    position: fixed;
    top: 25px;
    bottom: auto;
    left: 0;
    height: auto;
    width: 260px;
    min-width: 0;
    max-width: none;
    max-height: none;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 13px 16px 13px 48px;
    border: 1px solid rgba(216, 216, 204, .78);
    border-radius: 0 6px 6px 0;
    background: rgba(255, 254, 250, .76);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
    backdrop-filter: blur(10px) saturate(125%);
    box-shadow: 0 8px 24px rgba(27, 41, 35, .10);
    color: var(--muted);
    font: 11px/1.4 "DM Sans", "Trebuchet MS", sans-serif;
}

body.datactel-page .home-nav-svc[open]::before {
    position: absolute;
    inset: 0 auto 0 0;
    display: flex;
    width: 34px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-right: 1px solid rgba(216, 216, 204, .78);
    border-left: 0;
    background: rgba(255, 254, 250, .76);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
    backdrop-filter: blur(10px) saturate(125%);
    color: var(--ink);
    content: "";
}

body.datactel-page .workspace-drawer-label {
    position: absolute;
    top: 33%;
    left: 17px;
    z-index: 1;
    transform: translate(-50%, -50%);
    color: var(--ink);
    font: 600 16px/1.2 "DM Sans", "Trebuchet MS", sans-serif;
    letter-spacing: .12em;
    text-shadow: 0 1px 3px rgba(27, 41, 35, .5);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    pointer-events: none;
}

body.datactel-page .home-nav-svc::backdrop {
    background: rgba(27, 41, 35, .38);
    backdrop-filter: blur(2px);
}

body.datactel-page .workspace-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

body.datactel-page .home-nav-svc h2 {
    min-width: 0;
    margin: 0;
    color: var(--ink);
    font: 21px/1.15 "DM Serif Display", Georgia, serif;
    text-shadow: var(--title-shadow);
    overflow-wrap: anywhere;
}

body.datactel-page .home-nav-svc section,
body.datactel-page .home-nav-svc .workspace-menu-header,
body.datactel-page .home-nav-svc .workspace-links,
body.datactel-page .home-nav-svc .workspace-sales,
body.datactel-page .home-nav-svc .workspace-marketing {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

body.datactel-page .workspace-menu-close {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: transparent;
    color: var(--ink);
    font: 20px/1 "DM Sans", "Trebuchet MS", sans-serif;
    cursor: pointer;
}

body.datactel-page .workspace-menu-close:hover {
    background: #f2f3eb;
    border-color: var(--line);
    box-shadow: none;
    transform: none;
}

body.datactel-page .home-nav-svc h3 {
    margin: 10px 0 4px;
    color: var(--muted);
    font: 700 9px/1.3 "DM Sans", "Trebuchet MS", sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.datactel-page .home-nav-svc .workspace-links {
    display: grid;
    min-width: 0;
    gap: 1px;
}

body.datactel-page .home-nav-svc a {
    display: block;
    min-width: 0;
    padding: 3px 5px;
    border-radius: 3px;
    color: var(--green);
    overflow-wrap: anywhere;
    text-decoration: none;
}

body.datactel-page .home-nav-svc a:hover {
    background: #f2f3eb;
    color: var(--tomato);
}

body.datactel-page .home-nav-svc .current-page {
    display: block;
    min-width: 0;
    padding: 3px 5px;
    border-radius: 3px;
    background: #e9eee8;
    color: var(--ink);
    font-weight: 700;
    overflow-wrap: anywhere;
    cursor: default;
}

body.datactel-page .home-nav-svc .workspace-projects {
    grid-template-columns: minmax(0, 1fr);
}

body.datactel-page .home-nav-svc .workspace-sales {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: 0;
    line-height: 1.4;
}

body.datactel-page .home-nav-svc .workspace-sales > * {
    min-width: 0;
    padding: 2px 4px;
    overflow-wrap: anywhere;
}

body.datactel-page .home-nav-svc .workspace-marketing {
    margin: 10px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    font-size: 10px;
}

body.datactel-page .home-nav-svc .workspace-marketing img {
    display: block;
    margin-top: 7px;
}

.workspace-drawer-toggle {
    position: fixed;
    top: 25px;
    bottom: auto;
    left: 0;
    z-index: 1000;
    display: inline-flex;
    height: 0;
    width: 34px;
    min-width: 34px;
    min-height: 0;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 12px 8px;
    border: 1px solid rgba(216, 216, 204, .78);
    border-left: 0;
    border-radius: 0 6px 6px 0;
    background: rgba(255, 254, 250, .76);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
    backdrop-filter: blur(10px) saturate(125%);
    color: var(--ink);
    font: 600 16px/1.2 "DM Sans", "Trebuchet MS", sans-serif;
    letter-spacing: .12em;
    text-shadow: 0 1px 2px rgba(27, 41, 35, .45);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    box-shadow: 2px 4px 12px rgba(27, 41, 35, .22);
    cursor: pointer;
    transition: background-color .18s ease, box-shadow .18s ease;
}

.workspace-drawer-toggle-label {
    position: absolute;
    top: 33%;
    left: 50%;
    width: max-content;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.workspace-drawer-toggle[hidden] {
    display: none;
}

.workspace-drawer-toggle:hover {
    box-shadow: 3px 5px 14px rgba(27, 41, 35, .18);
}

.workspace-drawer-toggle:focus-visible {
    outline: 2px solid var(--tomato);
    outline-offset: 2px;
}

body.datactel-page .home-nav-svc a:focus-visible,
body.datactel-page .workspace-menu-close:focus-visible {
    outline: 2px solid var(--tomato);
    outline-offset: 2px;
}

body.datactel-page .datactel-brand-subtitle,
body.datactel-page .datactel-brand-contact,
body.datactel-page .title-subtitle,
body.datactel-page .contact-line,
body.datactel-page :is(h1, h2, h3, h4) {
    text-shadow: 0 2px 2px rgba(27, 41, 35, .4), 0 5px 10px rgba(27, 41, 35, .22);
}

body.datactel-page :is(.brand-name, .datactel-brand-name) {
    text-shadow: none;
    filter: var(--brand-mark-shadow);
}

body.datactel-page :is(.datactel-brand-title, .home-title)::before {
    --trail-width: 68px;
    --trail-color: rgba(35, 72, 58, .42);
    top: 12px;
    height: 24px;
    background-image: linear-gradient(var(--trail-color), var(--trail-color)), linear-gradient(var(--trail-color), var(--trail-color)), linear-gradient(var(--trail-color), var(--trail-color));
    background-position: right 1px, right 11px, right 21px;
    background-repeat: no-repeat;
    background-size: 44% 2px, 72% 2px, 100% 2px;
    filter: var(--brand-mark-shadow);
}

body.datactel-page :is(p, li, label, th, td, dt, dd, small, a, .summary, .ticket-host, .auth-message) {
    text-shadow: 0 1px 2px rgba(27, 41, 35, .2);
}

body.datactel-page a {
    transition: color .18s ease, text-decoration-color .18s ease, text-shadow .18s ease;
}

body.datactel-page a:hover {
    color: var(--tomato);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    text-shadow: 0 2px 4px rgba(27, 41, 35, .3);
}

body.datactel-page .brand-name a:hover,
body.datactel-page .datactel-brand-name a:hover {
    color: inherit;
    text-decoration: none;
    text-shadow: none;
}

body.datactel-page a:focus-visible {
    outline: 2px solid var(--tomato);
    outline-offset: 3px;
}

body.datactel-page.devops-dashboard .home-introduction {
    border-bottom-width: 1px;
}

body.datactel-page.devops-dashboard .services-section {
    position: relative;
}

body.datactel-page.devops-dashboard .services-section::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    border-top: 1px solid var(--line);
    content: "";
}

body.datactel-page.devops-dashboard .services-section {
    border-bottom: 0;
    margin-bottom: 0;
    padding-top: 16px;
    padding-bottom: 24px;
}

body.datactel-page.devops-dashboard .home-host-status {
    margin-top: 0;
    padding-top: 16px;
    border-top-width: 1px;
    border-bottom: 0;
}

body.datactel-page .login-status .auth-button,
body.datactel-page button:not(:disabled):not(.workspace-menu-close):not(.workspace-drawer-toggle):not(.datactel-social-button),
body.datactel-page input[type="submit"]:not(:disabled),
body.datactel-page input[type="button"]:not(:disabled),
body.datactel-page a.about-contact {
    border: 2px solid #3a3a3a;
    border-radius: 4px;
    background: #1a1a1a;
    color: #e6e6e6;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
    box-shadow: 0 5px 10px rgba(0, 0, 0, .55), inset 0 0 7px rgba(255, 255, 255, .08);
    transition: background .25s, border-color .25s, color .25s, transform .2s, box-shadow .25s;
}

body.datactel-page .login-status .auth-button:hover,
body.datactel-page button:not(:disabled):not(.workspace-menu-close):not(.workspace-drawer-toggle):not(.datactel-social-button):hover,
body.datactel-page input[type="submit"]:not(:disabled):hover,
body.datactel-page input[type="button"]:not(:disabled):hover,
body.datactel-page a.about-contact:hover {
    border-color: #6b0f14;
    background: #2b2b2b;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .6), 0 0 6px #00ff62;
    transform: translateY(-2px);
}

body.datactel-page .login-status .auth-button:focus-visible,
body.datactel-page button:not(:disabled):not(.workspace-menu-close):not(.workspace-drawer-toggle):not(.datactel-social-button):focus-visible,
body.datactel-page input[type="submit"]:not(:disabled):focus-visible,
body.datactel-page input[type="button"]:not(:disabled):focus-visible,
body.datactel-page a.about-contact:focus-visible {
    outline: 2px solid var(--tomato);
    outline-offset: 3px;
}

body.datactel-page :is(
    .about-card,
    .ticket-page,
    .ticket-view,
    .ticket-list,
    .quote-page,
    .quote-view,
    .quote-list,
    .dashboard-card,
    .horizontal-panel,
    .sub-dashboard,
    .host-list-section,
    .nagios-controls,
    .host-list,
    .table-wrap,
    .declaration,
    .service-card,
    .home-introduction
) {
    box-shadow: 0 12px 28px rgba(27, 41, 35, .16), 0 3px 8px rgba(27, 41, 35, .08);
}

body.datactel-page :is(
    .about-card,
    .dashboard-card,
    .horizontal-panel,
    .sub-dashboard,
    .service-card,
    .home-introduction
) {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.datactel-page :is(
    .about-card,
    .dashboard-card,
    .horizontal-panel,
    .sub-dashboard,
    .service-card,
    .home-introduction
):hover {
    border-color: var(--green);
    transform: translateY(-4px);
    box-shadow: 0 18px 32px rgba(27, 41, 35, .23), 0 5px 10px rgba(27, 41, 35, .12);
}

body.datactel-page footer.datactel-social-footer {
    position: static;
    left: auto;
    top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    width: 100%;
    max-width: 1280px;
    min-width: 0;
    margin: 24px auto 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
}

.datactel-footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(27, 41, 35, .16);
}

.datactel-social-links {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

body.datactel-page .datactel-social-button {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--green);
    box-shadow: 0 2px 5px rgba(27, 41, 35, .16);
    cursor: pointer;
    transition: transform .18s ease, color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.datactel-social-button svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.datactel-social-button:hover {
    border-color: var(--green);
    background: var(--green);
    color: var(--white);
    box-shadow: 0 4px 8px rgba(27, 41, 35, .28);
    transform: translateY(-2px);
}

.datactel-social-button:focus-visible {
    outline: 2px solid var(--tomato);
    outline-offset: 3px;
}

@media (max-width: 700px) {
    body.datactel-page {
        padding: 32px 24px 36px 145px;
    }
    .datactel-brand-header { align-items: stretch; flex-direction: column; gap: 20px; }
    body.datactel-page footer.datactel-social-footer { align-items: flex-start; flex-direction: column; }
}

@media (min-width: 701px) and (max-width: 1350px) {
    body.datactel-page {
        padding-left: clamp(145px, calc(14.62vw + 42.66px), 240px);
        padding-right: clamp(24px, calc(12.93vw - 66.51px), 108px);
    }
}

@media (min-width: 1351px) {
    body.datactel-page {
        max-width: 1353px;
        padding-left: 240px;
        padding-right: 108px;
    }
    body.datactel-page .login-status { justify-content: center; padding: 6px 0; }
}

@media (max-width: 430px) {
    body.datactel-page .login-status {
        justify-content: flex-start;
        gap: 6px;
        padding-right: 0;
        padding-left: 0;
    }
    body.datactel-page .login-status .auth-form {
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
        gap: 8px;
    }
    body.datactel-page .login-status .auth-logout {
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
        gap: 8px;
    }
    body.datactel-page .login-status .auth-field { width: 100%; }
    body.datactel-page .login-status .auth-button { grid-column: 1; justify-self: start; }
    body.datactel-page .login-status .auth-logout .auth-message { grid-column: 1; }
    body.datactel-page .login-status input[type="text"],
    body.datactel-page .login-status input[type="password"] { width: 100%; min-width: 0; }
}
