/* The document stays fixed; only the main content panel scrolls. */
.app-viewport {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.app-viewport .reference-app-shell {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.app-viewport .reference-sidebar {
    height: 100%;
    min-height: 0;
}

.app-viewport .reference-app-main {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.app-viewport .reference-content {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

/* Every authenticated screen uses the same centered content measure. */
.app-viewport .reference-content > * {
    width: 100%;
    max-width: 1120px !important;
    margin-right: auto;
    margin-left: auto;
}

/* Hard-edge design rule: no rounded geometry anywhere in the application. */
.hard-edges *,
.hard-edges *::before,
.hard-edges *::after {
    border-radius: 0 !important;
}

.hard-edges input,
.hard-edges button,
.hard-edges select,
.hard-edges textarea {
    -webkit-appearance: none !important;
    appearance: none !important;
    border-radius: 0 !important;
    background-clip: border-box !important;
}

.hard-edges input[type="checkbox"],
.hard-edges input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1px solid #a8a8a4;
    background: #fff;
    -webkit-appearance: none !important;
    appearance: none !important;
    border-radius: 0 !important;
}

.hard-edges input[type="checkbox"]:checked {
    border-color: #111110;
    background-color: #111110;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='m3 8 3 3 7-7'/%3E%3C/svg%3E");
}

.hard-edges input[type="radio"]:checked {
    border-color: #111110;
    background: #111110;
    box-shadow: inset 0 0 0 3px #fff;
}

/* Intentional circular primitives. */
.hard-edges .ui-avatar,
.hard-edges .reference-avatar,
.hard-edges .reference-bell > span,
.hard-edges .status-dot::before,
.hard-edges .ui-alert__dot,
.hard-edges .ui-spinner > i,
.hard-edges .donut,
.hard-edges .donut::after {
    border-radius: 50% !important;
}

.hard-edges .ui-alert {
    align-items: flex-start;
}

.hard-edges .ui-alert__dot {
    width: 8px;
    height: 8px;
    margin-top: 6px;
}

.hard-edges .ui-alert strong {
    display: block;
    line-height: 20px;
}

.hard-edges .reference-showcase > section:nth-of-type(7) .ui-card__body {
    padding: 0;
}

.hard-edges .reference-showcase > section:nth-of-type(7) .ui-tabs__list {
    margin: 0;
    padding: 0 20px;
}

.hard-edges .reference-showcase > section:nth-of-type(7) .ui-tabs__list button {
    padding: 12px 16px;
}

.hard-edges .reference-showcase > section:nth-of-type(7) .ui-tab-panel {
    padding: 20px;
}

.hard-edges .profile-top {
    align-items: flex-start;
}

.hard-edges .profile-top .ui-badge {
    align-self: flex-start;
}

.hard-edges .tree summary {
    list-style: none;
}

.hard-edges .tree summary::-webkit-details-marker {
    display: none;
}

.hard-edges .ui-empty__mark svg {
    width: 18px;
    height: 18px;
}

.hard-edges .context-area:hover .context-menu {
    display: none;
}

.hard-edges .context-menu.is-open {
    position: fixed;
    z-index: 1000;
    display: flex !important;
    flex-direction: column;
}

.hard-edges .ui-multiselect {
    position: relative;
}

.hard-edges .ui-multiselect.is-open {
    z-index: 1001;
}

.hard-edges .ui-multiselect__trigger {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 36px 6px 12px;
    border: 1px solid rgba(17, 17, 16, .11);
    background: #fff;
    color: #111110;
    text-align: left;
    cursor: pointer;
}

.hard-edges .ui-multiselect__trigger::after {
    content: "⌄";
    position: absolute;
    right: 12px;
    color: #787874;
}

.hard-edges .ui-multiselect__values {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 4px;
}

.hard-edges .ui-multiselect__tag {
    padding: 3px 7px;
    background: #eee;
    font-size: 12px;
}

.hard-edges .ui-multiselect__panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 30;
    display: none;
    padding: 4px 0;
    border: 1px solid rgba(17, 17, 16, .11);
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 17, 16, .12);
}

.hard-edges .ui-multiselect.is-open .ui-multiselect__panel {
    display: block;
}

.hard-edges .ui-multiselect__option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 0;
    background: #fff;
    color: #111110;
    text-align: left;
    cursor: pointer;
}

.hard-edges .ui-multiselect__option:hover {
    background: #eee;
}

.hard-edges .ui-multiselect__check {
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(17, 17, 16, .18);
    font-size: 11px;
}

.hard-edges .ui-multiselect__option.is-selected .ui-multiselect__check {
    border-color: #111110;
    background: #111110;
    color: #fff;
}

.hard-edges .ui-multiselect__option input[type="checkbox"] {
    flex: 0 0 16px;
    pointer-events: none;
}

.hard-edges .ui-button svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    stroke-width: 1.75;
}

.hard-edges #error {
    border-color: #c13333;
}

.hard-edges .reference-showcase > section:nth-of-type(11) .ui-card:nth-of-type(2) .ui-card__body {
    align-items: center;
    justify-content: center;
}

.hard-edges .reference-showcase > section:nth-of-type(11) .donut-wrap {
    width: 100%;
    margin: auto;
}

.hard-edges .ui-picker {
    position: relative;
}

.hard-edges .ui-picker__surface {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid rgba(17, 17, 16, .11);
    background: #fff;
    color: #111110;
    font-size: 14px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.hard-edges .ui-picker__surface svg {
    width: 14px;
    height: 14px;
    color: #787874;
}

.hard-edges .ui-picker__panel {
    display: none;
    position: fixed;
    z-index: 2200;
    width: min(296px, calc(100vw - 48px));
    padding: 12px;
    border: 1px solid rgba(17, 17, 16, .16);
    background: #fff;
    box-shadow: 0 14px 35px rgba(17, 17, 16, .16);
}

.hard-edges .ui-picker.is-open .ui-picker__panel,
.hard-edges .ui-picker__panel.is-open {
    display: block;
}

.hard-edges .ui-calendar__header {
    display: grid;
    grid-template-columns: 30px 1fr 30px;
    align-items: center;
    margin-bottom: 10px;
}

.hard-edges .ui-calendar__selectors {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 5px;
}

.hard-edges .ui-calendar__selectors select {
    width: 100%;
    height: 30px;
    padding: 0 7px;
    border: 1px solid rgba(17, 17, 16, .14);
    border-radius: 0;
    outline: none;
    background: #fff;
    color: #111110;
    font: inherit;
    font-size: 11px;
}

.hard-edges .ui-calendar__selectors select:focus {
    border-color: #111110;
}

.hard-edges .ui-calendar__nav,
.hard-edges .ui-calendar__day,
.hard-edges .ui-time-option {
    border: 0;
    background: transparent;
    color: #111110;
    font: inherit;
    cursor: pointer;
}

.hard-edges .ui-calendar__nav {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
}

.hard-edges .ui-calendar__nav:hover,
.hard-edges .ui-calendar__day:hover,
.hard-edges .ui-time-option:hover {
    background: #eeeeec;
}

.hard-edges .ui-calendar__nav svg {
    width: 15px;
    height: 15px;
}

.hard-edges .ui-calendar__weekdays,
.hard-edges .ui-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.hard-edges .ui-calendar__weekdays span {
    padding: 5px 0;
    color: #787874;
    font-size: 10px;
    text-align: center;
}

.hard-edges .ui-calendar__day {
    position: relative;
    height: 34px;
    font-size: 12px;
}

.hard-edges .ui-calendar__day.is-outside {
    color: #b4b4b0;
}

.hard-edges .ui-calendar__day.is-in-range {
    background: #eeeeec;
}

.hard-edges .ui-calendar__day.is-selected {
    background: #111110;
    color: #fff;
}

.hard-edges .ui-calendar__day.is-today:not(.is-selected)::after {
    content: "";
    position: absolute;
    right: 7px;
    bottom: 4px;
    left: 7px;
    height: 1px;
    background: #111110;
}

.hard-edges .ui-picker__panel--time {
    width: min(340px, calc(100vw - 48px));
    padding: 14px;
}

.hard-edges .ui-time-wheel-labels,
.hard-edges .ui-time-wheels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.hard-edges .ui-time-wheel-labels span {
    padding-bottom: 7px;
    color: #787874;
    font-size: 10px;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
}

.hard-edges .ui-time-wheels {
    position: relative;
}

.hard-edges .ui-time-wheels::after {
    content: "";
    position: absolute;
    top: 44px;
    right: 0;
    left: 0;
    z-index: 2;
    height: 38px;
    border-top: 1px solid rgba(17, 17, 16, .12);
    border-bottom: 1px solid rgba(17, 17, 16, .12);
    background: rgba(238, 238, 236, .55);
    pointer-events: none;
}

.hard-edges .ui-time-wheel {
    position: relative;
    z-index: 1;
    height: 126px;
    overflow-y: auto;
    border: 1px solid rgba(17, 17, 16, .11);
    background: linear-gradient(#fff, rgba(255,255,255,.25) 35%, rgba(255,255,255,.25) 65%, #fff);
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.hard-edges .ui-time-wheel::-webkit-scrollbar {
    display: none;
}

.hard-edges .ui-time-wheel::before,
.hard-edges .ui-time-wheel::after {
    content: "";
    display: block;
    height: 44px;
}

.hard-edges .ui-time-wheel__item {
    display: block;
    width: 100%;
    height: 38px;
    border: 0;
    background: transparent;
    color: #787874;
    font-family: "Geist Mono", monospace;
    font-size: 12px;
    scroll-snap-align: center;
    cursor: pointer;
}

.hard-edges .ui-time-wheel__item.is-selected {
    color: #111110;
    font-weight: 600;
}

.hard-edges .ui-time-preview {
    margin-top: 16px;
    padding: 10px;
    border: 1px solid rgba(17, 17, 16, .11);
    background: #f6f6f4;
    font-family: "Geist Mono", monospace;
    font-size: 14px;
    text-align: center;
}

.hard-edges .ui-range-field {
    grid-column: 1 / -1;
}

.hard-edges .reference-showcase > section:nth-of-type(12) .ui-card,
.hard-edges .reference-showcase > section:nth-of-type(13) .ui-card,
.hard-edges .reference-showcase > section:nth-of-type(15) .ui-card {
    overflow: visible;
}

.hard-edges .reference-showcase > section:nth-of-type(13) .ui-multiselect__panel {
    z-index: 1000;
}

.hard-edges .ui-tooltip::after {
    z-index: 1000;
}

.hard-edges .ui-toast--info > span {
    color: #8ec5ff;
}

.hard-edges [data-toast] {
    display: none;
}

.hard-edges .ui-toast-stack {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: flex;
    width: min(22rem, calc(100vw - 32px));
    flex-direction: column-reverse;
    gap: 8px;
}

.hard-edges .ui-toast-stack .ui-toast {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin: 0;
    transition: opacity .2s ease, transform .2s ease;
}

.hard-edges .timeline li {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
}

.hard-edges .timeline li > i {
    width: 8px;
    height: 8px;
    margin-top: 5px;
}

.hard-edges .timeline li:not(:last-child)::before {
    left: 3.5px;
    top: 13px;
}

.hard-edges .tree summary {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 24px;
}

.hard-edges .tree summary::before {
    content: "›";
    width: 14px;
    flex: 0 0 14px;
    font-size: 18px;
    line-height: 14px;
    text-align: center;
    transform-origin: center;
}

.hard-edges .tree details[open] > summary::before {
    transform: rotate(90deg);
}

/* High-contrast range control. */
.hard-edges .ui-range {
    width: 100%;
    height: 4px;
    border: 0;
    background: linear-gradient(to right, #111110 0 62%, #c9c9c5 62% 100%);
    cursor: pointer;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.hard-edges .ui-range::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
}

.hard-edges .ui-range::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    margin-top: -5px;
    border: 0;
    border-radius: 50% !important;
    background: #111110;
    -webkit-appearance: none;
}

.hard-edges .ui-range::-moz-range-track {
    height: 4px;
    background: #c9c9c5;
}

.hard-edges .ui-range::-moz-range-progress {
    height: 4px;
    background: #111110;
}

.hard-edges .ui-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 50% !important;
    background: #111110;
}

/* User and role management */
.hard-edges .reference-nav-group div a.is-active {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.hard-edges .reference-logo-image {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 2px;
    object-fit: contain;
}

.hard-edges .reference-logo {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
}

.hard-edges .management-page {
    display: flex;
    max-width: 1120px;
    margin: 0 auto;
    flex-direction: column;
    gap: 22px;
}

.hard-edges .management-page--form {
    max-width: 1120px;
}

.hard-edges .management-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.hard-edges .management-index-actions {
    display: flex;
    justify-content: flex-end;
}

.hard-edges .management-heading span,
.hard-edges .management-field > span,
.hard-edges .management-form-card .ui-label,
.hard-edges .management-fieldset legend {
    color: #787874;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hard-edges .management-heading h1 {
    margin: 5px 0 3px;
    font-size: 26px;
    font-weight: 500;
}

.hard-edges .management-heading p,
.hard-edges .management-fieldset > p {
    margin: 0;
    color: #787874;
    font-size: 12px;
}

.hard-edges .management-card,
.hard-edges .management-form-card {
    border-radius: 0;
}

.hard-edges .management-form-card {
    overflow: visible;
}

.hard-edges .management-table-wrap {
    overflow-x: auto;
}

.hard-edges .management-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.hard-edges .management-table th,
.hard-edges .management-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(17, 17, 16, .1);
    text-align: left;
    vertical-align: middle;
}

.hard-edges .management-table th {
    color: #787874;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hard-edges .management-table tbody tr:last-child td {
    border-bottom: 0;
}

.hard-edges .user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hard-edges .user-cell > span {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border-radius: 50% !important;
    background: #111110;
    color: #fff;
    font-size: 11px;
}

.hard-edges .user-cell div {
    display: flex;
    flex-direction: column;
}

.hard-edges .user-cell small,
.hard-edges .muted {
    color: #787874;
    font-size: 10px;
}

.hard-edges .role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.hard-edges .role-list > span:not(.muted) {
    padding: 3px 7px;
    border: 1px solid rgba(17, 17, 16, .12);
    background: #f6f6f4;
    font-size: 10px;
}

.hard-edges .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}

.hard-edges .status-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50% !important;
    background: #787874;
}

.hard-edges .status-pill.is-active {
    color: #15803d;
}

.hard-edges .status-pill.is-active::before {
    background: #10b981;
}

.hard-edges .management-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.hard-edges .management-actions a,
.hard-edges .management-actions button {
    border: 0;
    background: transparent;
    color: #111110;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.hard-edges .management-actions button {
    color: #c13333;
}

.hard-edges .management-actions button.management-edit {
    color: #111110;
}

.hard-edges .management-modal {
    width: min(760px, calc(100% - 32px));
    max-height: calc(100dvh - 48px);
}

.hard-edges .management-modal .ui-modal__card {
    max-height: calc(100dvh - 48px);
    padding: 0;
    overflow-y: auto;
}

.hard-edges .management-confirm {
    width: min(440px, calc(100% - 32px));
}

.hard-edges .management-confirm__card {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 18px;
    padding: 24px;
}

.hard-edges .management-confirm__icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid #fca5a5;
    background: #fff1f2;
    color: #c13333;
}

.hard-edges .management-confirm__icon svg {
    width: 18px;
    height: 18px;
}

.hard-edges .management-confirm__card h2 {
    margin: 0 0 7px;
    font-size: 19px;
    font-weight: 500;
}

.hard-edges .management-confirm__card .ui-modal__actions {
    grid-column: 1 / -1;
    margin-top: 6px;
}

.hard-edges .management-confirm__card .ui-button--destructive {
    border-color: #c13333;
    background: #c13333;
    color: #fff;
}

.hard-edges .management-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(17, 17, 16, .1);
}

.hard-edges .management-modal__header h2 {
    margin: 3px 0 0;
    font-size: 19px;
    font-weight: 500;
}

.hard-edges .management-modal__header button {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(17, 17, 16, .14);
    background: #fff;
    cursor: pointer;
}

.hard-edges .management-empty {
    padding: 44px !important;
    color: #787874;
    text-align: center !important;
}

.hard-edges .management-notice,
.hard-edges .management-error {
    padding: 12px 14px;
    border: 1px solid #86efac;
    background: #ecfdf5;
    color: #166534;
    font-size: 12px;
}

.hard-edges .management-error {
    border-color: #fca5a5;
    background: #fff1f2;
    color: #991b1b;
}

.hard-edges .management-form-card form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
}

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

.hard-edges .management-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hard-edges .management-field input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(17, 17, 16, .14);
    border-radius: 0;
    outline: 0;
    background: #fff;
    color: #111110;
    font: inherit;
    font-size: 13px;
}

.hard-edges .management-field select,
.hard-edges .inline-edit select,
.hard-edges .inline-edit input,
.hard-edges .compact-form select,
.hard-edges .compact-form input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(17, 17, 16, .14);
    border-radius: 0;
    background: #fff;
    color: #111110;
    font: inherit;
    font-size: 13px;
}

.hard-edges .inline-edit { position: relative; }
.hard-edges .inline-edit > summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hard-edges .inline-edit > form { position: absolute; right: 0; z-index: 10; width: 300px; display: grid; gap: 8px; padding: 12px; border: 1px solid #111110; background: #fff; box-shadow: 6px 6px 0 rgba(17,17,16,.12); }
.hard-edges .inline-edit button { height: 36px; background: #111110; color: #fff; text-decoration: none; }
.hard-edges .management-panel { padding: 24px; }
.hard-edges .management-panel h2 { margin: 0 0 4px; font-size: 18px; font-weight: 500; }
.hard-edges .management-panel > p { margin: 0 0 18px; color: #787874; font-size: 12px; }
.hard-edges .compact-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin-bottom: 18px; }
.hard-edges .override-list > div { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; padding: 10px 0; border-top: 1px solid rgba(17,17,16,.1); font-size: 12px; }
.hard-edges .override-list button { border: 0; background: transparent; color: #c13333; text-decoration: underline; cursor: pointer; }
.hard-edges .log-search { display: flex !important; flex-direction: row !important; align-items: end; gap: 10px !important; }
.hard-edges .log-search .management-field { flex: 1; }
.hard-edges .log-changes summary { cursor: pointer; text-decoration: underline; }
.hard-edges .log-changes pre { max-width: 420px; max-height: 260px; overflow: auto; padding: 10px; background: #111110; color: #f6f6f4; font-size: 10px; white-space: pre-wrap; }

@media (max-width: 720px) {
    .hard-edges .management-form-grid, .hard-edges .compact-form { grid-template-columns: 1fr; }
    .hard-edges .management-heading { align-items: flex-start; flex-direction: column; }
}

.hard-edges .management-field input:focus {
    border-color: #111110;
}

.hard-edges .management-field small,
.hard-edges .field-error {
    color: #c13333;
    font-size: 10px;
}

.hard-edges .management-fieldset {
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(17, 17, 16, .12);
}

.hard-edges .management-fieldset > p {
    margin: 4px 0 14px;
}

.hard-edges .management-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

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

.hard-edges .permission-section {
    border: 1px solid rgba(17, 17, 16, .12);
    background: #fff;
}

.hard-edges .permission-section__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(17, 17, 16, .1);
    background: #f6f6f4;
}

.hard-edges .permission-section__heading > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hard-edges .permission-section__heading strong { font-size: 12px; font-weight: 500; }
.hard-edges .permission-section__heading small { color: #787874; font-size: 9px; }
.hard-edges .permission-section__heading label { display: flex; align-items: center; gap: 6px; color: #787874; font-size: 10px; cursor: pointer; }
.hard-edges .permission-section .management-check-grid { grid-template-columns: 1fr; gap: 0; }
.hard-edges .permission-section .management-check { border: 0; border-bottom: 1px solid rgba(17, 17, 16, .08); }
.hard-edges .permission-section .management-check:last-child { border-bottom: 0; }

.hard-edges .management-check,
.hard-edges .management-status-control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(17, 17, 16, .1);
    font-size: 12px;
    cursor: pointer;
}

.hard-edges .management-check input,
.hard-edges .management-status-control input[type="checkbox"] {
    width: 15px;
    height: 15px;
    border-radius: 0 !important;
    accent-color: #111110;
}

.hard-edges .management-status-control span {
    display: flex;
    flex-direction: column;
}

.hard-edges .management-status-control small,
.hard-edges .management-empty-inline {
    color: #787874;
    font-size: 10px;
}

.hard-edges .management-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.hard-edges .management-pagination {
    padding: 12px 16px;
    border-top: 1px solid rgba(17, 17, 16, .1);
}

.hard-edges .business-logo-control {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hard-edges .business-logo-preview {
    display: grid;
    width: 120px;
    height: 120px;
    flex: 0 0 120px;
    place-items: center;
    border: 1px solid rgba(17, 17, 16, .12);
    background: #f6f6f4;
}

.hard-edges .business-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hard-edges .business-logo-preview span {
    font-size: 24px;
    font-weight: 500;
}

.hard-edges .business-logo-control > div:last-child {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
}

.hard-edges .business-file-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.hard-edges .business-file-button span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(17, 17, 16, .16);
    background: #fff;
    font-size: 12px;
    cursor: pointer;
}

.hard-edges .business-file-button span:hover {
    background: #eeeeec;
}

.hard-edges .business-remove-logo {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #787874;
    font-size: 11px;
}

.hard-edges .business-remove-logo input {
    width: 14px;
    height: 14px;
    border-radius: 0 !important;
    accent-color: #111110;
}

.hard-edges .exact-login__logo img,
.hard-edges .exact-login__mobile-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.hard-edges .exact-login__logo > span,
.hard-edges .exact-login__mobile-logo > span {
    width: 48px;
    height: 48px;
}

.hard-edges .exact-login__quote cite {
    display: block;
    padding-top: 20px;
    border-top: 1px solid rgba(246, 246, 244, .1);
    color: rgba(246, 246, 244, .42);
    font-size: 11px;
    font-style: normal;
    letter-spacing: .08em;
}

.hard-edges .management-device-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 22px 0 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(17, 17, 16, .1);
}

.hard-edges .management-device-heading:first-of-type {
    margin-top: 10px;
}

.hard-edges .management-device-heading h2,
.hard-edges .management-device-heading h3 {
    margin: 0 0 5px;
    font-weight: 500;
}

.hard-edges .management-device-heading h2 {
    font-size: 18px;
}

.hard-edges .management-device-heading h3 {
    font-size: 14px;
}

.hard-edges .management-device-heading p,
.hard-edges .management-muted {
    margin: 0;
    color: #787874;
    font-size: 11px;
}

.hard-edges .dahua-credential-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
}

.hard-edges .dahua-credential-grid [hidden],
.hard-edges .dahua-card-editor[hidden] {
    display: none !important;
}

.hard-edges .dahua-credential-tile {
    position: relative;
    width: 168px;
    min-height: 132px;
    overflow: hidden;
    border: 1px solid rgba(17, 17, 16, .14);
    border-radius: 0;
    background: #fff;
    color: #111110;
}

.hard-edges .dahua-credential-tile__body {
    display: flex;
    min-height: 101px;
    flex-direction: column;
    justify-content: center;
    padding: 12px;
}

.hard-edges .dahua-card-tile strong {
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 15px;
}

.hard-edges .dahua-card-tile .dahua-credential-tile__body span {
    margin-top: 7px;
    color: #787874;
    font-size: 10px;
}

.hard-edges .dahua-credential-tile__actions {
    display: flex;
    min-height: 31px;
    align-items: center;
    justify-content: flex-end;
    border-top: 1px solid rgba(17, 17, 16, .14);
}

.hard-edges .dahua-credential-tile__actions form {
    display: block;
    margin: 0;
}

.hard-edges .dahua-credential-tile__actions button {
    display: inline-grid;
    width: 31px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111110;
    cursor: pointer;
    place-items: center;
}

.hard-edges .dahua-credential-tile__actions button:hover {
    background: #f0f0ee;
}

.hard-edges .dahua-credential-tile__actions svg {
    width: 15px;
    height: 15px;
    stroke-width: 1.8;
}

.hard-edges .dahua-credential-tile__actions button:first-child:has(svg + svg) {
    position: relative;
}

.hard-edges .dahua-credential-tile__actions button:first-child svg + svg {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 9px;
    height: 9px;
    padding: 1px;
    background: #fff;
}

.hard-edges .dahua-credential-tile.is-duress {
    border-color: #e7a2a2;
}

.hard-edges .dahua-card-tile.is-duress [data-card-duress] {
    color: #c13333;
}

.hard-edges .dahua-credential-add {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    font: inherit;
    cursor: pointer;
}

.hard-edges .dahua-credential-add:hover {
    background: #f7f7f5;
}

.hard-edges .dahua-capture-tile.is-selected {
    border-color: #0787ff;
    background: #eef7ff;
    color: #075f9e;
}

.hard-edges .dahua-capture-tile strong {
    font-size: 12px;
    font-weight: 500;
}

.hard-edges .dahua-credential-add > span {
    position: relative;
    display: grid;
    place-items: center;
}

.hard-edges .dahua-credential-add svg {
    width: 27px;
    height: 27px;
    stroke-width: 1.6;
}

.hard-edges .dahua-credential-add svg + svg {
    position: absolute;
    right: -8px;
    bottom: -3px;
    width: 13px;
    height: 13px;
    padding: 1px;
    background: #fff;
}

.hard-edges .dahua-card-editor {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(17, 17, 16, .1);
    background: #f8f8f6;
}

.hard-edges .dahua-face-tile {
    width: 104px;
    min-height: 104px;
    padding: 8px;
}

.hard-edges .dahua-face-tile img {
    width: 100%;
    height: 100%;
    min-height: 86px;
    object-fit: cover;
}

.hard-edges .dahua-face-tile__overlay {
    position: absolute;
    inset: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(17, 17, 16, .52);
    color: #fff;
    opacity: 0;
    transition: opacity .15s ease;
}

.hard-edges .dahua-face-tile:hover .dahua-face-tile__overlay {
    opacity: 1;
}

.hard-edges .dahua-face-tile__overlay svg {
    width: 20px;
    height: 20px;
}

.hard-edges .dahua-face-tile__status {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 5px;
    background: #111110;
    color: #fff;
    font-size: 8px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hard-edges .dahua-face-add {
    width: 104px;
    min-height: 104px;
    font-size: 11px;
}

.hard-edges .dahua-face-gallery input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.hard-edges .dahua-face-tile {
    cursor: pointer;
}

.hard-edges .dahua-device-info {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    padding: 8px 12px;
    border: 1px solid #74bdf2;
    background: #e8f6ff;
    color: #194d70;
    font-size: 11px;
}

.hard-edges [data-schedule-field][hidden],
.hard-edges .dahua-device-info[hidden] {
    display: none;
}

.hard-edges [data-dahua-user-loading] svg {
    animation: dahua-loader-spin .7s linear infinite;
}

@keyframes dahua-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.hard-edges .dahua-device-info svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: #1593ea;
}

.hard-edges .dahua-face-upload {
    max-width: 390px;
    margin-top: 12px;
}

.hard-edges .dahua-face-upload small {
    color: #787874;
    font-size: 10px;
}

.hard-edges .dahua-fingerprint-card {
    gap: 16px;
    margin-top: 18px;
}

.hard-edges .dahua-fingerprint-card .management-device-heading {
    margin: 0;
    padding: 0;
    border: 0;
}

.hard-edges .dahua-fingerprint-card form {
    gap: 0;
    padding: 0;
}

.hard-edges .management-form-card form[hidden],
.hard-edges .dahua-external-action[hidden] {
    display: none !important;
}

.hard-edges .dahua-fingerprint-tile {
    width: 120px;
    min-height: 110px;
}

.hard-edges .dahua-fingerprint-tile__body {
    display: flex;
    width: 100%;
    min-height: 79px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 0;
    background: transparent;
    color: #0787ff;
    cursor: default;
}

.hard-edges .dahua-fingerprint-tile__body svg {
    width: 34px;
    height: 34px;
    stroke-width: 1.7;
}

.hard-edges .dahua-fingerprint-tile__body span {
    color: #787874;
    font-size: 9px;
}

.hard-edges .management-inline-device-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.hard-edges .management-inline-device-form .ui-field {
    width: min(340px, 100%);
}

.hard-edges .management-device-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hard-edges .management-device-actions form {
    margin: 0;
}

.hard-edges .management-location-picker {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
}

.hard-edges .management-location-map {
    width: 100%;
    height: 320px;
    border: 1px solid rgba(17, 17, 16, .16);
    background: #f1f1ef;
}

.hard-edges .management-location-map.has-error {
    display: none;
}

.hard-edges .management-location-hint {
    margin: 0;
    color: #787874;
    font-size: 12px;
}

.hard-edges .management-location-coordinates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hard-edges .management-location-map .maplibregl-ctrl-attrib {
    font-size: 10px;
}

@media (max-width: 720px) {
    .hard-edges .management-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .hard-edges .management-form-grid,
    .hard-edges .management-check-grid,
    .hard-edges .permission-sections {
        grid-template-columns: 1fr;
    }

    .hard-edges .management-inline-device-form {
        align-items: stretch;
        flex-direction: column;
    }

    .hard-edges .management-location-map {
        height: 260px;
    }

    .hard-edges .management-location-coordinates {
        grid-template-columns: 1fr;
    }
}
