:root {
    color-scheme: light;
    --pearl-gold: #c8a85a;
    --pearl-ink: #151515;
}

.panel-shell {
    background:
        radial-gradient(circle at top left, rgba(200, 168, 90, .12), transparent 28rem),
        linear-gradient(135deg, #f7f7f5 0%, #ece9e3 100%);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    border-radius: .5rem;
    padding: .75rem .875rem;
    color: rgba(255, 255, 255, .72);
    font-size: .92rem;
    transition: background .18s ease, color .18s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(200, 168, 90, .16);
    color: #fff;
}

.form-label {
    display: block;
    margin-bottom: .35rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #666;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    border: 1px solid #d8d3c7;
    border-radius: .5rem;
    background: #fff;
    padding: .7rem .8rem;
    color: #171717;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.form-textarea {
    min-height: 8rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--pearl-gold);
    box-shadow: 0 0 0 3px rgba(200, 168, 90, .2);
}

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: .5rem;
    padding: .68rem 1rem;
    font-weight: 700;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.btn-primary {
    background: var(--pearl-ink);
    color: #fff;
    box-shadow: 0 12px 30px rgba(20, 20, 20, .18);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: #000;
}

.btn-secondary {
    background: #fff;
    color: #171717;
    border: 1px solid #d8d3c7;
}

.btn-danger {
    background: #7f1d1d;
    color: #fff;
}

.btn-ghost {
    color: #4b4b4b;
}

.metric-card,
.content-card {
    border: 1px solid rgba(31, 31, 31, .08);
    border-radius: .5rem;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 18px 45px rgba(29, 24, 16, .08);
}

.table-clean th {
    padding: .85rem 1rem;
    text-align: left;
    font-size: .72rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #757575;
}

.table-clean td {
    border-top: 1px solid #eee8dc;
    padding: 1rem;
    vertical-align: top;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .22rem .55rem;
    font-size: .75rem;
    font-weight: 700;
}

.status-published {
    background: #e7f6ec;
    color: #166534;
}

.status-draft {
    background: #f2ead7;
    color: #7c5b14;
}

.status-archived {
    background: #ececec;
    color: #555;
}

.hotspot-preview,
.floor-preview {
    position: relative;
    overflow: hidden;
    border-radius: .5rem;
    border: 1px solid #d8d3c7;
    background: #111;
}

.hotspot-preview img,
.floor-preview img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
}

.floor-pin,
.hotspot-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--pearl-gold);
    color: #151515;
    font-size: .72rem;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.floor-pin {
    min-width: 1.65rem;
    min-height: 1.65rem;
    padding: .18rem .4rem;
}

.hotspot-pin {
    width: 1.3rem;
    height: 1.3rem;
}

.viewer-body {
    margin: 0;
    background: #050505;
    overflow: hidden;
}

#pearl-viewer {
    position: fixed;
    inset: 0;
    color: #fff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
