/* Roboto Thin */
@font-face {
    font-family: 'Roboto';
    src: url('/static/fonts/Roboto/Roboto-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

/* Roboto Thin Italic */
@font-face {
    font-family: 'Roboto';
    src: url('/static/fonts/Roboto/Roboto-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
}

/* Roboto Light */
@font-face {
    font-family: 'Roboto';
    src: url('/static/fonts/Roboto/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

/* Roboto Light Italic */
@font-face {
    font-family: 'Roboto';
    src: url('/static/fonts/Roboto/Roboto-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

/* Roboto Regular */
@font-face {
    font-family: 'Roboto';
    src: url('/static/fonts/Roboto/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* Roboto Italic */
@font-face {
    font-family: 'Roboto';
    src: url('/static/fonts/Roboto/Roboto-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

/* Roboto Medium */
@font-face {
    font-family: 'Roboto';
    src: url('/static/fonts/Roboto/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* Roboto Medium Italic */
@font-face {
    font-family: 'Roboto';
    src: url('/static/fonts/Roboto/Roboto-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

/* Roboto Bold */
@font-face {
    font-family: 'Roboto';
    src: url('/static/fonts/Roboto/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Roboto Bold Italic */
@font-face {
    font-family: 'Roboto';
    src: url('/static/fonts/Roboto/Roboto-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

:root {
    --usage-accent-start: #a37a4f;
    --usage-accent-end: #4d2f16;
    --usage-accent-hover-start: #ba9165;
    --usage-accent-hover-end: #3a2411;
    --usage-accent-solid: #7b5531;
    --account-header-height: 0px;
    --account-gap: 20px;
}

/* Roboto Black */
@font-face {
    font-family: 'Roboto';
    src: url('/static/fonts/Roboto/Roboto-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

/* Roboto Black Italic */
@font-face {
    font-family: 'Roboto';
    src: url('/static/fonts/Roboto/Roboto-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
}

/* IBM Plex Mono Thin */
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('/static/fonts/IBM_Plex_Mono/IBMPlexMono-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

/* IBM Plex Mono Thin Italic */
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('/static/fonts/IBM_Plex_Mono/IBMPlexMono-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
}

/* IBM Plex Mono ExtraLight */
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('/static/fonts/IBM_Plex_Mono/IBMPlexMono-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

/* IBM Plex Mono ExtraLight Italic */
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('/static/fonts/IBM_Plex_Mono/IBMPlexMono-ExtraLightItalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
}

/* IBM Plex Mono Light */
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('/static/fonts/IBM_Plex_Mono/IBMPlexMono-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

/* IBM Plex Mono Light Italic */
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('/static/fonts/IBM_Plex_Mono/IBMPlexMono-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

/* IBM Plex Mono Regular */
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('/static/fonts/IBM_Plex_Mono/IBMPlexMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* IBM Plex Mono Italic */
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('/static/fonts/IBM_Plex_Mono/IBMPlexMono-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

/* IBM Plex Mono Medium */
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('/static/fonts/IBM_Plex_Mono/IBMPlexMono-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* IBM Plex Mono Medium Italic */
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('/static/fonts/IBM_Plex_Mono/IBMPlexMono-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

/* IBM Plex Mono SemiBold */
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('/static/fonts/IBM_Plex_Mono/IBMPlexMono-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

/* IBM Plex Mono SemiBold Italic */
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('/static/fonts/IBM_Plex_Mono/IBMPlexMono-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

/* IBM Plex Mono Bold */
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('/static/fonts/IBM_Plex_Mono/IBMPlexMono-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

.hidden-field {
    display: none;
}

.form-row--toggle {
    margin-bottom: 15px;
}

.toggle-help-text {
    display: block;
    margin-top: 5px;
}

/* IBM Plex Mono Bold Italic */
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('/static/fonts/IBM_Plex_Mono/IBMPlexMono-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

/* Courier Prime Regular */
@font-face {
    font-family: 'Courier Prime';
    src: url('/static/fonts/Courier_Prime/CourierPrime-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* Courier Prime Italic */
@font-face {
    font-family: 'Courier Prime';
    src: url('/static/fonts/Courier_Prime/CourierPrime-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

/* Courier Prime Bold */
@font-face {
    font-family: 'Courier Prime';
    src: url('/static/fonts/Courier_Prime/CourierPrime-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Courier Prime Bold Italic */
@font-face {
    font-family: 'Courier Prime';
    src: url('/static/fonts/Courier_Prime/CourierPrime-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

.roboto-thin {
  font-family: "Roboto", system-ui;
  font-weight: 100;
  font-style: normal;
}

.roboto-light {
  font-family: "Roboto", system-ui;
  font-weight: 300;
  font-style: normal;
}

.roboto-regular {
  font-family: "Roboto", system-ui;
  font-weight: 400;
  font-style: normal;
}

.roboto-medium {
  font-family: "Roboto", system-ui;
  font-weight: 500;
  font-style: normal;
}

.roboto-bold {
  font-family: "Roboto", system-ui;
  font-weight: 700;
  font-style: normal;
}

.roboto-black {
  font-family: "Roboto", system-ui;
  font-weight: 900;
  font-style: normal;
}

.roboto-thin-italic {
  font-family: "Roboto", system-ui;
  font-weight: 100;
  font-style: italic;
}

.roboto-light-italic {
  font-family: "Roboto", system-ui;
  font-weight: 300;
  font-style: italic;
}

.roboto-regular-italic {
  font-family: "Roboto", system-ui;
  font-weight: 400;
  font-style: italic;
}

.roboto-medium-italic {
  font-family: "Roboto", system-ui;
  font-weight: 500;
  font-style: italic;
}

.roboto-bold-italic {
  font-family: "Roboto", system-ui;
  font-weight: 700;
  font-style: italic;
}

.roboto-black-italic {
  font-family: "Roboto", system-ui;
  font-weight: 900;
  font-style: italic;
}

.ibm-plex-mono-thin {
  font-family: "IBM Plex Mono", system-ui;
  font-weight: 100;
  font-style: normal;
}

.ibm-plex-mono-extralight {
  font-family: "IBM Plex Mono", system-ui;
  font-weight: 200;
  font-style: normal;
}

.ibm-plex-mono-light {
  font-family: "IBM Plex Mono", system-ui;
  font-weight: 300;
  font-style: normal;
}

.ibm-plex-mono-regular, li {
  font-family: "IBM Plex Mono", system-ui;
  font-weight: 400;
  font-style: normal;
}

.ibm-plex-mono-medium {
  font-family: "IBM Plex Mono", system-ui;
  font-weight: 500;
  font-style: normal;
}

.ibm-plex-mono-semibold {
  font-family: "IBM Plex Mono", system-ui;
  font-weight: 600;
  font-style: normal;
}

.ibm-plex-mono-bold {
  font-family: "IBM Plex Mono", system-ui;
  font-weight: 700;
  font-style: normal;
}

.ibm-plex-mono-thin-italic {
  font-family: "IBM Plex Mono", system-ui;
  font-weight: 100;
  font-style: italic;
}

.ibm-plex-mono-extralight-italic {
  font-family: "IBM Plex Mono", system-ui;
  font-weight: 200;
  font-style: italic;
}

.ibm-plex-mono-light-italic {
  font-family: "IBM Plex Mono", system-ui;
  font-weight: 300;
  font-style: italic;
}

.ibm-plex-mono-regular-italic {
  font-family: "IBM Plex Mono", system-ui;
  font-weight: 400;
  font-style: italic;
}

.ibm-plex-mono-medium-italic {
  font-family: "IBM Plex Mono", system-ui;
  font-weight: 500;
  font-style: italic;
}

.ibm-plex-mono-semibold-italic {
  font-family: "IBM Plex Mono", system-ui;
  font-weight: 600;
  font-style: italic;
}

.ibm-plex-mono-bold-italic {
  font-family: "IBM Plex Mono", system-ui;
  font-weight: 700;
  font-style: italic;
}

.courier-prime-regular {
  font-family: "Courier Prime", system-ui;
  font-weight: 400;
  font-style: normal;
}

.courier-prime-bold {
  font-family: "Courier Prime", system-ui;
  font-weight: 700;
  font-style: normal;
}

.courier-prime-regular-italic {
  font-family: "Courier Prime", system-ui;
  font-weight: 400;
  font-style: italic;
}

.courier-prime-bold-italic {
  font-family: "Courier Prime", system-ui;
  font-weight: 700;
  font-style: italic;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.is-hidden {
    display: none !important;
}


/* Ensure the page takes full height */
html, body {
    height: 100%;
    margin: 0;
    background-color: #eeeeee;
    font-family: 'Courier Prime', system-ui;
    font-weight: 400;
    font-style: normal;
}

p {
    font-family: 'Roboto', system-ui;
    font-weight: 400;
    font-style: normal;
}

/* narrow the content into center for wide screens */
.narrower {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #1d1918;
    z-index: 1000;
}

header img {
    display: inline-block;
    height: auto;
}

header .narrower {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Header Left Section */
.header-left {
    display: flex;
    align-items: center;
}

/* Header Buttons Left */
.header-buttons-left {
    display: flex;
    margin-left: 20px; /* Space between logo and buttons */
}

/* Common styles for left header buttons */
.header-buttons-left .btn {
    text-decoration: none;
    padding: 10px 15px;
    font-family: 'Roboto', system-ui;
    font-weight: 400;
    font-size: 16px;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #442901; /* Default background color */
    color: #ffffff; /* Default text color */
    margin-right: 5px; /* Space between buttons */
    border-radius: 5px; /* Rounded corners */
}

/* Hover effect for left header buttons */
.header-buttons-left .btn:hover {
    background-color: #6f470c;
    color: #ffffff;
}

/* Icon styles for left buttons */
.header-buttons-left .icon-left,
.header-buttons-left .icon-right {
    width: 16px;
    height: 16px;
}

.header-buttons-left .icon-left {
    margin-right: 5px;
}

.header-buttons-left .icon-right {
    margin-left: 5px;
}

/* Header Buttons Right (Sign-In Buttons) */
.header-buttons-right {
    display: flex;
}

.header-buttons-right .btn {
    text-decoration: none;
    padding: 10px 15px;
    font-family: 'Roboto', system-ui;
    font-weight: 400;
    font-size: 16px;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* My Account button styles */
.header-buttons-right .btn-account {
    background-color: #3b2b18;
    color: #ffffff;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-right: 1px solid #ffffff; /* Thin line separating the buttons */
}

/* Logout button styles */
.header-buttons-right .btn-logout {
    background-color: #761c2f;
    color: #ffffff;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* Hover effects for right header buttons */
.header-buttons-right .btn-account:hover {
    background-color: #4a3721;
    color: #ffffff;
}

.header-buttons-right .btn-logout:hover {
    background-color: #971e33;
    color: #ffffff;
}

/* Icon styles for right buttons */
.header-buttons-right .icon-left,
.header-buttons-right .icon-right {
    width: 16px;
    height: 16px;
}

.header-buttons-right .icon-left {
    margin-right: 5px;
}

.header-buttons-right .icon-right {
    margin-left: 5px;
}

.mobile-menu-toggle,
.mobile-nav-overlay {
    display: none;
}

.mobile-menu-open {
    overflow: hidden;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(12, 9, 8, 0.72);
}

.mobile-nav-overlay[hidden] {
    display: none !important;
}

.mobile-nav-overlay.is-open {
    display: block;
}

.mobile-nav-overlay__panel {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: #1d1918;
    color: #ffffff;
    padding: 18px 20px 30px 20px;
}

.mobile-nav-overlay__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding-bottom: 12px;
}

.mobile-nav-overlay__title {
    margin: 0;
    font-size: 1.2rem;
    font-family: 'Roboto', system-ui;
}

.mobile-nav-overlay__close {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: #ffffff;
    border-radius: 6px;
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.mobile-nav-overlay__body {
    margin-top: 16px;
}

.mobile-nav-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-group {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.mobile-nav-group__title {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    color: #f4dcc4;
    font-family: 'Roboto', system-ui;
}

.mobile-nav-link,
.mobile-nav-sublink {
    width: 100%;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    background: #3b2b18;
    padding: 10px 12px;
    font-family: 'Roboto', system-ui;
    font-size: 1rem;
    text-align: left;
}

.mobile-nav-link:hover,
.mobile-nav-sublink:hover,
.mobile-nav-link:focus-visible,
.mobile-nav-sublink:focus-visible {
    border-color: #f4dcc4;
    color: #ffffff;
}

.mobile-nav-sublink {
    display: block;
    margin-top: 6px;
    background: #2e2013;
    font-size: 0.95rem;
}

.mobile-nav-link--button {
    cursor: pointer;
}

.mobile-nav-link--back {
    background: #252526;
}

.mobile-nav-link--logout {
    background: #761c2f;
}

.mobile-menu-toggle {
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: #2f2416;
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: 'Roboto', system-ui;
    font-size: 1rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .header-buttons-left,
    .header-buttons-right {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }
}

/* Remove default focus outline */
.btn:focus {
    outline: none;
}

/* main content styles live near component sections */

.legal * {
    font-family: 'Roboto', system-ui;
}

/* Flexbox layout to push footer down */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;

}

/* Main content grows to take remaining space */
main {
    flex: 1;
}

/* Footer styling */
footer {
    background-color: #f8f9fa;
    text-align: center;
    padding: 1em;
    margin-top: auto;
    width: 100%;
}


/* Styles for text input labels */
form label.text-label {
    display: inline-block;
    width: 100px;
}

form label.text-label--wide {
    width: 180px;
    white-space: nowrap;
}

#generateApiKeyForm #api_key_expiry_days,
#generateApiKeyForm #api_key_password,
#generateApiKeyForm #api_key_mfa {
    width: 240px;
}

.text-label--nowrap {
    white-space: nowrap;
}

/* Styles for text inputs */
form input[type="email"],
form input[type="password"],
form input[type="text"] {
    width: 300px;
}

form input.input-invalid {
    border-color: #b42318;
    box-shadow: 0 0 0 1px rgba(180, 35, 24, 0.3);
}

.readonly-field {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.password-container {
        position: relative;
        display: inline-block;
    }

.password-container input {
    padding-right: 30px; /* Adjust if necessary */
}

.toggle-password {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.toggle-password img {
    width: 20px;
    height: 20px;
}

/* Remove button focus outline */
.toggle-password:focus {
    outline: none;
}

/* Styles for the checkbox and its label */
.terms-container {
    display: flex;
    align-items: flex-start;
    margin-top: 10px;
}

.terms-container input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px; /* Adjust to vertically align with text */
}

.terms-container label {
    display: inline;
    width: auto;
    max-width: 600px; /* Adjust as needed */
}

.terms-container label a {
    text-decoration: underline;
}

/* General alert styling */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: white;
    position: relative;
    word-wrap: break-word;
}

/* Success, danger, warning, and info alert colors */
.alert-success {
    background-color: #28a745; /* Green for success */
}

.alert-danger {
    background-color: #dc3545; /* Red for errors */
}

.alert-warning {
    background-color: #ffc107; /* Yellow for warnings */
    color: #212529; /* Black text for warning */
}

.alert-info {
    background-color: #17a2b8; /* Blue for informational messages */
}

/* Close button styling for dismissible alerts */
.alert-dismissible .close {
    position: absolute; /* Place the button inside the alert box */
    top: 50%; /* Vertically align the button */
    right: 10px; /* Align button to the right side */
    transform: translateY(-50%); /* Center the button vertically */
    font-size: 1rem; /* Adjust font size */
    line-height: 1; /* Tweak line-height for better alignment */
    padding: 0; /* Remove extra padding */
    background: transparent; /* Ensure the background is transparent */
    border: none; /* Remove button border */
    color: inherit; /* Inherit the color from the alert type */
}

.alert .close:hover {
    opacity: 1; /* Ensure the button is more visible on hover */
    cursor: pointer;
    color: white; /* Brighten color on hover */
}

.awaiting-verification {
    color: red !important;
}

.security-card {
    background: #fffdf8;
    border: 1px solid #e5d3c1;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: #1d1c1c;
}

.mfa-secret-block {
    background: #fff9f0;
    border: 1px solid #e5d3c1;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #1d1c1c;
}

.mfa-secret-block .secret-value {
    font-family: monospace;
    color: #1d1c1c;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    margin: 0.5rem 0;
}

.mfa-secret-warning {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #f5cba7;
    background: #fff3e5;
    color: #854a1f;
}

.mfa-form + .mfa-form {
    margin-top: 1rem;
}

.mfa-code-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0 1rem;
}

.mfa-code-row .text-label {
    width: auto;
    margin: 0;
}

.mfa-code-input {
    width: 8ch;
    max-width: 140px;
    text-align: center;
    letter-spacing: 0.2em;
    font-size: 1.1rem;
}

.checkbox-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.75rem;
    margin: 0.5rem 0 1rem;
    width: 100%;
}

.checkbox-row input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
}

.checkbox-row label {
    line-height: 1.4;
}

.checkbox-row .form-note {
    margin: 0;
    line-height: 1.4;
}

.checkbox-row .text-label {
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.invoice-fields.is-hidden {
    display: none;
}

.invoice-fields .form-field + .form-field {
    margin-top: 12px;
}

.mfa-qr {
    margin-top: 1rem;
    text-align: center;
}

.mfa-qr-image {
    display: inline-block;
    background: #fff;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.button-danger {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    border-radius: 4px;
    text-decoration: none;
    color: #ffffff;
    background-color: #be1b1b;
    border: 4px solid #5F393A;
}

.button-danger:hover {
    background-color: #ff1414;
    border-color: #000000;
    text-decoration: none;
}


/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  /* Adjust the position as needed */
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Show the dropdown on button hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Optional: Change button background on hover */
.dropdown:hover .btn {
  background-color: #6f470c;
}

/* Container for the keys content */
.tables-container {
  max-width: max-content;
  margin: 0 auto; /* Centers the container */
  padding: 20px;
}

/* Headings */
.tables-container h1 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 2em;
  text-align: center;
}

/* Table Styles */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

.table th,
.table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

.table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

.table tr:nth-child(even) {
  background-color: #fafafa;
}

.table tr:hover {
  background-color: #f1f1f1;
}

/* Paragraph Styles */
.tables-container p {
  text-align: center;
  font-style: italic;
  color: #666;
}

.action-button {
    width: 55px;
}

.action-button.delete {
    color: #ffffff;
    background-color: #be1b1b;
}

.action-button.delete:hover {
    background-color: #ff1414;
    border-color: #000000;
    text-decoration: none;
}

.action-button.accept {
    color: #ffffff;
    background-color: #4169e1;
}

.action-button.accept:hover {
    background-color: #1e90ff;
    border-color: #000000;
    text-decoration: none;
}

.action-button.warning {
    color: #ffffff;
    background-color: #FF5E0E;
}

.action-button.warning:hover {
    background-color: #FF8C00;
    border-color: #000000;
    text-decoration: none;
}

/* Adjust the spacing between buttons */
.action-buttons {
    display: flex;
    gap: 5px; /* Space between buttons */
}

/* screen-reader friendly hiding */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
/* bots that ignore the above get a visible field which they fill */

/* ====== BILLING STYLES ====== */

.register-billing-stack {
    margin-bottom: 32px;
}

/* Status Text Colors */
.status-active {
    color: green;
}

.status-expired {
    color: red;
}

.status-warning {
    color: orange;
}

.subscription-refresh {
    display: none;
    align-items: center;
    gap: 8px;
    margin: 8px 0 12px;
    font-size: 0.95rem;
    color: #333333;
}

.subscription-refresh.is-active {
    display: flex;
}

.subscription-refresh__spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #c7c7c7;
    border-top-color: #444444;
    border-radius: 50%;
    animation: subscription-spin 0.8s linear infinite;
}

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

.cli-flow-warning {
    background-color: #dc143c; /* crimson */
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 6px;
    border: 1px solid #8b0f26;
    margin-bottom: 24px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.cli-flow-warning strong {
    display: inline-block;
    margin-right: 6px;
}

/* Slot Usage Bar */
.slot-usage-bar {
    width: 200px;
    height: 20px;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    position: relative;
    margin: 10px 0;
}

.slot-usage-fill {
    height: 100%;
}

.slot-usage-fill.normal {
    background-color: #4CAF50;
}

.slot-usage-fill.full {
    background-color: #ff4444;
}

.slot-usage-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
}

/* Pending Subscription Box */
.pending-subscription {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

/* Subscription Info Section */
.subscription-info {
    margin-top: 20px;
}

.subscription-info h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

.subscription-info ul {
    margin-bottom: 15px;
}

.subscription-info li {
    margin-bottom: 5px;
}

/* Center Content */
.center-content {
    text-align: center;
    padding: 20px;
}

/* Form Input Styling */
form input[type="number"], form select {
    padding: 5px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Utility Classes */
.mb-20 {
    margin-bottom: 20px;
}

.mt-10 {
    margin-top: 10px;
}

.inline-form {
    display: inline;
}

/* Subscription Purchase Info */
.subscription-purchase-info {
    background-color: #fff9f2;
    border: 1px solid #e0d1bf;
    padding: 16px;
    margin-bottom: 18px;
    border-radius: 8px;
}

.subscription-purchase-info p {
    margin: 6px 0;
}

/* Disabled option styling */
option:disabled {
    color: #6c757d;
    font-style: italic;
}

/* Upgrade warning styles */
.upgrade-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
    color: #856404;
}

.upgrade-warning h3,
.upgrade-warning h4 {
    margin-top: 0;
    color: #b45309;
    font-size: 1.1em;
}

.upgrade-warning p {
    margin-bottom: 8px;
}

.upgrade-warning p:last-child {
    margin-bottom: 0;
}

.form-note { font-size: 0.9em; opacity: 0.8; margin: 4px 0; }
.form-note--tight { margin: 2px 0; }
.form-note--spaced { margin-bottom: 12px; }
.form-note--error { color: #b42318; opacity: 1; }
.form-note--warning {
    color: #6f3d12;
    opacity: 1;
    max-width: 68ch;
}

.api-key-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
}

.api-key-actions-cell {
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Payment Method Comparison */
.payment-method-comparison {
    margin: 10px 0;
}

.method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.method-card {
    border: 2px solid #d7c4b0;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.method-card:hover {
    border-color: var(--usage-accent-solid);
    box-shadow: 0 4px 12px rgba(122, 85, 49, 0.15);
    transform: translateY(-2px);
}

.method-card--active {
    border-color: var(--usage-accent-solid);
    border-width: 3px;
    background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
}

.method-card h4 {
    margin: 0 0 8px 0;
    color: #2c1810;
    font-size: 1.2em;
}

.method-description {
    color: #6b5744;
    font-size: 0.9em;
    margin: 0 0 16px 0;
    font-style: italic;
}

.method-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.method-features li {
    padding: 6px 0;
    font-size: 0.95em;
    line-height: 1.5;
}

.feature-pro {
    color: #2d5016;
}

.feature-con {
    color: #7a4f2e;
    opacity: 0.8;
}

/* Purchase Total Display */
.purchase-total {
    background: #fff9f0;
    border: 1px solid #d7c4b0;
    border-radius: 8px;
    padding: 16px;
    margin: 6px 0;
}

.purchase-total p {
    margin: 4px 0;
}

.purchase-total strong {
    color: var(--usage-accent-solid);
    font-size: 1.1em;
}

.method-note {
    font-size: 0.85em;
    font-style: italic;
    color: #5c4a38;
    margin: 12px 0 0;
}

/* Simple Table for Payment History */
.simple-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.simple-table th,
.simple-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e8dcc8;
}

.simple-table th {
    background: #f8f3eb;
    font-weight: 600;
    color: #4a3726;
    font-size: 0.9em;
}

.simple-table tbody tr:hover {
    background: #fffcf7;
}

.simple-table tbody tr:last-child td {
    border-bottom: none;
}

/* ====== INTERNAL STORAGE USAGE ====== */
.usage-card,
.software-card {
    border: 1px solid #d9dce1;
    border-radius: 8px;
    background-color: #ffffff;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.usage-title {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: #0f172a;
}

.usage-description {
    margin-bottom: 18px;
    color: #4a4a4a;
    font-size: 0.98rem;
}

.usage-description--page {
    margin-top: -4px;
}

.usage-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .usage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.usage-section h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #0f172a;
}

.usage-metric {
    border: 1px solid #e0e3eb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    background-color: #f8fafc;
}

.usage-key-meta {
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.usage-metric-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-weight: 600;
}

.usage-metric-title {
    font-size: 0.95rem;
}

.usage-metric-count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    color: var(--usage-accent-end);
}

.usage-progress {
    position: relative;
    margin-top: 8px;
    height: 10px;
    background-color: #f2f2f7;
    border-radius: 999px;
    overflow: hidden;
}

.usage-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--usage-accent-start), var(--usage-accent-end));
    transition: width 0.6s ease;
}

.usage-accent-number {
    font-weight: 600;
    color: var(--usage-accent-end);
}

.usage-metric-footer {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #4a4a4a;
}

.usage-note {
    margin-top: 20px;
    background-color: #f7f1ea;
    border: 1px solid #e5d3c1;
    border-radius: 6px;
    padding: 14px;
    color: #4a4a4a;
}

.single-card {
    max-width: 720px;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    margin: 0 auto;
}

.content-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.entity-grid {
    display: grid;
    gap: 18px;
}

.entity-grid--keys,
.entity-grid--storages {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.entity-grid--deltas {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.entity-grid--api-keys {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

@media (min-width: 1024px) {
    .entity-grid--keys {
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    }
}

.entity-card {
    border: 1px solid #e5d3c1;
    border-radius: 12px;
    background: #fffdf8;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(18, 6, 0, 0.08);
}

.entity-card__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.entity-card__title {
    margin: 0;
    font-size: 1.25rem;
    color: #0f172a;
}

.entity-card__subline {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
    color: #4a4a4a;
}

.entity-subtle {
    color: #5b4737;
}

.entity-card__status {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

@media (max-width: 600px) {
    .entity-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .entity-card__status {
        align-items: flex-start;
    }
}

.entity-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0f172a;
}

.entity-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.entity-pill.is-success {
    background: #e5f3dd;
    color: #285421;
}

.entity-pill.is-danger {
    background: #ffe0e0;
    color: #9f1f1f;
}

.entity-pill.is-ghost {
    background: rgba(122, 85, 49, 0.15);
    color: #7b5531;
}

.entity-pill.is-info {
    background: #e9edf5;
    color: #1d2a44;
}

.entity-attributes {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.entity-attributes--tight {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.entity-attr {
    border: 1px solid #ede3d7;
    border-radius: 8px;
    padding: 12px;
    background: #f8f2ea;
    min-height: 76px;
}

.entity-attr--full {
    grid-column: 1 / -1;
}

.entity-attr-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c5038;
}

.entity-attr-value {
    display: block;
    margin-top: 6px;
    font-size: 1rem;
    color: #1d1c1c;
    word-break: break-word;
}

.entity-attr-sub {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: #5b4737;
}

.mono-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
}

.entity-card__actions {
    margin-top: 18px;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.entity-card__actions--single {
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .entity-card__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.entity-section-label {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7a6048;
}

.entity-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.entity-actions form {
    margin: 0;
}

.entity-action-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-family: 'Roboto', system-ui;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.entity-action-btn:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: 2px;
}

.entity-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.entity-action-btn--accent {
    background-color: var(--usage-accent-end);
    color: #ffffff;
}

.entity-action-btn--accent:hover {
    background-color: var(--usage-accent-hover-end);
}

.entity-action-btn--unlink {
    background-color: #8b4f1e;
    color: #ffffff;
}

.entity-action-btn--unlink:hover {
    background-color: #723e16;
}

.entity-action-btn--neutral {
    background-color: #efe5d9;
    color: #4a3726;
}

.entity-action-btn--neutral:hover {
    background-color: #e1d2c4;
}

.entity-action-btn--delete {
    background-color: #8f1c1c;
    color: #ffffff;
}

.entity-action-btn--delete:hover {
    background-color: #741010;
}

.entity-action-btn--ghost {
    background-color: transparent;
    border: 1px dashed var(--usage-accent-solid);
    color: var(--usage-accent-solid);
    padding: 6px 14px;
}

.entity-action-btn--ghost:hover {
    background-color: rgba(122, 85, 49, 0.07);
}

.entity-action-btn--small {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.entity-inline-form {
    margin-top: 10px;
}

.account-layout {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    align-items: start;
    margin-top: var(--account-gap);
}

.account-sidebar {
    position: sticky;
    top: calc(var(--account-header-height) + var(--account-gap));
    align-self: start;
    border: 1px solid #e5d3c1;
    border-radius: 12px;
    background: #fffdf8;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(18, 6, 0, 0.08);
}

.account-sidebar__title {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    color: #4a3726;
}

.account-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-sidebar__button {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    font-weight: 600;
    font-size: 0.95rem;
    color: #4a3726;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.account-sidebar__button:hover,
.account-sidebar__button:focus-visible {
    border-color: var(--usage-accent-solid);
    color: var(--usage-accent-solid);
    outline: none;
}

.account-sidebar__button.is-active {
    border-color: var(--usage-accent-solid);
    background: rgba(122, 85, 49, 0.08);
    color: var(--usage-accent-solid);
}

.account-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.account-section {
    display: none;
    scroll-margin-top: 24px;
}

.account-section.is-active {
    display: block;
}

.account-section__heading h2 {
    margin: 0 0 8px 0;
}

.account-section__heading p {
    margin: 0;
    color: #6c5038;
}

.account-section__heading .account-section__spacer {
    min-height: 1em;
}

.account-user-uuid {
    margin-top: 10px;
}

.account-card-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.account-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#update-email {
    gap: 8px;
}

#update-email > p:first-of-type {
    margin-top: 0;
    margin-bottom: 6px;
}

#update-email .account-stacked-form .account-form-actions {
    margin-top: 0;
}

#emailUpdate,
#emailVerification {
    margin-bottom: 8px;
}

#update-email .account-inline-form {
    margin-top: 0;
}

.billing-status-card {
    gap: 6px;
}

.billing-status-card p {
    margin: 4px 0;
}

.billing-status-card h3 {
    margin-bottom: 8px;
}

.account-card h3,
.account-card h4 {
    margin: 0;
}

.account-card__prose {
    max-width: 78ch;
    margin: 0;
    line-height: 1.35;
}

.account-card__prose--form-note {
    margin-top: 4px;
}

.account-card__subheading {
    margin-top: 16px;
}

.account-card__details {
    padding: 12px 16px;
    border: 1px dashed #d7c4b0;
    border-radius: 8px;
    background: #fff9f0;
}

.account-stacked-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.account-form-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    max-width: 360px;
}

.account-stacked-form .account-form-field > .text-label {
    display: block;
    width: auto;
    margin: 0;
}

.account-stacked-form input[type="email"],
.account-stacked-form input[type="password"],
.account-stacked-form input[type="text"],
.account-stacked-form .password-container {
    display: block;
    width: 300px;
    max-width: 100%;
}

.account-stacked-form .password-container {
    display: block;
}

.account-stacked-form .password-container input {
    width: 100%;
    box-sizing: border-box;
}

.pending-subscription__actions {
    margin-top: 8px;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.payment-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 560px;
}

.payment-form .form-field > .text-label {
    white-space: nowrap;
}

.payment-form input[type="number"],
.payment-form select {
    padding: 8px 10px;
    border: 1px solid #c8b9a4;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
}

.account-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.account-inline-form {
    margin-top: 16px;
}

.api-key-card__actions {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.api-key-card__actions .entity-actions .entity-action-btn,
.api-key-refresh-card > summary.entity-action-btn {
    min-width: 120px;
    justify-content: center;
}

.entity-actions--api-key {
    align-items: flex-start;
}

.api-key-scope-list {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.api-key-scope-list .entity-pill {
    font-size: 0.75rem;
}

.api-key-scopes-attr {
    min-height: unset;
}

.api-key-refresh-card {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.entity-actions--api-key .api-key-refresh-card[open] {
    flex-basis: 100%;
}

.api-key-refresh-card > summary {
    list-style: none;
    width: fit-content;
}

.api-key-refresh-card > summary::-webkit-details-marker {
    display: none;
}

.api-key-refresh-card__panel {
    margin-top: 10px;
    border: 1px solid #e0d2c1;
    border-radius: 10px;
    background: #fff9f2;
    padding: 10px 12px;
}

.api-key-form .form-row {
    margin-bottom: 12px;
}

@media (max-width: 1024px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 900px) {
    .account-layout {
        margin-top: 12px;
        gap: 0;
    }

    .account-sidebar {
        display: none;
    }

    .account-content {
        gap: 0;
    }
}

@media (max-width: 700px) {
    .account-card form label.text-label,
    .account-card form label.text-label--wide,
    .account-card form .text-label {
        width: auto;
        display: block;
        margin-bottom: 6px;
        white-space: normal;
    }

    .account-card form input[type="email"],
    .account-card form input[type="password"],
    .account-card form input[type="text"],
    .account-card form input[type="number"],
    .account-card form select,
    .account-card .password-container {
        width: 100%;
        max-width: 100%;
    }

    .checkbox-row {
        flex-wrap: wrap;
    }
}

.empty-state {
    margin: 12px 0;
    color: #4a4a4a;
    font-style: italic;
}

.form-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #4a3726;
}

.form-field input,
.form-field select {
    border: 1px solid #d7c4b0;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.95rem;
    background-color: #fffdf8;
    color: #1d1c1c;
}

.form-field input:read-only {
    background-color: #f1ebe2;
}

.form-field input:disabled {
    background-color: #f1ebe2;
    color: #7a736d;
}

.acdc-panel {
    background: linear-gradient(180deg, #fffaf3 0%, #fff6ec 100%);
    border: 1px solid #d3c2ae;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.acdc-panel .form-note {
    margin: 0;
    color: #5a4b3a;
}

.acdc-fields {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 300px;
    max-width: 100%;
    align-items: flex-start;
}

.acdc-billing {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.acdc-panel label.text-label {
    display: block;
    width: auto;
}

.acdc-fields label.text-label {
    width: auto;
}

.acdc-fields label {
    font-weight: 600;
    margin-bottom: 0;
    color: #3a2f24;
    white-space: nowrap;
}

.acdc-fields > label {
    margin-top: 12px;
    margin-bottom: 2px;
    padding-left: 4px;
}

.acdc-fields > label:first-of-type {
    margin-top: 6px;
}

.acdc-field {
    height: 38px;
    min-height: 38px;
    width: 300px;
    max-width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    display: block;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

.acdc-field iframe {
    width: 100%;
    height: 38px;
    border: 0;
    display: block;
    margin: 0;
    padding: 0;
}

.acdc-field:focus-within {
    border-color: transparent;
    box-shadow: none;
}

.acdc-field.is-invalid {
    border-color: transparent;
    box-shadow: none;
}

.acdc-field.is-valid {
    border-color: transparent;
    box-shadow: none;
}

.acdc-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.acdc-actions #acdcCardSubmit,
.acdc-actions #acdcCardCancel {
    min-width: 140px;
}

.acdc-panel .error {
    color: #b02020;
}

.acdc-panel .form-field input:focus,
.acdc-panel .form-field select:focus {
    border-color: #8c5f2b;
    box-shadow: 0 0 0 1px rgba(140, 95, 43, 0.18);
    outline: none;
}

.acdc-panel .form-field input:valid:not(:focus),
.acdc-panel .form-field select:valid:not(:focus) {
    border-color: #d7c4b0;
    box-shadow: none;
}

.acdc-panel .form-field select {
    width: 300px;
    max-width: 100%;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.form-helper {
    font-size: 0.9rem;
    color: #5b4737;
}

.info-note {
    padding: 12px 16px;
    border-left: 4px solid var(--usage-accent-solid);
    background-color: #f9f4ed;
    border-radius: 8px;
    color: #4a4a4a;
    font-size: 0.95rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--usage-accent-end);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 16px;
}

.back-link:hover,
.back-link:focus {
    color: var(--usage-accent-hover-end);
}

.text-muted {
    color: #6b7280;
    margin-bottom: 20px;
}

.mono-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    background: #f3f4f6;
    border-radius: 4px;
    padding: 2px 6px;
    margin-left: 8px;
}

.inline-form {
    display: inline-block;
    margin-left: 6px;
}

.inline-form .link-button {
    border: none;
    background: transparent;
    color: #6c63ff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
}

.inline-form .link-button:hover,
.inline-form .link-button:focus {
    color: #4c3cd6;
}

.usage-note p {
    margin: 0;
    font-size: 0.95rem;
    color: #4a4a4a;
}

/* ====== SOFTWARE DOWNLOADS ====== */
.software-card--intro {
    margin-bottom: 10px;
}

.software-page-title {
    margin: 0 0 8px 0;
    font-size: 1.8rem;
    color: #0f172a;
}

.software-page-description {
    margin: 0;
    color: #4a4a4a;
    font-size: 1rem;
}

.software-intro-notes {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.software-intro-section h2 {
    margin: 0 0 6px 0;
    color: #0f172a;
    font-size: 1.08rem;
}

.software-intro-section p {
    margin: 0;
    color: #3f3f46;
    font-size: 0.96rem;
    line-height: 1.55;
}

.software-intro-list {
    margin: 0;
    padding-left: 22px;
    color: #3f3f46;
    font-size: 0.96rem;
    line-height: 1.55;
}

.software-intro-list ul {
    margin: 3px 0 7px 0;
    padding-left: 22px;
}

.software-intro-list li {
    margin: 3px 0;
}

.software-intro-list + p {
    margin-top: 10px;
}

.software-intro-section p + p {
    margin-top: 10px;
}

.software-release-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .software-release-header {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
    }
}

.software-release-title h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #0f172a;
}

.software-release-meta {
    margin: 0;
    font-size: 0.95rem;
    color: #4a4a4a;
}

.software-changelog {
    margin-top: 16px;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #e5d3c1;
    background-color: #f7f1ea;
}

.software-changelog h3 {
    margin: 0 0 10px 0;
    font-family: 'Roboto', system-ui;
    font-size: 1.225rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}

.software-changelog-content {
    font-family: 'Roboto', system-ui;
    font-size: 0.96rem;
    line-height: 1.55;
    color: #3a3129;
}

.software-changelog-section + .software-changelog-section {
    margin-top: 12px;
}

.software-changelog-section h4 {
    margin: 0 0 6px 0;
    font-family: 'Roboto', system-ui;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}

.software-changelog-section ul {
    margin: 0;
    padding-left: 20px;
}

.software-changelog-section li + li {
    margin-top: 4px;
}

.software-target-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    margin-top: 20px;
}

.software-target-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.software-target-option {
    width: 100%;
    min-height: 52px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    align-items: center;
    gap: 10px;
    padding: 10px 8px 10px 14px;
    border: 1px solid #d7c4b0;
    border-radius: 6px;
    background-color: #fbf7f1;
    color: #0f172a;
    font-family: 'Roboto', system-ui;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.software-target-option:hover,
.software-target-option:focus-visible {
    outline: none;
    border-color: var(--usage-accent-end);
    box-shadow: 0 0 0 2px rgba(77, 47, 22, 0.18);
}

.software-target-option--active {
    border-color: var(--usage-accent-end);
    background-color: #f7f1ea;
    box-shadow: inset 3px 0 0 var(--usage-accent-end);
}

.software-target-option--missing {
    background-color: #f3ece3;
    color: #6c7280;
}

.software-target-option--missing.software-target-option--active {
    border-color: var(--usage-accent-end);
    background-color: #f8f2ea;
    box-shadow: inset 3px 0 0 var(--usage-accent-end);
}

.software-target-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.software-target-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #eee2d2;
    color: var(--usage-accent-end);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    font-size: 1rem;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.software-target-option--active .software-target-arrow {
    background-color: var(--usage-accent-end);
    color: #ffffff;
}

.software-target-option--missing.software-target-option--active .software-target-arrow {
    background-color: var(--usage-accent-end);
}

.software-target-detail {
    min-width: 0;
}

.software-target-panel {
    min-height: 100%;
}

@media (max-width: 760px) {
    .software-target-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .software-target-option {
        min-height: 48px;
    }
}

.software-build-card {
    border: 1px solid #e5d3c1;
    border-radius: 8px;
    background-color: #f4ede4;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 210px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.software-target-panel[hidden] {
    display: none;
}

.software-build-card--missing {
    background-color: #ebe0d4;
    color: #6c5a4b;
}

.software-build-info h4 {
    margin: 0;
    font-size: 1.05rem;
    color: #0f172a;
}

.software-filename {
    margin: 4px 0;
    color: var(--usage-accent-solid);
    font-size: 0.95rem;
    word-break: break-all;
}

.software-checksum {
    margin: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--usage-accent-solid);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.software-checksum-label {
    font-weight: 600;
    color: #0f172a;
}

.software-checksum-value {
    color: var(--usage-accent-start);
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 1 1 auto;
}

.btn-copy-checksum {
    background-color: #eee2d2;
    color: var(--usage-accent-solid);
    border: 1px solid #d3bca4;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-family: 'Roboto', system-ui;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-copy-checksum:hover {
    background-color: #e5d5c4;
    color: #423024;
}

.btn-copy-checksum:disabled {
    opacity: 0.7;
    cursor: default;
}

.software-missing {
    margin: 0;
    font-size: 0.95rem;
    color: #6c7280;
}

.software-download-form {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.software-download-form .honeypot-row label {
    font-size: 0.8rem;
}

.software-download-btn {
    align-self: flex-start;
}

.software-empty {
    margin: 0;
    font-size: 1rem;
    color: #1d3a6e;
}
.subscription-purchase-info .pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.subscription-purchase-info .pricing-table th,
.subscription-purchase-info .pricing-table td {
    border: 1px solid #d7c4b0;
    padding: 8px 10px;
    text-align: left;
}

.subscription-purchase-info .pricing-table th {
    background: #f8f2ea;
    color: #3e2e1e;
    font-weight: 600;
}
