/* -------------------------------------------------------------------
   Forroemvinil Contribution Portal — Styles
   Warm, vinyl-inspired palette · No frameworks · Responsive
   ------------------------------------------------------------------- */

:root {
    --bg:           #FAF6F0;
    --card:         #FFFFFF;
    --primary:      #8B4513;
    --primary-h:    #A0522D;
    --accent:       #D2691E;
    --text:         #2D2A26;
    --text-light:   #6B6560;
    --border:       #DDD5C8;
    --drop-bg:      #F5F0E8;
    --drop-active:  #EEDEC8;
    --success:      #2E7D32;
    --success-bg:   #E8F5E9;
    --warning:      #E65100;
    --warning-bg:   #FFF3E0;
    --error:        #C62828;
    --error-bg:     #FFEBEE;
    --radius:       8px;
    --shadow:       0 1px 3px rgba(0,0,0,.08);
}

[x-cloak] { display: none !important; }

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

html { font-size: 15px; }

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* Header (legacy, kept for fallback) */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    text-align: center;
    padding: 2rem 1rem 1.6rem;
}
header h1 { margin: 0; font-size: 2rem; letter-spacing: .02em; }
header p  { margin: .4rem 0 0; opacity: .85; font-size: 1.05rem; }

/* -----------------------------------------------------------------------
   Navbar (shared top bar across all pages)
   ----------------------------------------------------------------------- */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: .7rem 1rem;
    gap: 1.5rem;
}
.nav-brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}
.nav-brand:hover { opacity: .9; }
.nav-links {
    display: flex;
    gap: .3rem;
    flex: 1;
}
.nav-link {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    padding: .4rem .8rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: .92rem;
    transition: all .15s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav-link.active { color: #fff; background: rgba(255,255,255,.2); }
.nav-user {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .88rem;
}
.nav-name { font-weight: 600; }
.nav-role {
    display: inline-block;
    padding: .1rem .5rem;
    border-radius: 3px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.9);
}
.btn-link {
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    font-size: .88rem;
    text-decoration: underline;
    padding: 0;
}
.btn-link:hover { color: #fff; }

/* Main */
main {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
}
.card h2 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    color: var(--primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: .5rem;
}
.card h3 { margin: 0 0 .8rem; font-size: 1.05rem; }

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 640px) {
    .grid-2 { grid-template-columns: 1fr; }
}

/* Form fields */
.field { display: flex; flex-direction: column; gap: .3rem; position: relative; }
.field span { font-weight: 600; font-size: .88rem; }
.field em { color: var(--error); font-style: normal; }
.url-field { margin-top: 1rem; }
.url-field small { color: #888; font-size: .8rem; }

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: .55rem .7rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: .95rem;
    background: #fff;
    transition: border-color .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(210,105,30,.15);
}
textarea { resize: vertical; font-family: inherit; }

/* Combobox dropdown */
.combo { position: relative; }
.dropdown {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    z-index: 50;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.dd-item {
    padding: .5rem .7rem;
    cursor: pointer;
    font-size: .93rem;
}
.dd-item:hover { background: var(--drop-bg); }
.dd-new { color: var(--accent); font-weight: 600; border-top: 1px solid var(--border); }

/* Badges */
.badge {
    display: inline-block;
    padding: .1rem .45rem;
    border-radius: 3px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    vertical-align: middle;
}
.badge.new { background: var(--warning-bg); color: var(--warning); }
.badge.ok  { background: var(--success-bg); color: var(--success); }

/* Multi-disc */
.multi-disc-toggle {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.toggle-label { display: flex; align-items: center; gap: .4rem; font-weight: 600; cursor: pointer; }
.disc-count { display: flex; align-items: center; gap: .4rem; }
.disc-count input { width: 60px; }
.disc-tabs { display: flex; gap: .3rem; margin-bottom: 1rem; }
.tab {
    padding: .4rem 1rem;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--drop-bg);
    cursor: pointer;
    font-weight: 600;
    font-size: .9rem;
}
.tab.active { background: var(--card); border-bottom: 2px solid var(--card); margin-bottom: -1px; }

/* Drop zone */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--drop-bg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
    margin-bottom: 1rem;
}
.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--accent);
    background: var(--drop-active);
}
.drop-zone p { margin: .3rem 0; }
.drop-zone .hint { font-size: .82rem; color: var(--text-light); }

/* Upload progress */
.upload-progress { margin-bottom: 1rem; }
.progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: .3rem;
}
.progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width .2s;
}
.upload-progress span { font-size: .82rem; color: var(--text-light); }

/* Track table */
.table-wrapper { overflow-x: auto; }
.track-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.track-table th {
    text-align: left;
    padding: .5rem .4rem;
    border-bottom: 2px solid var(--border);
    font-size: .82rem;
    color: var(--text-light);
    white-space: nowrap;
}
.track-table td { padding: .35rem .4rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.w-num { width: 60px; }
.w-dur { width: 70px; }
.w-info { width: 100px; }
.w-act { width: 36px; }
.track-table td .input-num {
    width: 54px;
    text-align: center;
    padding: .3rem .2rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: .95rem;
    font-weight: 600;
    background: #fff;
    -moz-appearance: textfield;
}
.track-table td .input-num::-webkit-outer-spin-button,
.track-table td .input-num::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.input-full { width: 100%; padding: .3rem .5rem; border: 1px solid var(--border); border-radius: 4px; font-size: .88rem; }
.input-full:focus { border-color: var(--accent); outline: none; }
.mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: .82rem; color: var(--text-light); }
.small { font-size: .75rem; }
.btn-del {
    background: none; border: none; font-size: 1.2rem; cursor: pointer;
    color: var(--error); padding: .2rem .4rem; border-radius: 3px;
}
.btn-del:hover { background: var(--error-bg); }

/* Multi-entry fields (composers, interpreters) */
.multi-field { position: relative; vertical-align: top; }
.multi-input-row { display: flex; gap: 2px; margin-bottom: 2px; }
.multi-input-row .input-full { flex: 1; min-width: 0; }
.btn-rm-entry {
    background: none; border: none; cursor: pointer; color: var(--error);
    font-size: .9rem; padding: 0 .25rem; line-height: 1; flex-shrink: 0;
}
.btn-rm-entry:hover { background: var(--error-bg); border-radius: 3px; }
.btn-add-entry {
    background: var(--drop-bg); border: 1px dashed var(--border); border-radius: 3px;
    cursor: pointer; color: var(--accent); font-weight: 700; font-size: .85rem;
    padding: .1rem .5rem; flex: 1;
}
.btn-add-entry:hover { background: var(--drop-active); border-color: var(--accent); }
.add-copy-row { display: flex; gap: 3px; margin-top: 2px; }
.btn-copy-prev {
    background: var(--drop-bg); border: 1px dashed var(--border); border-radius: 3px;
    cursor: pointer; color: var(--text-light); font-size: .75rem;
    padding: .1rem .4rem; white-space: nowrap; flex-shrink: 0;
}
.btn-copy-prev:hover { background: var(--drop-active); border-color: var(--accent); color: var(--accent); }

/* Autocomplete dropdown */
.ac-wrap { position: relative; }
.ac-dropdown {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
    background: #fff; border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 160px; overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.ac-dropdown .dd-item { padding: .35rem .5rem; cursor: pointer; font-size: .85rem; }
.ac-dropdown .dd-item:hover { background: var(--drop-bg); }

/* Artwork grid */
.artwork-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 700px) {
    .artwork-grid { grid-template-columns: repeat(2, 1fr); }
}
.art-slot { text-align: center; }
.art-slot label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; }
.art-drop {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--drop-bg);
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s;
    overflow: hidden;
    position: relative;
}
.art-drop:hover, .art-drop.drag-over { border-color: var(--accent); background: var(--drop-active); }
.art-drop.has-file { border-style: solid; border-color: var(--success); }
.art-drop img { max-width: 100%; max-height: 160px; object-fit: contain; }
.art-drop span { font-size: .82rem; color: var(--text-light); padding: .5rem; }
.btn-sm {
    margin-top: .4rem;
    font-size: .78rem;
    padding: .2rem .6rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}
.btn-sm:hover { background: var(--error-bg); border-color: var(--error); color: var(--error); }

/* Extra thumbnails */
.extra-thumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.extra-thumb { position: relative; width: 56px; height: 56px; border-radius: 4px; overflow: hidden; border: 1px solid var(--border); }
.extra-thumb img { width: 100%; height: 100%; object-fit: cover; }
.extra-thumb button {
    position: absolute; top: 0; right: 0; background: rgba(0,0,0,.6); color: #fff;
    border: none; cursor: pointer; font-size: .7rem; padding: .1rem .3rem; line-height: 1;
}

/* Alert cards */
.success-card { background: var(--success-bg); border-color: var(--success); text-align: center; }
.success-card h2 { color: var(--success); border: none; }
.warning-card { background: var(--warning-bg); border-color: var(--warning); }
.warning-card h3 { color: var(--warning); }
.warning-card ul { margin: .5rem 0; padding-left: 1.2rem; }
.warning-card li { margin-bottom: .3rem; font-size: .93rem; }
.error-card {
    background: var(--error-bg); border-color: var(--error);
    display: flex; align-items: center; justify-content: space-between;
}
.error-card p { margin: 0; color: var(--error); font-weight: 600; }
.error-card button { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--error); }
.dup-note { color: var(--warning); font-weight: 600; }

/* Buttons */
.actions { display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; margin-top: .5rem; align-items: center; }
.dup-check-wrap { display: flex; align-items: center; gap: .6rem; }
.dup-clean {
    font-size: .88rem;
    font-weight: 600;
    color: var(--success);
}
.btn {
    padding: .65rem 1.6rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--primary-h); }
.btn.secondary { background: var(--card); color: var(--primary); border: 2px solid var(--primary); }
.btn.secondary:hover:not(:disabled) { background: var(--drop-bg); }

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    font-size: .85rem;
    color: var(--text-light);
    border-top: 1px solid var(--border);
}

/* -----------------------------------------------------------------------
   My Contributions toggle + panel
   ----------------------------------------------------------------------- */
.my-contribs-toggle {
    max-width: 780px;
    margin: 1rem auto .25rem;
    padding: 0 1rem;
    text-align: right;
}
.count-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0 .45em;
    margin-left: .3em;
    vertical-align: middle;
    line-height: 1.6;
}
.my-contribs-panel { margin-bottom: 1rem; }
.my-contribs-panel h2 { margin-top: 0; font-size: 1.1rem; }
.loading-msg, .empty-msg { color: var(--text-light); font-size: .9rem; padding: .5rem 0; }
.text-light { color: var(--text-light); font-size: .85rem; }

.contrib-row {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .75rem 1rem;
    margin-bottom: .6rem;
    background: var(--bg);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.contrib-row:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.contrib-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem .5rem;
    margin-bottom: .2rem;
}
.contrib-title { font-weight: 600; }
.contrib-date  { font-size: .8rem; color: var(--text-light); }
.contrib-actions {
    margin-top: .5rem;
    display: flex;
    gap: .5rem;
    align-items: center;
}
.reject-reason {
    font-size: .85rem;
    color: var(--error);
    background: var(--error-bg);
    border-radius: 4px;
    padding: .3rem .6rem;
    margin: .4rem 0 .2rem;
}
.status-note          { font-size: .9rem; color: var(--text-light); }
.status-note.approved { color: var(--success); font-weight: 600; }

/* -----------------------------------------------------------------------
   Contribution detail overlay (read-only view from profile panel)
   ----------------------------------------------------------------------- */
.contrib-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 300;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 2rem 1rem;
}
.contrib-detail-panel {
    background: var(--card);
    color: var(--text);
    border-radius: var(--radius);
    width: 100%;
    max-width: 760px;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    padding: 1.5rem 2rem 2rem;
    position: relative;
}
.contrib-detail-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    padding: 0 .3rem;
}
.contrib-detail-close:hover { color: var(--error); }
.contrib-detail-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 .3rem;
    padding-right: 2rem;
}
.contrib-detail-sub {
    font-size: .88rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}
.contrib-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .6rem 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    padding: .8rem 1rem;
    margin-bottom: 1.2rem;
}
.contrib-detail-grid > div { display: flex; flex-direction: column; gap: .15rem; }
.contrib-detail-grid strong { font-size: .78rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .03em; }
.contrib-detail-grid span  { font-size: .95rem; font-weight: 600; }
.contrib-detail-section { margin-bottom: 1.2rem; }
.contrib-detail-section h4 {
    font-size: .95rem;
    color: var(--primary);
    margin: 0 0 .5rem;
    padding-bottom: .3rem;
    border-bottom: 1px solid var(--border);
}
.contrib-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}
.contrib-detail-table th {
    text-align: left;
    padding: .3rem .5rem;
    border-bottom: 2px solid var(--border);
    color: var(--text-light);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.contrib-detail-table td {
    padding: .3rem .5rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.contrib-detail-table tr:last-child td { border-bottom: none; }
.contrib-detail-approved {
    padding: .6rem 1rem;
    background: var(--success-bg);
    color: var(--success);
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
    margin-top: .5rem;
}
.contrib-detail-rejected {
    padding: .6rem 1rem;
    background: var(--error-bg);
    color: var(--error);
    border-radius: var(--radius);
    font-size: .9rem;
    margin-top: .5rem;
}
.contrib-detail-url {
    word-break: break-all;
    font-size: .88rem;
    color: var(--accent);
}
.status-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .1em .55em;
    border-radius: 999px;
}
.s-draft    { background: #E3F2FD; color: #1565C0; }
.s-pending  { background: #FFF8E1; color: #E65100; }
.s-rejected { background: var(--error-bg); color: var(--error); }
.s-approved { background: var(--success-bg); color: var(--success); }

/* -----------------------------------------------------------------------
   Editing banner (draft / rejected)
   ----------------------------------------------------------------------- */
.editing-banner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    background: #E3F2FD;
    border: 1.5px solid #90CAF9;
    padding: .8rem 1rem;
    margin-bottom: .5rem;
    font-size: .95rem;
}
.rejected-banner { color: var(--error); }
.editing-banner .btn-clear {
    flex-shrink: 0;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: .82rem;
    padding: .25rem .65rem;
    color: var(--text-light);
}
.editing-banner .btn-clear:hover { background: rgba(0,0,0,.05); }

/* -----------------------------------------------------------------------
   Draft saved screen
   ----------------------------------------------------------------------- */
.draft-saved-card {
    text-align: center;
    border: 2px solid #90CAF9;
    background: #E3F2FD;
}
.draft-saved-card h2 { color: #1565C0; margin-top: 0; }
.draft-saved-actions {
    display: flex;
    gap: .8rem;
    justify-content: center;
    margin-top: 1rem;
}

/* -----------------------------------------------------------------------
   Submit action group (Save Draft + Submit)
   ----------------------------------------------------------------------- */
.form-submit-group {
    display: flex;
    gap: .75rem;
    align-items: center;
}

/* -----------------------------------------------------------------------
   Staged artwork label
   ----------------------------------------------------------------------- */
.staged-art-label {
    font-size: .82rem;
    color: var(--text-light);
    padding: .5rem;
    word-break: break-all;
    text-align: center;
}

/* Badge for staged tracks */
.badge.staged {
    background: #E8EAF6;
    color: #3949AB;
    font-size: .72rem;
}

/* -----------------------------------------------------------------------
   Profile panel (slide-in overlay)
   ----------------------------------------------------------------------- */
.nav-name-btn {
    background: none;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    padding: .25rem .6rem;
    cursor: pointer;
    transition: all .15s;
}
.nav-name-btn:hover {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.5);
}

.profile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 200;
    display: flex;
    justify-content: flex-end;
}
.profile-panel {
    width: 420px;
    max-width: 90vw;
    background: var(--card);
    color: var(--text);
    height: 100vh;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: -4px 0 20px rgba(0,0,0,.15);
    animation: slideIn .2s ease-out;
}
@keyframes slideIn {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: .8rem;
    border-bottom: 2px solid var(--border);
}
.profile-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary);
}
.profile-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0 .3rem;
    line-height: 1;
}
.profile-close:hover { color: var(--error); }

.profile-info {
    background: var(--bg);
    border-radius: var(--radius);
    padding: .8rem 1rem;
    margin-bottom: 1.2rem;
}
.profile-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .3rem 0;
}
.profile-field + .profile-field {
    border-top: 1px solid var(--border);
}
.profile-label {
    font-size: .85rem;
    color: var(--text-light);
    font-weight: 600;
}
.profile-value {
    font-size: .92rem;
    font-weight: 600;
}

.profile-section {
    margin-bottom: 1.2rem;
}
.profile-section h3 {
    font-size: 1rem;
    color: var(--primary);
    margin: 0 0 .5rem;
    padding-bottom: .3rem;
    border-bottom: 1px solid var(--border);
}
.profile-input {
    width: 100%;
    padding: .55rem .75rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: .95rem;
    margin-bottom: .5rem;
}
.profile-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(210,105,30,.15);
}

.profile-msg {
    padding: .5rem .75rem;
    border-radius: 5px;
    font-size: .88rem;
    margin-bottom: .75rem;
}
.profile-msg.success {
    background: var(--success-bg);
    color: var(--success);
}
.profile-msg.error {
    background: var(--error-bg);
    color: var(--error);
}

/* Role badges reused in profile */
.s-master      { background: #F3E5F5; color: #7B1FA2; }
.s-reviewer    { background: #E3F2FD; color: #1565C0; }
.s-contributor { background: #FFF8E1; color: #E65100; }
