/* ── ABM Portal ─────────────────────────────────────────────────────────── */

.abm-portal {
    max-width: 800px;
    margin-top: 22px;
}
.abm-tab-content-details {
    display: flex;
    gap: 16px;
}
/* Band header */
.abm-band-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}
.abm-band-logo {
    width: 240px;
    height: auto;
    border-radius: 4px;
    display: block;
    flex-shrink: 0;
}
.abm-band-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 4px;
}

/* Inner tabs */
.abm-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 28px;
    gap: 0;
}
.abm-tab {
    display: inline-block;
    padding: 9px 22px;
    text-decoration: none;
    color: #777;
    font-size: 0.88em;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
}
.abm-tab:hover {
    color: #333;
    text-decoration: none;
}
.abm-tab--active {
    color: #333;
    border-bottom-color: #333;
    font-weight: 600;
}

/* Section */
.abm-section {
    margin-bottom: 32px;
}
.abm-section-title {
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #aaa;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* Form */
.abm-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.abm-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.abm-field label {
    font-size: 0.82em;
    font-weight: 600;
    color: #444;
}
.abm-image-preview img {
    max-width: 300px;
    height: auto;
    display: block;
}
.abm-input {
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 8px 10px;
    font-size: 0.88em;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    background: #fff;
    color: #333;
}
.abm-input:focus {
    outline: none;
    border-color: #888;
}
.abm-textarea {
    min-height: 80px;
    resize: vertical;
}
.abm-save-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
}
.abm-save-msg {
    font-size: 0.82em;
    color: green;
}

/* Members */
.abm-members {
    list-style: none;
    margin: 0;
    padding: 0;
}
.abm-member {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}
.abm-member:last-child {
    border-bottom: none;
}
.abm-member-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.abm-member-name {
    font-weight: 600;
    font-size: 0.9em;
}
.abm-member-role {
    font-size: 0.8em;
    color: #999;
}
.abm-badge {
    font-size: 0.68em;
    padding: 2px 7px;
    border-radius: 2px;
    background: #333;
    color: #fff;
    font-weight: 500;
    flex-shrink: 0;
}
.abm-member-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.abm-role-input {
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 5px 8px;
    font-size: 0.82em;
    width: 130px;
    font-family: inherit;
}
.abm-member-email {
    font-size: 0.78em;
    color: #aaa;
}
/* Invite */
.abm-invite-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 480px;
}
.abm-invite-row .abm-input {
    flex: 1;
    min-width: 200px;
}
.abm-msg {
    font-size: 0.82em;
    margin-top: 8px;
    min-height: 1.2em;
}
.abm-msg.success { color: green; }
.abm-msg.error   { color: #c00; }

/* Pending invites */
.abm-pending {
    margin-top: 20px;
}
.abm-pending-title {
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #bbb;
    margin: 0 0 8px;
}
.abm-pending ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.abm-pending li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.84em;
}
.abm-expires {
    color: #ccc;
    font-size: 0.82em;
    margin-left: auto;
}

/* Buttons */
.abm-btn {
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 7px 16px;
    font-size: 0.84em;
    font-family: inherit;
    line-height: 1.3;
    display: inline-block;
}
.abm-btn-primary {
    background: #333;
    color: #fff;
    border-color: #333;
}
.abm-btn-primary:hover {
    background: #111;
    border-color: #111;
}
.abm-btn-remove {
    background: transparent;
    color: #c00;
    border-color: #f0c0c0;
    padding: 4px 8px;
    font-size: 0.8em;
}
.abm-btn-remove:hover {
    background: #fff0f0;
}
.abm-btn-sm {
    background: transparent;
    color: #666;
    border-color: #ddd;
    padding: 4px 10px;
    font-size: 0.8em;
}
.abm-btn-sm:hover {
    border-color: #aaa;
    color: #333;
}
.abm-section-hint {
    font-size: 0.8em;
    background-color: #fff;
    color: #0e49d0;
    padding: 12px;
    border-radius: 8px;
}

/* File list */
.abm-breadcrumb {
    font-size: 1.2em;
    margin-bottom: 16px;
    color: #1b9ce5;
    font-weight: bold;
}
.abm-breadcrumb a {
    color: #1b9ce5;
    vertical-align: middle;
}
.abm-breadcrumb-root {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.abm-breadcrumb-root svg {
    flex-shrink: 0;
    opacity: 0.7;
}
.abm-file-list {
    list-style: none;
    margin: 0;
    padding: 0px 12px;
    background-color: #fff;
}
.abm-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 10px;
}
.abm-item:last-child {
    border-bottom: none;
}
.abm-item a {
    text-decoration: none;
    color: #333;
    font-size: 0.9em;
}
.abm-item a:hover {
    text-decoration: underline;
}
.abm-folder a {
    font-weight: 600;
}
.abm-folder {
    gap: 8px;
}
.abm-folder svg {
    flex-shrink: 0;
    opacity: 0.6;
}
.abm-size {
    font-size: 0.78em;
    white-space: nowrap;
    flex-shrink: 0;
}
.abm-filename {
    flex: 1;
    font-size: 0.9em;
    color: #333;
}
.abm-download-btn {
    flex-shrink: 0;
    color: #aaa;
    display: flex;
    align-items: center;
}
.abm-download-btn:hover {
    color: #333;
}
a.abm-download-btn svg {
    width: 1.4em;
    height: 1.4em;
}
/* Misc */
.abm-description {
    color: #555;
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0;
}
.abm-notice,
.abm-empty {
    color: #aaa;
    font-style: italic;
    font-size: 0.88em;
}
.abm-error {
    color: #c00;
    font-size: 0.88em;
}
/* Band switcher (multi-band users) */
.abm-band-selector {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 20px auto;
}
.abm-band-btn {
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 5px 14px;
    font-size: 0.84em;
    font-family: inherit;
    background: #fff;
    color: #555;
}
.abm-band-btn:hover { border-color: #888; color: #333; }
.abm-band-btn--active { background: #333; color: #fff; border-color: #333; }
 
/* Public profile fields */
.abm-field--checkbox { display: flex; flex-direction: column; gap: 6px; }
.abm-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.88em; font-weight: 600; cursor: pointer; }
.abm-checkbox-label input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.abm-field-hint { font-size: 0.78em; color: #aaa; margin: 0; }
.abm-profile-link { font-size: 0.82em; color: #333; text-decoration: underline; }