:root {
    color-scheme: dark;
    --bg: #030303;
    --bg-deep: #080808;
    --surface: #0b0b0b;
    --surface-raised: #101010;
    --surface-muted: #171717;
    --text: #f2f2ef;
    --muted: #858585;
    --line: #dadada;
    --line-soft: rgba(255, 255, 255, 0.15);
    --accent: #ff7a00;
    --accent-rgb: 255, 122, 0;
    --accent-strong: #e46300;
    --accent-soft: #2b1807;
    --danger: #ef493b;
    --danger-strong: #ff685b;
    --success: #58c98c;
    --shadow: 0 20px 65px rgba(0, 0, 0, 0.62);
    --grid: rgba(255, 255, 255, 0.022);
    --glass: rgba(8, 8, 8, 0.9);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #050505;
    --bg-deep: #0c0c0c;
    --surface: #101010;
    --surface-raised: #151515;
    --surface-muted: #202020;
    --text: #f4f2ed;
    --muted: #9c9a95;
    --line: #f0eee8;
    --line-soft: rgba(255, 255, 255, 0.18);
    --accent: #ff8200;
    --accent-strong: #ff9b33;
    --accent-soft: #4a290b;
    --danger: #ef493b;
    --danger-strong: #ff685b;
    --success: #58c98c;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
    --grid: rgba(255, 255, 255, 0.025);
    --glass: rgba(16, 16, 16, 0.88);
}

html[data-theme="light"] {
    color-scheme: dark;
    --surface: #111111;
    --surface-raised: #171717;
    --surface-muted: #1e1e1e;
    --text: #ffffff;
    --muted: #a0a0a0;
    --line: #ffffff;
    --glass: rgba(14, 14, 14, 0.9);
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    position: relative;
    min-height: 100vh;
    padding-top: 92px !important;
    color: var(--text) !important;
    background-color: var(--bg) !important;
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px),
        radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.045), transparent 25%),
        linear-gradient(135deg, var(--bg) 0%, var(--bg-deep) 100%) !important;
    background-size: 38px 38px, 38px 38px, auto, auto !important;
    background-attachment: fixed !important;
    font-family: "Arial Narrow", "Roboto Condensed", Impact, Arial, sans-serif !important;
}

body:not(#top) {
    background-color: #000000 !important;
    background-image: none !important;
}

.grid-hidden body {
    background-image: radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.045), transparent 25%),
        linear-gradient(135deg, var(--bg) 0%, var(--bg-deep) 100%) !important;
    background-size: auto, auto !important;
}

.shadows-hidden *,
.shadows-hidden *::before,
.shadows-hidden *::after {
    box-shadow: none !important;
    text-shadow: none !important;
}

.square-interface *,
.square-interface *::before,
.square-interface *::after {
    border-radius: 0 !important;
}

.glass-blur-hidden * {
    backdrop-filter: none !important;
}

.high-contrast-interface {
    --text: #ffffff;
    --muted: #d0d0d0;
    --line-soft: rgba(255, 255, 255, 0.42);
}

.grayscale-interface body {
    filter: grayscale(1);
}

.loader-hidden .page-loader {
    display: none !important;
}

.strong-focus-interface :focus-visible {
    outline: 3px solid var(--accent) !important;
    outline-offset: 4px !important;
}

[data-font-scale="small"] { font-size: 90%; }
[data-font-scale="large"] { font-size: 112%; }
[data-font-scale="xlarge"] { font-size: 125%; }

body > main {
    position: relative;
    z-index: 1;
    animation: content-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.background-scene {
    --scene-x: 0px;
    --scene-y: 0px;
    --scene-x-reverse: 0px;
    --scene-y-reverse: 0px;
    --repel-one-x: 0px;
    --repel-one-y: 0px;
    --repel-two-x: 0px;
    --repel-two-y: 0px;
    --repel-three-x: 0px;
    --repel-three-y: 0px;
    --mesh-force-one: 0;
    --mesh-force-two: 0;
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    perspective: 900px;
    pointer-events: none;
}

.polyhedron-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.78;
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.055));
}

.objects-disabled .polyhedron-canvas {
    opacity: 0;
}

.wire-object {
    display: none;
}

.wire-object--one {
    top: 7%;
    right: -34%;
    width: min(48vw, 650px);
    animation: wire-drift-one 48s linear infinite;
}

.wire-object--two {
    top: 48%;
    right: -28%;
    width: min(37vw, 500px);
    opacity: 0.34;
    animation: wire-drift-two 61s linear -19s infinite;
}

.wire-object--three {
    top: 30%;
    right: -22%;
    width: min(29vw, 420px);
    opacity: 0.4;
    animation: wire-drift-three 54s linear -34s infinite;
}

.wire-faces polygon {
    fill: rgba(255, 255, 255, 0.035);
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1;
    animation: face-light 8s ease-in-out infinite;
}

.wire-faces {
    transform-origin: center;
}

.wire-faces polygon:nth-child(2n) {
    fill: rgba(180, 180, 180, 0.065);
    animation-delay: -3.8s;
    animation-duration: 11s;
}

.wire-faces polygon:nth-child(3n) {
    fill: rgba(255, 255, 255, 0.095);
    animation-duration: 6.5s;
    animation-delay: -1.9s;
}

.wire-lines {
    fill: none;
    stroke: rgba(225, 225, 225, 0.68);
    stroke-width: 1.35;
    vector-effect: non-scaling-stroke;
}

.wire-nodes {
    fill: #eeeeee;
    animation: node-pulse 4.5s ease-in-out infinite;
}

.mesh-depth {
    fill: rgba(255, 255, 255, 0.012);
    stroke: rgba(150, 150, 150, 0.28);
    stroke-width: 1;
}

.depth-links {
    stroke: rgba(190, 190, 190, 0.36);
    stroke-dasharray: 4 5;
}

.site-mark {
    position: fixed;
    z-index: 1000;
    top: 22px;
    left: clamp(18px, 4vw, 64px);
    display: flex;
    width: auto !important;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid var(--line-soft);
    border-left: 4px solid var(--accent);
    border-radius: 0;
    color: var(--text);
    background: var(--glass);
    backdrop-filter: blur(8px);
    font: 700 0.72rem Arial, Helvetica, sans-serif;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.site-mark strong {
    font-size: 0.82rem;
}

.site-mark span {
    color: var(--accent-strong);
}

.site-mark:hover,
.site-mark:focus-visible,
.site-mark--active {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
    outline: none;
    transform: translateY(-1px);
}

.settings-panel {
    position: fixed;
    z-index: 1100;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(390px, calc(100vw - 28px));
    padding: 28px 22px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: var(--text);
    background: rgba(8, 8, 8, 0.96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    transform: translateX(-100%);
    transform-origin: left center;
    transition: opacity 0.18s ease, transform 0.18s ease;
    backdrop-filter: blur(18px);
}

.settings-panel--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.settings-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-soft);
}

.settings-panel__head div {
    display: grid;
    gap: 4px;
}

.settings-panel__head small {
    color: var(--accent);
    font: 700 0.64rem Arial, sans-serif;
    letter-spacing: 0.14em;
}

.settings-panel__head strong {
    font: 800 1.15rem Arial, sans-serif;
    text-transform: uppercase;
}

.settings-close {
    width: 30px !important;
    min-width: 30px;
    min-height: 30px;
    padding: 0 !important;
    border: 1px solid var(--line-soft) !important;
    color: var(--text) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 1.15rem !important;
}

.setting-row {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    font: 700 0.72rem Arial, sans-serif !important;
}

.setting-row input[type="color"] {
    width: 48px;
    min-height: 30px;
    padding: 2px;
    border: 1px solid var(--line-soft) !important;
    cursor: pointer !important;
}

.setting-row select {
    min-height: 34px;
    padding: 5px 9px;
    border: 1px solid var(--line-soft);
    color: var(--text);
    background: #111111;
    font: 700 0.72rem Arial, sans-serif;
}

.setting-row--switch input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--accent);
}

.setting-row--range input {
    width: 130px;
    min-height: 22px;
    accent-color: var(--accent);
}

.settings-reset,
.settings-theme {
    width: 100%;
    margin-top: 18px;
}

.settings-theme {
    margin-bottom: -8px;
}

.large-interface-text {
    font-size: 112%;
}

.compact-interface body > main {
    transform: scale(0.96);
    transform-origin: top center;
}

.reduced-interface-motion *,
.reduced-interface-motion *::before,
.reduced-interface-motion *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
}

.page-loader {
    position: fixed;
    z-index: 20000;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #ffffff;
    background: #030303;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.38s ease, visibility 0.38s ease;
}

.page-loader__animation {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000000;
}

.page-loader__brand {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 24px 30px;
    color: #d1cec7;
    background: rgba(0, 0, 0, 0.58);
    box-shadow: 0 0 80px 45px rgba(0, 0, 0, 0.64);
}

.page-loader__brand > img {
    width: 46px;
    height: auto;
}

.page-loader__wordmark {
    display: flex;
    align-items: center;
    color: #d1cec7;
    font: 300 clamp(1rem, 2.4vw, 1.45rem)/1 Arial, Helvetica, sans-serif;
    letter-spacing: -0.04em;
}

.page-loader__wordmark strong {
    margin: 0 2px;
    padding: 2px 4px;
    border: 1px solid currentColor;
    font: 400 0.82em/1 "Courier New", monospace;
    letter-spacing: 0.08em;
}

.page-loader__brand small {
    color: rgba(209, 206, 199, 0.66);
    font: 400 0.45rem/1 Arial, Helvetica, sans-serif;
    letter-spacing: 0.03em;
}

.page-loader--ready {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.page-loader--visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.page-loader__mark {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: var(--accent);
    font: 900 2.5rem "Arial Narrow", Arial, sans-serif;
    animation: loader-mark 1.1s ease-in-out infinite;
}

.page-loader__line {
    width: min(260px, 68vw);
    height: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
}

.page-loader__line span {
    display: block;
    width: 42%;
    height: 100%;
    background: var(--accent);
    animation: loader-line 1s ease-in-out infinite;
}

.page-loader small {
    color: #8c8c8c;
    font: 700 0.62rem Arial, sans-serif;
    letter-spacing: 0.18em;
}

.dynamic-island {
    position: fixed;
    z-index: 1050;
    top: 18px;
    left: 50%;
    display: flex;
    min-width: 176px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.94);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.5);
    transform: translateX(-50%);
    backdrop-filter: blur(18px);
}

.dynamic-island__status {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.8);
}

.dynamic-island__time {
    font: 800 0.84rem Arial, sans-serif;
    letter-spacing: 0.04em;
}

.dynamic-island__date {
    color: #858585;
    font: 700 0.6rem Arial, sans-serif;
    letter-spacing: 0.1em;
}

.desktop-dock {
    --dock-scale: 1;
    position: fixed;
    z-index: 1200;
    bottom: 18px;
    left: 50%;
    display: flex;
    min-height: 74px;
    align-items: flex-end;
    justify-content: center;
    padding: 9px 14px 7px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 22px;
    background: rgba(22, 22, 22, var(--dock-opacity, 0.82));
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.52);
    transform: translateX(-50%) scale(var(--dock-scale));
    transform-origin: bottom center;
    backdrop-filter: blur(22px) saturate(1.3);
}

.dock-size-controls {
    position: absolute;
    top: -31px;
    left: 50%;
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(8, 8, 8, 0.94);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
    transform: translateX(-50%);
    backdrop-filter: blur(14px);
}

.dock-size-control {
    width: 30px !important;
    min-width: 30px !important;
    height: 24px !important;
    min-height: 24px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    background: transparent !important;
    box-shadow: none !important;
    font: 700 0.9rem/1 Arial, sans-serif !important;
    cursor: pointer;
}

.dock-size-control + .dock-size-control {
    border-left: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.dock-size-control:hover,
.dock-size-control:focus-visible {
    color: #111111 !important;
    background: var(--accent) !important;
    transform: none !important;
}

.dock-size-control:disabled {
    color: rgba(255, 255, 255, 0.28) !important;
    background: transparent !important;
    cursor: default;
}

[data-dock-size="small"] .desktop-dock {
    --dock-scale: 0.82;
}

[data-dock-size="large"] .desktop-dock {
    --dock-scale: 1.18;
}

[data-dock-position="left"] .desktop-dock,
[data-dock-position="right"] .desktop-dock {
    top: 50%;
    bottom: auto;
    flex-direction: column;
    align-items: center;
    transform-origin: center;
}

[data-dock-position="left"] .dock-size-controls,
[data-dock-position="right"] .dock-size-controls {
    top: 50%;
    left: auto;
    flex-direction: column;
    transform: translateY(-50%);
}

[data-dock-position="left"] .dock-size-controls {
    right: -39px;
}

[data-dock-position="right"] .dock-size-controls {
    left: -39px;
}

[data-dock-position="left"] .dock-size-control + .dock-size-control,
[data-dock-position="right"] .dock-size-control + .dock-size-control {
    border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-left: 0 !important;
}

[data-dock-position="left"] .desktop-dock {
    left: 18px;
    transform: translateY(-50%) scale(var(--dock-scale));
}

[data-dock-position="right"] .desktop-dock {
    right: 18px;
    left: auto;
    transform: translateY(-50%) scale(var(--dock-scale));
}

.dock-app {
    position: relative;
    display: grid;
    width: 58px !important;
    min-width: 58px;
    min-height: 58px !important;
    place-items: center;
    gap: 4px;
    padding: 0 !important;
    border: 0 !important;
    color: #ffffff !important;
    background: transparent !important;
    box-shadow: none !important;
    transform-origin: bottom;
}

.dock-app:hover,
.dock-app:focus-visible {
    background: transparent !important;
    transform: translateY(-8px) scale(1.12) !important;
}

.dock-magnify-disabled .dock-app:hover,
.dock-magnify-disabled .dock-app:focus-visible {
    transform: none !important;
}

.dock-app__icon {
    position: relative;
    display: grid;
    width: 46px;
    height: 46px;
    align-content: center;
    gap: 5px;
    padding: 10px 9px;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--accent), rgba(var(--accent-rgb), 0.54));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.35), 0 8px 22px rgba(0, 0, 0, 0.38);
}

.dock-app__icon svg {
    width: 25px;
    height: 25px;
    fill: rgba(0, 0, 0, 0.78);
}

.dock-app__icon i {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.72);
}

.dock-app__icon i:nth-child(2) {
    width: 76%;
}

.dock-app__icon i:nth-child(3) {
    width: 54%;
}

.dock-app__icon b {
    color: rgba(0, 0, 0, 0.78);
    font: 900 0.72rem Arial, sans-serif;
    letter-spacing: -0.03em;
}

.dock-app__icon--dashboard {
    background: linear-gradient(145deg, #b88cff, #6235a7);
}

.dock-app__icon--customers {
    background: linear-gradient(145deg, #4da3ff, #2259b5);
}

.dock-app__icon--controllers {
    background: linear-gradient(145deg, #66d19e, #1f7d53);
}

.dock-app__icon--settings {
    background: linear-gradient(145deg, #b0b0b0, #565656);
}

.dock-app__icon--logout {
    background: linear-gradient(145deg, #ff7468, #a92828);
}

.dock-app small {
    position: absolute;
    top: -29px;
    padding: 5px 8px;
    border-radius: 6px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.9);
    font: 700 0.62rem Arial, sans-serif;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.dock-app:hover small {
    opacity: 1;
    transform: translateY(0);
}

.dock-labels-hidden .dock-app small {
    display: none;
}

.clock-hidden .dynamic-island {
    display: none;
}

.dock-app--running::after {
    position: absolute;
    bottom: -5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffffff;
    content: "";
}

.app-window {
    position: fixed;
    z-index: 1300;
    top: 50%;
    left: 50%;
    width: min(980px, calc(100vw - 72px));
    height: min(660px, calc(100vh - 150px));
    min-width: 620px;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    color: #ededed;
    background: rgba(12, 12, 12, 0.96);
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.72);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -47%) scale(0.96);
    transition: opacity 0.22s ease, transform 0.22s ease;
    backdrop-filter: blur(24px);
}

.app-window--open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.app-window--hidden,
.app-window--minimized {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 45%) scale(0.35);
}

.app-window--fullscreen {
    top: 72px !important;
    right: 12px !important;
    bottom: 12px !important;
    left: 12px !important;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    transform: none;
}

.app-window--dragging {
    transition: none;
    user-select: none;
}

.app-window__bar {
    display: grid;
    height: 48px;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(25, 25, 25, 0.96);
    cursor: grab;
    touch-action: none;
}

.app-window--dragging .app-window__bar {
    cursor: grabbing;
}

.app-window__bar > strong {
    font: 800 0.72rem Arial, sans-serif;
    letter-spacing: 0.1em;
}

.app-window__bar > span {
    justify-self: end;
    color: #707070;
    font: 700 0.58rem Arial, sans-serif;
    letter-spacing: 0.12em;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-control {
    width: 13px !important;
    min-width: 13px;
    min-height: 13px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
}

.window-control--close {
    background: #ff5f57 !important;
}

.window-control--minimize {
    background: #febc2e !important;
}

.window-control--fullscreen {
    background: #28c840 !important;
}

.notes-layout {
    display: grid;
    height: calc(100% - 48px);
    grid-template-columns: 190px 250px 1fr;
}

.notes-sidebar,
.notes-list-panel {
    min-width: 0;
    overflow: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(18, 18, 18, 0.9);
}

.notes-list-panel {
    background: rgba(14, 14, 14, 0.9);
}

.notes-toolbar {
    position: sticky;
    z-index: 1;
    top: 0;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: inherit;
}

.notes-toolbar button {
    width: 100%;
    min-height: 34px;
    padding: 7px 10px;
    box-shadow: none;
    font-size: 0.65rem !important;
}

.notes-folder,
.notes-item {
    display: grid;
    width: 100% !important;
    min-height: 48px;
    padding: 10px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 0 !important;
    color: #c9c9c9 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left;
    transform: none !important;
}

.notes-folder {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
}

.notes-folder span {
    color: var(--accent);
}

.notes-folder small {
    color: #666666;
}

.notes-folder--active,
.notes-item--active {
    color: #ffffff !important;
    background: rgba(var(--accent-rgb), 0.15) !important;
}

.notes-item {
    gap: 4px;
}

.notes-item strong {
    overflow: hidden;
    font: 700 0.78rem Arial, sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notes-item span {
    overflow: hidden;
    color: #686868;
    font: 400 0.66rem Arial, sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notes-editor {
    position: relative;
    display: grid;
    min-width: 0;
    grid-template-rows: auto 1fr;
    padding: 26px 30px 22px;
    background: #0c0c0c;
}

.notes-title,
.notes-content {
    width: 100%;
    border: 0 !important;
    color: #efefef !important;
    background: transparent !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.notes-title {
    min-height: 54px;
    padding: 0 0 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    font: 800 1.55rem "Arial Narrow", Arial, sans-serif !important;
}

.notes-content {
    min-height: 0;
    padding: 18px 0 32px;
    resize: none;
    font: 400 0.94rem/1.7 Arial, sans-serif !important;
}

.notes-saved {
    position: absolute;
    right: 20px;
    bottom: 12px;
    color: var(--accent);
    font: 700 0.55rem Arial, sans-serif;
    letter-spacing: 0.11em;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.notes-saved--show {
    opacity: 1;
}

@keyframes loader-mark {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(8deg) scale(1.06); }
}

@keyframes loader-line {
    from { transform: translateX(-110%); }
    to { transform: translateX(350%); }
}

.theme-toggle {
    position: fixed;
    z-index: 1000;
    top: 22px;
    right: clamp(18px, 4vw, 64px);
    width: auto !important;
    min-width: 126px;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--text);
    background: var(--glass);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(14px);
    font: 800 0.78rem Arial, Helvetica, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.theme-toggle::before {
    content: "[ ";
    color: var(--accent);
}

.theme-toggle::after {
    content: " ]";
    color: var(--accent);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    color: #111111;
    background: var(--accent);
    box-shadow: 0 8px 26px rgba(255, 122, 0, 0.2);
    outline: none;
    transform: translateY(-2px);
}

.card,
.login-card,
.table-card,
body > main:not(.page) {
    position: relative;
    overflow: visible !important;
    border: 1px solid var(--line) !important;
    border-radius: 2px !important;
    color: var(--text) !important;
    background: var(--glass) !important;
    box-shadow: var(--shadow) !important;
    backdrop-filter: blur(10px);
}

.card::before,
.login-card::before,
.table-card::before,
body > main:not(.page)::before {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 76px;
    height: 4px;
    background: var(--accent);
    content: "";
}

.page {
    width: min(100%, 1240px) !important;
}

.page-header {
    margin-bottom: 32px !important;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

h1 {
    color: var(--text) !important;
    font-family: "Arial Narrow", "Roboto Condensed", Impact, Arial, sans-serif !important;
    font-size: clamp(2.45rem, 7vw, 5rem) !important;
    font-weight: 900 !important;
    letter-spacing: -0.045em;
    line-height: 0.88 !important;
    text-transform: uppercase;
}

h1::after {
    display: block;
    width: clamp(64px, 14vw, 150px);
    height: 7px;
    margin-top: 18px;
    background: var(--accent);
    content: "";
}

.page-header h1 {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 16px !important;
    padding: 5px 8px;
    color: #111111 !important;
    background: var(--accent);
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.16em !important;
}

.intro,
.description {
    max-width: 620px;
    color: var(--muted) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 1rem !important;
}

label {
    color: var(--text) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.optional {
    color: var(--muted) !important;
    text-transform: none;
}

input,
textarea {
    border: 1px solid var(--line-soft) !important;
    border-radius: 0 !important;
    color: var(--text) !important;
    background: var(--surface-raised) !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

input:hover,
textarea:hover {
    border-color: var(--line) !important;
}

input:focus,
textarea:focus {
    border-color: var(--accent) !important;
    outline: 2px solid var(--accent) !important;
    outline-offset: 2px;
    box-shadow: none !important;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: var(--danger) !important;
}

.button {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line) !important;
    border-radius: 0 !important;
    color: #111111 !important;
    background: var(--accent) !important;
    box-shadow: 0 8px 24px rgba(255, 122, 0, 0.2);
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease !important;
}

form button[type="submit"]:not(.theme-toggle) {
    min-height: 46px;
    border: 1px solid var(--line) !important;
    border-radius: 0 !important;
    color: #111111 !important;
    background: var(--accent) !important;
    box-shadow: 0 8px 24px rgba(255, 122, 0, 0.2);
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease !important;
}

.button:hover,
.button:focus-visible,
form button[type="submit"]:not(.theme-toggle):hover,
form button[type="submit"]:not(.theme-toggle):focus-visible {
    border-color: var(--line) !important;
    color: var(--surface) !important;
    background: var(--text) !important;
    box-shadow: 0 12px 28px rgba(255, 122, 0, 0.24);
    outline: none;
    transform: translateY(-2px) !important;
}

.button--secondary {
    color: var(--text) !important;
    background: var(--surface) !important;
}

.button--danger {
    color: #ffffff !important;
    background: var(--danger) !important;
}

.button--danger:hover,
.button--danger:focus-visible {
    color: #ffffff !important;
    background: var(--danger-strong) !important;
}

.table-card {
    overflow: hidden !important;
}

.table-wrapper {
    background: var(--surface);
}

table {
    font-family: Arial, Helvetica, sans-serif;
}

th {
    border-right: 1px solid rgba(255, 255, 255, 0.22);
    color: #111111 !important;
    background: var(--accent) !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.1em !important;
}

th:last-child {
    border-right: 0;
}

td {
    color: var(--text);
}

tbody tr {
    border-color: var(--line-soft) !important;
    background: var(--surface);
}

tbody tr:nth-child(even) {
    background: var(--surface-raised);
}

tbody tr:hover {
    background: var(--accent-soft) !important;
}

.customer-name {
    color: var(--text);
    text-transform: uppercase;
}

.user-count {
    border: 1px solid var(--line);
    border-radius: 0 !important;
    color: #111111 !important;
    background: var(--accent) !important;
}

.status-message,
.message,
.error,
.warning {
    border: 1px solid currentColor;
    border-radius: 0 !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

.status-message--success {
    border-left: 7px solid var(--success);
    color: var(--success) !important;
    background: var(--surface) !important;
}

.status-message--error,
.message--error,
.message,
.error {
    border-left: 7px solid var(--danger);
    color: var(--danger) !important;
    background: var(--surface) !important;
}

.warning {
    border-left: 7px solid var(--accent);
    color: var(--text) !important;
    background: var(--accent-soft) !important;
}

.customer {
    border: 1px solid var(--line) !important;
    border-left: 7px solid var(--accent) !important;
    border-radius: 0 !important;
    color: var(--text) !important;
    background: var(--surface-muted) !important;
    text-transform: uppercase;
}

.field-error {
    color: var(--danger) !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .table-card,
html[data-theme="dark"] body > main:not(.page) {
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.018) 25%, transparent 25%),
        linear-gradient(315deg, rgba(255, 255, 255, 0.018) 25%, transparent 25%) !important;
    background-size: 24px 24px !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] tbody tr,
html[data-theme="dark"] .table-wrapper {
    background-color: #0d0d0d !important;
}

html[data-theme="dark"] tbody tr:nth-child(even) {
    background-color: #151515 !important;
}

html[data-theme="dark"] tbody tr:hover {
    background-color: #39220c !important;
}

@keyframes content-enter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wire-drift-one {
    0% {
        transform: perspective(900px) rotateX(3deg) rotateY(-12deg) rotateZ(-3deg)
            translate3d(
                calc(0vw + var(--scene-x) + var(--repel-one-x)),
                calc(var(--scene-y) + var(--repel-one-y)),
                0
            );
    }
    19% {
        transform: perspective(900px) rotateX(-8deg) rotateY(13deg) rotateZ(5deg)
            translate3d(
                calc(-24vw + var(--scene-x) + var(--repel-one-x)),
                calc(var(--scene-y) + var(--repel-one-y) + 42px),
                70px
            );
    }
    43% {
        transform: perspective(900px) rotateX(11deg) rotateY(-4deg) rotateZ(-7deg)
            translate3d(
                calc(-58vw + var(--scene-x) + var(--repel-one-x)),
                calc(var(--scene-y) + var(--repel-one-y) - 34px),
                25px
            );
    }
    71% {
        transform: perspective(900px) rotateX(-4deg) rotateY(17deg) rotateZ(8deg)
            translate3d(
                calc(-96vw + var(--scene-x) + var(--repel-one-x)),
                calc(var(--scene-y) + var(--repel-one-y) + 18px),
                90px
            );
    }
    100% {
        transform: perspective(900px) rotateX(6deg) rotateY(-10deg) rotateZ(-4deg)
            translate3d(
                calc(-145vw + var(--scene-x) + var(--repel-one-x)),
                calc(var(--scene-y) + var(--repel-one-y) - 12px),
                0
            );
    }
}

@keyframes wire-drift-two {
    0% {
        transform: perspective(800px) rotateX(-6deg) rotateY(14deg) rotateZ(6deg)
            translate3d(
                calc(0vw + var(--scene-x-reverse) + var(--repel-two-x)),
                calc(var(--scene-y-reverse) + var(--repel-two-y)),
                0
            );
    }
    27% {
        transform: perspective(800px) rotateX(9deg) rotateY(-9deg) rotateZ(-8deg)
            translate3d(
                calc(-38vw + var(--scene-x-reverse) + var(--repel-two-x)),
                calc(var(--scene-y-reverse) + var(--repel-two-y) - 50px),
                75px
            );
    }
    56% {
        transform: perspective(800px) rotateX(-12deg) rotateY(5deg) rotateZ(9deg)
            translate3d(
                calc(-79vw + var(--scene-x-reverse) + var(--repel-two-x)),
                calc(var(--scene-y-reverse) + var(--repel-two-y) + 36px),
                32px
            );
    }
    82% {
        transform: perspective(800px) rotateX(5deg) rotateY(-16deg) rotateZ(-5deg)
            translate3d(
                calc(-114vw + var(--scene-x-reverse) + var(--repel-two-x)),
                calc(var(--scene-y-reverse) + var(--repel-two-y) - 18px),
                88px
            );
    }
    100% {
        transform: perspective(800px) rotateX(-4deg) rotateY(11deg) rotateZ(4deg)
            translate3d(
                calc(-140vw + var(--scene-x-reverse) + var(--repel-two-x)),
                calc(var(--scene-y-reverse) + var(--repel-two-y) + 12px),
                0
            );
    }
}

@keyframes wire-drift-three {
    0% {
        transform: perspective(760px) rotateX(12deg) rotateY(-8deg) rotateZ(-9deg)
            translate3d(
                calc(0vw + var(--scene-x) + var(--repel-three-x)),
                calc(var(--scene-y) + var(--repel-three-y)),
                25px
            );
    }
    31% {
        transform: perspective(760px) rotateX(-10deg) rotateY(18deg) rotateZ(7deg)
            translate3d(
                calc(-43vw + var(--scene-x) + var(--repel-three-x)),
                calc(var(--scene-y) + var(--repel-three-y) + 48px),
                95px
            );
    }
    64% {
        transform: perspective(760px) rotateX(6deg) rotateY(-20deg) rotateZ(-4deg)
            translate3d(
                calc(-89vw + var(--scene-x) + var(--repel-three-x)),
                calc(var(--scene-y) + var(--repel-three-y) - 38px),
                42px
            );
    }
    100% {
        transform: perspective(760px) rotateX(-5deg) rotateY(9deg) rotateZ(10deg)
            translate3d(
                calc(-135vw + var(--scene-x) + var(--repel-three-x)),
                calc(var(--scene-y) + var(--repel-three-y) + 15px),
                0
            );
    }
}

@keyframes face-light {
    0%, 100% {
        fill-opacity: 0.42;
    }
    45% {
        fill-opacity: 1;
    }
    72% {
        fill-opacity: 0.62;
    }
}

@keyframes node-pulse {
    0%, 100% {
        opacity: 0.55;
    }
    50% {
        opacity: 1;
    }
}

.custom-cursor,
.custom-cursor * {
    cursor: none !important;
}

.cursor-dot,
.cursor-ring {
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}

[data-cursor-size="small"] .cursor-ring {
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
}

[data-cursor-size="large"] .cursor-ring {
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
}

[data-cursor-size="small"] .cursor-dot {
    width: 3px;
    height: 3px;
    margin: -1.5px 0 0 -1.5px;
}

[data-cursor-size="large"] .cursor-dot {
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    margin: -2.5px 0 0 -2.5px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.cursor-ring {
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    transition: width 0.16s ease, height 0.16s ease, margin 0.16s ease, border-color 0.16s ease;
}

.cursor-ring--active {
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border-color: var(--accent);
}

.cursor-glow {
    position: fixed;
    z-index: 9998;
    top: 0;
    left: 0;
    width: 132px;
    height: 82px;
    margin: -41px 0 0 -66px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(var(--accent-rgb), 0.42) 0%,
        rgba(var(--accent-rgb), 0.22) 24%,
        rgba(var(--accent-rgb), 0.08) 52%,
        transparent 72%
    );
    filter: blur(10px);
    opacity: 0;
    mix-blend-mode: screen;
    pointer-events: none;
    transform-origin: 100% 50%;
    transition: opacity 0.1s linear;
    will-change: transform, opacity;
}

.cursor-glow::after {
    position: absolute;
    top: 34px;
    right: 13px;
    bottom: 34px;
    left: 88px;
    border: 1px solid rgba(var(--accent-rgb), 0.72);
    border-radius: 50%;
    box-shadow: 0 0 24px 8px rgba(var(--accent-rgb), 0.34);
    content: "";
}

.cursor-glow-disabled .cursor-glow {
    display: none;
}

[data-cursor-style="cross"] .cursor-ring {
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(var(--accent), var(--accent)) center / 100% 1px no-repeat,
        linear-gradient(var(--accent), var(--accent)) center / 1px 100% no-repeat;
}

[data-cursor-style="cross"] .cursor-dot {
    background: var(--accent);
}

[data-cursor-style="system"],
[data-cursor-style="system"] * {
    cursor: auto !important;
}

[data-cursor-style="system"] .cursor-dot,
[data-cursor-style="system"] .cursor-ring,
[data-cursor-style="system"] .cursor-glow {
    display: none;
}

@media (max-width: 680px) {
    body {
        padding: 78px 18px 34px !important;
    }

    .desktop-shell body {
        padding-bottom: 112px !important;
    }

    .theme-toggle {
        top: 14px;
        right: 18px;
        min-width: 112px;
        min-height: 38px;
        padding: 7px 11px;
        font-size: 0.7rem;
    }

    .site-mark {
        top: 14px;
        left: 18px;
        min-height: 38px;
        padding: 0 9px;
    }

    .settings-panel { width: min(360px, calc(100vw - 18px)); }

    .dynamic-island {
        top: 15px;
        min-width: 126px;
        min-height: 38px;
        padding: 7px 11px;
    }

    .dynamic-island__date {
        display: none;
    }

    .desktop-dock {
        bottom: 12px;
    }

    .app-window {
        top: 68px;
        right: 8px;
        bottom: 96px;
        left: 8px;
        width: auto;
        height: auto;
        min-width: 0;
        min-height: 0;
        border-radius: 10px;
        transform: none;
    }

    .app-window--open {
        transform: none;
    }

    .app-window--hidden,
    .app-window--minimized {
        transform: translateY(70%) scale(0.5);
    }

    .notes-layout {
        grid-template-columns: 118px 1fr;
    }

    .notes-list-panel {
        display: none;
    }

    .notes-editor {
        padding: 18px;
    }

    .site-mark span {
        display: none;
    }

    .card,
    .login-card,
    body > main:not(.page) {
        padding: 30px 22px !important;
    }

    h1 {
        font-size: clamp(2.25rem, 14vw, 3.7rem) !important;
    }

    .page-header {
        gap: 26px !important;
    }

    .row-actions {
        align-items: stretch !important;
        flex-direction: column;
    }

    .row-actions .button {
        width: 100%;
    }

    .wire-object--one {
        top: 15%;
        right: -42%;
        width: 125vw;
        opacity: 0.24;
    }

    .wire-object--two {
        display: none;
    }

    .wire-object--three {
        top: 58%;
        right: -38%;
        width: 78vw;
        opacity: 0.24;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
