
/* AIIO2 AUDIO LABS – CUSTOMER PORTAL */

:root {
    color-scheme: dark;
    --background: #101112;
    --surface: #131415;
    --input: #111213;
    --orange: #ff922e;
    --text: #f2f2f2;
    --muted: #a7a7aa;
    --line: #2c2d30;
    --field-border: #414245;
    --success: #69c78c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font: 14px/1.5 system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--orange);
    text-decoration: none;
}

a:hover {
    color: #ffb267;
}

header {
    min-height: 76px;
    padding: 18px 5vw;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: var(--text);
}

.brand span {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--orange);
}

.header-label {
    color: var(--muted);
    font-size: 12px;
}

main {
    padding: 32px 24px 48px;
}

.panel {
    width: 100%;
    max-width: 500px;
    margin: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px;
}

.panel.account-panel {
    max-width: 1100px;
    padding: 32px 38px;
}

h1 {
    font-size: 29px;
    font-weight: 650;
    letter-spacing: -0.7px;
    line-height: 1.25;
    margin: 0 0 24px;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.35px;
    margin: 0 0 18px;
}

.account-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.account-heading h1 {
    margin: 0;
}

.account-info {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    align-items: center;
    gap: 24px;
    margin: 0 0 24px;
}

.account-info .eyebrow {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 4px;
}

.account-info strong {
    font-size: 14px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.verified {
    color: var(--success);
    font-size: 19px;
}

.account-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 25px;
    margin: 0;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--line);
}

.account-nav .active {
    color: var(--orange);
    font-weight: 500;
}

.account-nav .future {
    color: var(--muted);
    opacity: 0.65;
    cursor: default;
}

.profile-section {
    padding: 25px 0;
    border-bottom: 1px solid var(--line);
}

.profile-section:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.field {
    min-width: 0;
    margin-bottom: 16px;
}

.field-grid .field {
    margin-bottom: 0;
}

.field-company,
.field-address_line,
.field-address_extra,
.field-country {
    grid-column: 1 / -1;
}

label {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 5px;
}

.required-mark {
    color: var(--orange);
    font-weight: 700;
    margin-left: 3px;
}

.required-note {
    font-size: 12px;
    color: var(--muted);
}

input:not([type=checkbox]),
select {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 11px 14px;
    background: var(--input);
    color: var(--text);
    border: 1px solid var(--field-border);
    border-radius: 8px;
    font: inherit;
    transition: border-color .15s, background .15s;
}

select {
    appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a7a7aa' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
}

input::placeholder {
    color: #747579;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--orange);
    background-color: #171819;
}

input[type=checkbox] {
    accent-color: var(--orange);
    margin: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;
}

button {
    background: var(--orange);
    color: #101112;
    border: 0;
    border-radius: 8px;
    padding: 12px 24px;
    min-height: 44px;
    font: inherit;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
}

button:hover {
    background: #ffa64f;
}

button.signout {
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
    padding: 8px 0 8px 12px;
    width: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

button.signout:hover {
    color: #fff;
    background: transparent;
}

.signout svg {
    width: 17px;
    height: 17px;
}

.form-actions {
    margin-top: 20px;
}

.account-panel .form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.account-panel .form-actions button {
    width: auto;
    min-width: 145px;
}

.helptext {
    color: var(--muted);
    font-size: 12px;
    margin-top: 6px;
}

.helptext ul {
    padding-left: 18px;
}

.errorlist {
    color: #ff9797;
    font-size: 13px;
    padding-left: 18px;
}

.notice {
    border-left: 3px solid var(--success);
    background: #19251d;
    color: #b7e5c4;
    border-radius: 5px;
    padding: 14px 18px;
    margin: 18px 0;
}

.notice.error {
    border-color: #ff9797;
    background: #2b1919;
    color: #ffb1b1;
}

.auth-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    margin-top: 24px;
}

footer {
    font-size: 12px;
    border-top: 1px solid var(--line);
    margin-top: 24px;
    padding-top: 16px;
}

footer a {
    color: var(--muted);
}

@media (max-width: 700px) {
    main {
        padding: 20px 12px 30px;
    }

    header {
        padding: 16px 20px;
    }

    .panel,
    .panel.account-panel {
        padding: 22px 18px;
    }

    .account-info {
        grid-template-columns: 1fr auto;
        gap: 14px;
    }

    .account-email {
        grid-column: 1;
    }

    .verified {
        grid-column: 2;
        grid-row: 2;
    }

    .field-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .account-nav {
        gap: 16px;
        font-size: 13px;
    }

    h1 {
        font-size: 26px;
    }

    .header-label {
        font-size: 10px;
    }
}


/* CUSTOMER PORTAL WORKSPACE — V0.06 */

:root {
    --background: #101113;
    --surface: #191b1e;
    --input: #121315;
    --orange: #db873b;
    --text: #e8e8e8;
    --muted: #96999f;
    --line: #303237;
    --field-border: #303237;
    --success: #67b98a;
    --portal-sidebar: #151619;
    --portal-sidebar-width: 258px;
    --portal-mono: "SFMono-Regular", Menlo, monospace;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.auth-brand img {
    display: block;
    width: 230px;
    height: 54px;
    object-fit: contain;
}

body:not(.portal-account) .panel {
    border-radius: 5px;
}

body:not(.portal-account) input,
body:not(.portal-account) select,
body:not(.portal-account) button {
    border-radius: 4px;
}

.portal-shell {
    min-height: 100vh;
}

.portal-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: var(--portal-sidebar-width);
    background: var(--portal-sidebar);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.portal-brand {
    padding: 18px 22px 20px;
    text-align: center;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}

.portal-brand img {
    display: block;
    width: 100%;
    height: 68px;
    object-fit: contain;
    margin: 0 auto;
}

.portal-brand span {
    display: block;
    color: var(--orange);
    font-family: var(--portal-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
}

.portal-navigation {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 12px 24px;
    scrollbar-width: thin;
    scrollbar-color: #36383d transparent;
}

.portal-nav-group {
    margin: 7px 0;
    border-bottom: 1px solid #25272b;
}

.portal-nav-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    cursor: pointer;
    padding: 14px 12px;
    color: #b7bac0;
    font-family: var(--portal-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

.portal-nav-group summary::-webkit-details-marker {
    display: none;
}

.portal-nav-group summary::after {
    content: "+";
    color: var(--orange);
    font-size: 15px;
}

.portal-nav-group[open] summary::after {
    content: "−";
}

.portal-nav-group summary:hover {
    color: var(--orange);
    background: #202226;
}

.portal-nav-group > div {
    padding-bottom: 10px;
}

.portal-nav-item {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    margin: 2px 0;
    border-left: 2px solid transparent;
    border-radius: 3px;
    color: var(--text);
    font-size: 13px;
}

a.portal-nav-item:hover {
    background: #232529;
    color: var(--orange);
}

.portal-nav-item.active {
    background: #28211b;
    border-left-color: var(--orange);
    color: var(--orange);
    font-weight: 600;
}

.portal-nav-item.disabled {
    color: #95989e;
    cursor: default;
}

.portal-nav-item.disabled::after {
    content: "";
    width: 4px;
    height: 4px;
    margin-left: auto;
    background: #53565b;
    border-radius: 50%;
}

.portal-sidebar-footer {
    padding: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--portal-mono);
    font-size: 9px;
    letter-spacing: 1px;
    text-align: center;
    flex-shrink: 0;
}

.portal-workspace {
    margin-left: var(--portal-sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.portal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 65px;
    padding: 14px 32px;
    gap: 20px;
    background: var(--portal-sidebar);
}

.portal-topbar-label {
    color: var(--muted);
    font-family: var(--portal-mono);
    font-size: 11px;
    letter-spacing: 2px;
}

.portal-topbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;
}

.portal-user-email {
    color: var(--muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.portal-logout {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 7px 12px;
    min-height: 30px;
    width: auto;
    font-size: 11px;
    font-weight: 400;
}

.portal-logout:hover {
    background: transparent;
    color: var(--orange);
    border-color: var(--orange);
}

.portal-main {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 36px 32px;
    flex: 1;
}

.portal-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 42px;
}

.portal-eyebrow {
    color: var(--orange);
    font-family: var(--portal-mono);
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.portal-page-heading h1 {
    font-size: 42px;
    font-weight: 500;
    letter-spacing: -1.8px;
    line-height: 1.1;
    margin: 0 0 10px;
}

.portal-page-heading p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.portal-version-label {
    padding: 10px 14px;
    border: 1px solid var(--line);
    color: var(--orange);
    font-family: var(--portal-mono);
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
}

.portal-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 13px;
}

.portal-section-heading h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
}

.portal-section-heading > span {
    color: var(--muted);
    font-family: var(--portal-mono);
    font-size: 9px;
    letter-spacing: 1px;
}

.portal-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}

.portal-metric,
.portal-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 5px;
}

.portal-metric {
    padding: 20px;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portal-metric-label {
    color: var(--muted);
    font-family: var(--portal-mono);
    font-size: 10px;
    letter-spacing: .65px;
}

.portal-metric-value {
    font-family: var(--portal-mono);
    color: var(--text);
    font-size: 30px;
    margin: 13px 0;
}

.portal-metric-note {
    font-size: 11px;
    color: var(--muted);
}

.portal-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}

.portal-panel {
    min-width: 0;
    padding: 22px;
    scroll-margin-top: 24px;
}

.portal-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.portal-panel-heading h2 {
    font-size: 17px;
    font-weight: 500;
    margin: 0;
}

.portal-data-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    color: #c4c6ca;
    font-size: 12px;
}

.portal-data-row strong {
    color: var(--muted);
    font-family: var(--portal-mono);
    font-weight: 400;
    overflow-wrap: anywhere;
    min-width: 0;
    text-align: right;
}

.portal-data-row strong.portal-green {
    color: var(--success);
}

.portal-verified {
    color: var(--success);
    background: rgba(103,185,138,.08);
    border: 1px solid rgba(103,185,138,.35);
    border-radius: 4px;
    font-family: var(--portal-mono);
    font-size: 10px;
    padding: 5px 8px;
    white-space: nowrap;
}

.portal-profile-form label {
    font-size: 12px;
    margin-bottom: 8px;
}

.portal-profile-form input:not([type=checkbox]),
.portal-profile-form select {
    min-height: 40px;
    height: 40px;
    padding: 9px 12px;
    font-size: 13px;
    border-radius: 4px;
}

.portal-profile-form select {
    padding-right: 32px;
}

.portal-save-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 32px;
}

.portal-save-actions > span {
    color: var(--muted);
    font-size: 11px;
}

.portal-save-actions button {
    width: auto;
    min-width: 150px;
    min-height: 40px;
    border-radius: 4px;
    font-size: 12px;
}

.portal-workspace-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin: 0;
    padding: 20px 32px;
    font-family: var(--portal-mono);
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--muted);
}

.portal-account a:focus-visible,
.portal-account button:focus-visible,
.portal-account summary:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

@media (max-width: 1200px) {
    .portal-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) {
    .portal-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    :root {
        --portal-sidebar-width: 220px;
    }

    .portal-main {
        padding: 26px 20px;
    }

    .portal-topbar {
        padding: 14px 20px;
    }
}

@media (max-width: 700px) {
    .portal-sidebar {
        position: relative;
        width: 100%;
        max-height: 340px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .portal-brand img {
        height: 45px;
        width: 200px;
    }

    .portal-workspace {
        margin-left: 0;
    }

    .portal-topbar,
    .portal-page-heading,
    .portal-section-heading {
        flex-wrap: wrap;
    }

    .portal-topbar-actions {
        justify-content: flex-start;
    }

    .portal-page-heading h1 {
        font-size: 34px;
    }

    .portal-panel,
    .portal-metric {
        padding: 16px;
    }

    .portal-save-actions {
        flex-wrap: wrap;
    }

    .portal-save-actions button {
        width: 100%;
    }

    .auth-brand img {
        width: 180px;
        height: 45px;
    }
}

@media (max-width: 380px) {
    .portal-metric-grid {
        grid-template-columns: 1fr;
    }

    .auth-brand img {
        width: 140px;
    }
}
